Carbon got your eye? Using C++ libraries today from Jakt & Nim
Vložit
- čas přidán 3. 07. 2024
- Source: github.com/contextfreecode/ca...
This video focuses specifically on using C++ libraries from other languages, rather than on building C++ libraries with other languages.
And thanks much to everyone working on all the languages mentioned! That includes at least: C++, Carbon, Zig, Rust, Jakt, Nim, & D. I think they're all great work, and I'm glad for the variety of options.
Also, Jakt has no official logo yet, so in the thumbnail I used the logo for SerenityOS itself.
0:00 Intro
0:36 D perspective
1:17 Jakt & Nim perspective
2:19 Bullet physics
2:45 C++ (cpp)
5:18 Jakt
8:02 Jakt Bullet bindings
9:47 C++ generated by Jakt
11:10 Nim
12:55 Nim Bullet bindings
14:07 C++ generated by Nim
16:42 D again
19:30 Outro - Věda a technologie
D has had some recent updates to c++ interop that hasnt been updated on the website yet its currently being rewritten as of the recent Dconf because one of the talks really expanded the interop a lot more so look forward to that.
Thanks much for the updates on that!
IMO Nim is the best designed languages of the "c++ killers". And it doesn't even try to be a "c++ killer".
I like the core of nim, but it has become a disjointed feature pile.
@@homelessrobotnice so its a javascript killer too
@@gandalfgrey91 my guess is it's mainly a nim killer
Seeing Nim and Jakt together in a video is great!
Saw Jakt.. had to come in and like!
Same
💯
was about to comment about this!
Great video!
Nim♥
nim gang
By the way Jai has really strong interop with C++ through the bindings generator that is shipped together with the compiler
I hadn't looked into that yet. Thanks for the tip!
do you have access to close beta?
@@_slier I do yeah, I also follow one of the compiler devs who regularly streams on twitch, so was able to witness (haha) a lot of work on C++ bindings generator
i like that swift syntax highlighting for jakt xD
syntax is quite compatible.
JT also let me know now that there's a vscode extension in the Jakt repo. Not yet on marketplace, though, which is why I didn't find it when I looked for it before making the video.
@@contextfree yeah he did a great stream on how they even did a minimal but effective auto completion in their plugin.
Please do a video comparing Nim's ARC/ORC vs Rust
I've been using ORC some, but I haven't dug deep into it. I really need to do that, including looking at the generated code and so on.
Jakt seems to be like an evolution of Objective-C.
What are the biggest similarities?
What programming language is the C++ compiler written in? And what language was that compiler generating languade written?
If C++ and Rust and Python were written in C, then what was C written in?
Can the source code that created C++ be modified to make C++ do whatever it needs to do to be better?
I do not have a clue about creating programming languages, I'm just mystified by it.
I suspect the original C++ compiler was written in C, but I haven't double-checked that. But compiler bootstrapping and self-hosting is a fun topic. But it's also ok to make one language in another. Maybe you should go through Bob Nystrom's Crafting Interpreters which is available online for free or purchase.
Once you get a compiler up and running, you can re-write the compiler in the language which it compiles 🤯
"2 weeks since I last updated Jakt ... "'
You do this just to torture the language creator?
Nice album cover
loooool
I'm unstoppable I'm a Porsche with no brakes