About a month ago, I woke up with this intense urge to make things move on the web. Then, as if the universe heard me, YouTube recommended me [jdh]’s video on making a game in [Zig]. I took that as a sign and dived right in.
Thing is, I wasn’t really interested in learning Zig—I just wanted to understand how objects move and interact. So, I decided to do it በዘነዘና (in TypeScript).
jdh was using [raylib] with Zig, so after some research, I realized I could use the web canvas instead. To mimic raylib’s methods, I built my own abstraction layer over the Canvas API and called it crystal.ts (yeah, I was watching Breaking Bad at the time). Every time jdh used a raylib function, I’d look it up in the docs (or just Google it) and implement my own TypeScript version. That way, I was sure I was actually learning vector math and movement, not just copying code.
I didn’t end up finishing the project with him. Some people never fail to amaze me—jdh was learning Zig live on stream and still managed to finish the game. Meanwhile, there I was, following along, using a language I was already familiar with, and still struggling. 😅 But hey, I stuck with it, and in the end, I achieved my goal—making things move on the web.
Thing is, I wasn’t really interested in learning Zig—I just wanted to understand how objects move and interact. So, I decided to do it በዘነዘና (in TypeScript).
jdh was using [raylib] with Zig, so after some research, I realized I could use the web canvas instead. To mimic raylib’s methods, I built my own abstraction layer over the Canvas API and called it crystal.ts (yeah, I was watching Breaking Bad at the time). Every time jdh used a raylib function, I’d look it up in the docs (or just Google it) and implement my own TypeScript version. That way, I was sure I was actually learning vector math and movement, not just copying code.
I didn’t end up finishing the project with him. Some people never fail to amaze me—jdh was learning Zig live on stream and still managed to finish the game. Meanwhile, there I was, following along, using a language I was already familiar with, and still struggling. 😅 But hey, I stuck with it, and in the end, I achieved my goal—making things move on the web.
👍5🔥2
Forwarded from Frectonz
Devtopia
[apple]
[spotify]
[twitter announcement]
[linkedin announcement]
#001 is out. Me and Yafet had a great conversation with Beka (@bekacru_c), creator of better-auth.[apple]
[spotify]
[twitter announcement]
[linkedin announcement]
🔥1
Frectonz
Devtopia #001 is out. Me and Yafet had a great conversation with Beka (@bekacru_c), creator of better-auth. [apple] [spotify] [twitter announcement] [linkedin announcement]
If this is your first time or just want to change where you listen podcasts Castbox is a good alternative
[The App]
[Devtopia #001 on Castbox]
[The App]
[Devtopia #001 on Castbox]
🔥3
I ask for the menu not to choose what I will eat but to check the price 😂 bruh... I know what um gonna eat !
🤣7
https://github.com/yorukot/superfile
TUI File Manager/Explorer I use.
The dev is a high school student and the repo has 12.4k 🌟😐😁
TUI File Manager/Explorer I use.
The dev is a high school student and the repo has 12.4k 🌟😐😁
GitHub
GitHub - yorukot/superfile: Pretty fancy and modern terminal file manager
Pretty fancy and modern terminal file manager. Contribute to yorukot/superfile development by creating an account on GitHub.
🔥2
Econ is interesting
"Comparative advantage explains why a country might produce and export something its citizens don’t seem very skilled at producing when compared directly to the citizens of another country! (For example, in the past few years India has become a major supplier of phone-answering services for the American market, even though their English-language skills are not up-to-par.) The explanation of the apparent paradox is that the citizens of the importing country must be even better at producing something else, making it worth it for them to pay to have work done by the exporting country. Amazingly, the citizens of each country are better off specializing in producing only the goods at which they have a comparative advantage, even if one country has an absolute advantage at producing each item."
[src]
"Comparative advantage explains why a country might produce and export something its citizens don’t seem very skilled at producing when compared directly to the citizens of another country! (For example, in the past few years India has become a major supplier of phone-answering services for the American market, even though their English-language skills are not up-to-par.) The explanation of the apparent paradox is that the citizens of the importing country must be even better at producing something else, making it worth it for them to pay to have work done by the exporting country. Amazingly, the citizens of each country are better off specializing in producing only the goods at which they have a comparative advantage, even if one country has an absolute advantage at producing each item."
[src]
Econlib
Comparative Advantage
An Economics Topics Detail By Lauren F. Landsburg What Is Comparative Advantage? A person has a comparative advantage at producing something if he can produce it at lower cost than anyone else. Having a comparative advantage is not the same as being the best…
https://github.com/electronicarts/CnC_Red_Alert
https://github.com/electronicarts/CnC_Red_Alert/blob/main/CODE/ANIM.CPP
I don't know the game but seeing a file written 34 years ago is wild!
https://github.com/electronicarts/CnC_Red_Alert/blob/main/CODE/ANIM.CPP
I don't know the game but seeing a file written 34 years ago is wild!
🔥2
🔥3
where do you put your hands when posing for a picture? 😂
coz I saw mine and its in the same place in every picture😐 either crossed or an inverted triangle
coz I saw mine and its in the same place in every picture😐 either crossed or an inverted triangle
😁2
would llms/agents work better if they have access to our git history and can see how the file evolves
Forwarded from Brain Dump | Мозговая свалка (Alazar)
ChatGPT Is A Joke.
Brah!! I just found out about ChatGPT's power consumption, and that shit blew my mind.🤯
According to research, ChatGPT consumes over HALF A MILLION kilowatts per day.😳
But get this: that's roughly equivalent to the power usage of around 16,667 U.S. households per day.
People are so invested in the fact that ChatGPT is going to take over the world.
Nah, bro! At this point, ChatGPT is going to take over the power grid!
OMG.😩💅 Why am I freaked out about the energy, than my actual job now tho?
Fuckin' Idk.🤷♂
Brah!! I just found out about ChatGPT's power consumption, and that shit blew my mind.🤯
According to research, ChatGPT consumes over HALF A MILLION kilowatts per day.😳
You probably don't know what that means right?😅
But get this: that's roughly equivalent to the power usage of around 16,667 U.S. households per day.
Or to put it another way, it means that one days ChatGPT's consumption could keep 1,369 households running for an entire year.
So you're saying the bill is over $75,000 per day?🤔 That's crazy!
People are so invested in the fact that ChatGPT is going to take over the world.
Nah, bro! At this point, ChatGPT is going to take over the power grid!
OMG.😩💅 Why am I freaked out about the energy, than my actual job now tho?
Fuckin' Idk.🤷♂
🤣2