Game Engine Programming: Console commands, Cool metaprogramming

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

It’s interesting to revisit the earlier Jon’s streams and see how the game looked like back then.

blackmaestros
Автор

Wow, seeing that compile time for 37000 lines of code was amazing. The metaprogramming support is awesome

kalelsoffspring
Автор

You are honestly my new favorite YouTuber. I could watch this all day. Keep up the good coding!

snoophoggfan
Автор

Creating a compiled programming language that executes your interpreted command language. #TrueSkill

deftlyhacked
Автор

Catching up really late on these videos. Really enjoying them. You are inspiring me to do such things for the game me and my team are developing, such a good inspiration! Keep up the good work man, nice job.

GiammarcoAgazzotti
Автор

I'm a very bad programmer and I couldn't follow this project fully because I'm getting my CS degree, but it's so amazing to see a little snippets over the years since this project started and I'm very pumped to use it when it comes out.

crybirb
Автор

"English, DO YOU SPEAK IT??" -> Best commit message ever! XD

ivanbraidi
Автор

I simply love it! :)
Jai is so cool. And these explanations. Oh my ;)

markusiak
Автор

thankyou for streaming so much, im in the middle of nowhere with just my phone so this has been great

UncoveredTruths
Автор

this is so inspiring and makes me so happy

casvanmarcel
Автор

This stream was f*cking awesome! This gave me so many ideas of how to tackle a certain problem I have without using tons of code. The only thing I would really like now is named return values (for metaprogramming). And multiple return values (now it only supports 2 return values I believe).
@Jonathan Will it eventually be possible to return more then 2 values?

clankillr
Автор

At 00:31:42, what if files/modules/libraries had an init function that gets called automatically by the entry point function/main (not sure in what order though) instead of having to manually remember to call these type of functions?

videouploader
Автор

Very cool. I am not too much a fan of building up compile time functions by adding strings together. Maybe you could have #directive that stringifies a regular function body and maybe some language keywords that work like % in format strings.
maybe compile time function generation wont be so common that you'd want a facility for this, but it would be nice.

Pyromuffin
Автор

Hey, Jon! For code generation, would it be possible to include data structures and procedures in the standard library specifically for generating code at compile time, as opposed to dealing with raw strings? One issue with the C preprocessor is that splicing strings together results in inconvenient errors; it would be a lot nicer to substitute 'expressions' for example.
If you think this is a bad idea, thoughts on why, and any alternatives you might have, if any?

Lagiacrus
Автор

Thanks for this Jon. Love this concept! Would you consider moving things you need on the metaprogramming phase elsewhere? eg. getInteger, getFloat, etc. feels wrong to be both on the commands.jai (which depends on first.jai in some way) and first.jai will now depend on implementation of getInteger, getFloat on commands.jai. Or perhaps add a third file JUST for userbase commands, instead of mixing it up on the same commands.jai?

skullfirec
Автор

What would the best way to do that in C++? I mean, how can I generate the "front_" functions at compile time? Is that even possible without a custom preprocessor?

mars
Автор

You can inspect your global config value and do function call at any time from within the debugger.

In-game console are for the users who want to tweak his experience. Why do a in-game console, and even take the time to make it good, if it's not 'user level' and will be compiled out when shipping?

I understand that your home-brew language don't have good debugger. But from earlier stream you have shown that the Witness had a console only in the dev build. Why is that?

bigmofo
Автор

I always wonder: Is he going to implement the jai compiler in jai?

FanMario
Автор

Have you considered hooking up an existing scripting language and exposing functions/variables to it instead of making a console like that?

Awpteamoose
join shbcf.ru