C3 - First Impression [Programming Languages Episode 31]

  Рет қаралды 4,396

Mike Shah

Mike Shah

Күн бұрын

Пікірлер: 55
@christofferlerno2633
@christofferlerno2633 3 ай бұрын
Thank you for taking a look at C3 Mike, for the `v1.dot(v2)` the reason it didn't work was that it wasn't defined on integer vectors. I've since added that, but if you wondered why that didn't work, that was the reason. If you had defined say `float[] v1` it would have worked fine. The last thing you got stuck on was iterating over the `membersof`, that's because it returns an untyped list that you're only able to iterate over during compile time. So if you would have used `$foreach` (compile time foreach) it would have worked fine. I think the error message was pretty bad though, and it will be improved in 0.6.1 It was great feedback seeing someone speedrun through the language just using the docs. Thank you again for that.
@MikeShah
@MikeShah 3 ай бұрын
Cheers, Christoffer, thanks for developing a great language! I just saw 0.6.1 is getting ready -- do you want to come on the channel and tell us your programming story and a bit more about C3? Shoot me an e-mail or message on twitter if you're interested!
@GaryChike
@GaryChike 3 ай бұрын
Yes, thank you so much for C3 Christoffer! 🚀🚀🚀
@vncstudio
@vncstudio Ай бұрын
C3 looks great and in the spirit of C!
@eduardabramovich1216
@eduardabramovich1216 5 күн бұрын
I wish you created a series on C3 similar to c by example or something like that. It looks really great.
@MikeShah
@MikeShah 5 күн бұрын
Cheers! C3 really is a nice language :)
@_slier
@_slier 3 ай бұрын
finally, someone gave C3 attention its deserved.. what a god damn beautiful language.. this language should be more popular than Zig. i find it funny for C3 that is relatively new and have small community have a better website and documentation / tutorial on how to use their language in a productive way.. unlike zig
@MikeShah
@MikeShah 3 ай бұрын
Cheers, it was fun to look at C3
@GaryChike
@GaryChike 3 ай бұрын
I much prefer C3 to Zig.
@Dmytro-Tsymbaliuk
@Dmytro-Tsymbaliuk 2 ай бұрын
Zig has huge feature - own std library with cross-compilation
@_slier
@_slier Күн бұрын
@@Dmytro-Tsymbaliuk cross compilation is using llvm.. nothing new. c3 also can do that
@kcvinu
@kcvinu 3 ай бұрын
Well done, Mike! You've brought a lot of attention to C3. Thank you so much!
@MikeShah
@MikeShah 3 ай бұрын
Cheers!
@axthd
@axthd 3 ай бұрын
I wish C3 will be the next systems programming language.
@MikeShah
@MikeShah 3 ай бұрын
Time will tell!
@twenty-fifth420
@twenty-fifth420 4 ай бұрын
50:40 Unrelated, but I was doing some file cleanup because I found out D module system doesn't play well with file snake_cased. (my python and ruby loving heart did die a little). But in hindsight, I do prefer the explicit naming conventions. Also, I can't believe C3 is further along in development then V! Now that is impressive! I have both to play with now, but I love this idea of a bit more restricted languages interfacing closely with C but with modern sensibilities. And I am glad modules are in C++ too.
@MikeShah
@MikeShah 4 ай бұрын
I was actually quite impressed with how far along C3 is -- with some more documentation and references tutorials, could be a very nice ecosystem!
@GaryChike
@GaryChike 3 ай бұрын
The incredibly talented programmer 'Tsoding' recently completed two videos on C3 - one entitled "Programming in C3 to Annoy Zig Programmers!"
@MikeShah
@MikeShah 3 ай бұрын
Indeed, I saw this on Twitter -- I haven't seen the videos yet though.
@salim444
@salim444 3 ай бұрын
c, c#, c3 and c4 (carbon). Programmers are drawining in a sea of c's
@MikeShah
@MikeShah 3 ай бұрын
C2, C0, Cyclone, Safe-C, there are many, many more variations :)
@eduardabramovich1216
@eduardabramovich1216 3 ай бұрын
Mike, between C3 and Odin, which one you like the best and why?
@MikeShah
@MikeShah 3 ай бұрын
I haven't used either in a proper project to give a great answer -- C3 probably is a bit more familiar syntactically, Odin is much further along in development (and has some high powered projects by JangaFX) using it. Either could be a viable alternative to C. I like the SIMD support for both languages -- both could be great for graphics/multimedia development. I think if you asked Bill and Christoffer, they'd probably just tell you to try both and see which you like best :)
@twenty-fifth420
@twenty-fifth420 4 ай бұрын
Careful Mike, I think this language is explos- **BLOWS UP**
@MikeShah
@MikeShah 4 ай бұрын
@@twenty-fifth420 🤣
@SimGunther
@SimGunther 3 ай бұрын
@@twenty-fifth420 That would've been a different language which is C4. Nice try :)
@GaryChike
@GaryChike 3 ай бұрын
@@SimGunther LOL
@DarenC
@DarenC 3 ай бұрын
5 minutes in, but lack of dark mode is hurting my eyes 😭😭
@MikeShah
@MikeShah 3 ай бұрын
Sorry about that -- one reason I do keep my terminal dark is to help ease on the eyes. I think everyone has different preferences on this though.
@DarenC
@DarenC 3 ай бұрын
@@MikeShah to be fair, it was made worse because I was watching at 11pm or so in the dark. I'll give it another go in daylight and I expect it'll be better =)
@MikeShah
@MikeShah 3 ай бұрын
@@DarenC Many of us have been known to code late into the night 😁
@ZehMatt
@ZehMatt 3 ай бұрын
Looks like an interesting language there are however a few things that I don't like, new_init() and free(), that is one of those typical things you can quite easily forget and to me that is just boilerplate code. Also memory management in general, having to call free is just annoying, there should be a way to specify lifetime or a concept like unique_ptr/shared_ptr, we really shouldn't have to deal with this.
@MikeShah
@MikeShah 3 ай бұрын
Indeed, will just have to create your own managed pointers 🙂Here's a quick blog I found on doing such a thing in Raw C -- might actually be a fun experiment to try snai.pe/posts/c-smart-pointers
@bsdooby
@bsdooby 4 ай бұрын
Would have loved to watch the live session (missed it)….😢
@MikeShah
@MikeShah 4 ай бұрын
There will be more 😃Eventually I'll either announce well ahead of time, or otherwise find a regular time to stream. Need to figure out what I can commit to at least for some duration.
@MrNoface0
@MrNoface0 3 ай бұрын
Could you make a video about C++ modules and how to code: import std; ? :)
@MikeShah
@MikeShah 3 ай бұрын
Eventually that will indeed be in the C++ playlist :)
@MrNoface0
@MrNoface0 3 ай бұрын
@@MikeShah sweet! Your videos are so good and helpful, I always try your videos first for C++ guidance
@MikeShah
@MikeShah 3 ай бұрын
@@MrNoface0 Cheers, thank you for the kind words!
@Onyx-it8gk
@Onyx-it8gk 3 ай бұрын
Greetings, Mike! I'm sure you get a ton of requests and possibly cover them all, but I was wondering if you'd consider covering the Zig build system and compiler for C/C++.
@MikeShah
@MikeShah 3 ай бұрын
Thanks for the greetings! I'd have to learn more about how Zig interops with C. I definitely have planned in my D series interop with C libraries and the importC compiler which may be similar. Time will tell if I dive more into other languages 🙂
@Onyx-it8gk
@Onyx-it8gk 3 ай бұрын
@@MikeShah Well what I'm referring to is not actually a C interop. Rather, the Zig toolchain can be used as a build system and compiler for C/C++. It contains its own C libraries to build from, rather than relying on the OS libraries. It allows you to build C/C++ cross-platform and cross-architecture.
@MikeShah
@MikeShah 3 ай бұрын
@@Onyx-it8gk interesting -- is that so long as they have the llvm toolchain? I thought they might replace that so things might be changing or in progress of that direction
@Onyx-it8gk
@Onyx-it8gk 3 ай бұрын
@@MikeShah I'm not exactly sure, because I do know they want to eventually bootstrap the backend with Zig. I would assume they want to keep that feature, but you would certainly know more than I about the technical implementation. It's referred to as Zig cc and Zig c++.
@MikeShah
@MikeShah 3 ай бұрын
@@Onyx-it8gk hmm, I'll look into it -- perhaps I can reach out to some Zig folks and find out more
@smaplessmap5355
@smaplessmap5355 3 ай бұрын
Why is it not popular? Is it use srsly anywhere?
@MikeShah
@MikeShah 3 ай бұрын
C3 as I understand is still under active development. There may be projects using C3, but have not otherwise disclosed -- sometimes it's a competitive advantage not to give away your toolstack for companies.
@smaplessmap5355
@smaplessmap5355 3 ай бұрын
@@MikeShah thx
@immalkah
@immalkah 3 ай бұрын
Congrats on 20k, thanks for the great tutorials.
@MikeShah
@MikeShah 3 ай бұрын
Cheers!
@guilherme5094
@guilherme5094 4 ай бұрын
👍!
@MikeShah
@MikeShah 4 ай бұрын
Cheers!
How much faster has Mojo's dictionary gotten?
7:40
EKB PhD
Рет қаралды 5 М.
Disrespect or Respect 💔❤️
00:27
Thiago Productions
Рет қаралды 37 МЛН
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 2,8 МЛН
amazing#devil #lilith #funny #shorts
00:15
Devil Lilith
Рет қаралды 18 МЛН
Defer and faults in C3
28:24
C3Lang
Рет қаралды 822
Odin - First Impression [Programming Languages Episode 18]
1:12:32
Jai vs Odin systems programming languages (Non-spicy takes!)
20:10
Context Free
Рет қаралды 76 М.
C Programming Tutorial for Beginners
3:46:13
freeCodeCamp.org
Рет қаралды 14 МЛН
zig will change programming forever
9:34
Low Level
Рет қаралды 344 М.
Programming w/o Language
1:47:00
Tsoding Daily
Рет қаралды 59 М.
Linus Torvalds "Nothing better than C"
1:28
RunTime Recruitment
Рет қаралды 1,4 МЛН
11 Reasons to Program using Odin in 12 Minutes
11:13
Dylan Falconer
Рет қаралды 7 М.
Async Rust Is A Bad Language | Prime Reacts
28:46
ThePrimeTime
Рет қаралды 106 М.
Disrespect or Respect 💔❤️
00:27
Thiago Productions
Рет қаралды 37 МЛН