Lurker News
Back to discussion

Comment by beefdev

Earlier replies
beefdev24 replies#
Author here. I'm the engineering co-founder of PopCap Games. I left PopCap after the EA acquisition, and I've been working on this project mostly full-time for the last five years.

Before Beef, I was developing game code in C# and engine code in C++ and I felt C# was just much more pleasant to work with - faster compile times, better IDE tooling, better errors, etc. Then it struck me that none of the things I liked about C# really had anything to do with the JIT or the GC, and it may be possible to create a "best of" merging between C# and C++.
I know there are other "C replacement" contenders out there - the differences are probably best explained through Beef's specific design goals listed at https://www.beeflang.org/docs/foreward/

eyegor#
I'm impressed by your C# reimplementation [0]! (Yes, I can tell it is different). Not sure what the aspiration is, but I'd be surprised if you don't have an offer from Microsoft in the next few years (assuming they haven't already tried to buy you out). Unfortunately I can't find any mention of threads/parallelism on your website, which I'm sure are present in the language.

Ps. If you're still looking for worthy features, might I suggest f#'s units of measure [1]? They are enforced by the compiler and stripped at runtime, so they are fairly simple to implement.
[0] https://www.beeflang.org/docs/language-guide/datatypes/
[1] https://fsharpforfunandprofit.com/posts/units-of-measure/

jayd161 reply#
Did you try to make a native C# engine before writing your own language? What were the major hurdles that forced you to abandon that path?
beefdev1 reply#
Hah. Yes, actually I did. I wrote a C#-to-C++ transpiler and a VM wrapper with a concurrent GC. This predated Unity's IL2CPP by about 6 months.

Compile times were a big issue, and the little edges of the language and libraries were problematic since they were built around a JIT. Then it struck me that I don't really care about the JIT, and the reason I liked C# had nothing to do with the GC, and it would be much better to just make a slight variation of C# that was statically compiled and without a GC.
I just followed along all the obvious next steps from there, and here we are 5 years later.

jayd16#
How do you feel about .NET Core's growing support for AOT, and better manual/stack allocation support with Span in ? If you had to start from scratch would you give native C# another try? What do you think is still missing from the language?
Joyfield1 reply#
"Windows Installer - 89.0Mb" should probably be "Windows Installer - 89.0MB" on the homepage.
beefdev1 reply#
Thanks. Will change to 712.0Mb on next update.
kylecazar#
Made me snort laugh in the quiet car.
kazinator1 reply#
Beef looks neat; way better than Rust.

Please don't call inline functions mixins; that word has an established meaning in OOP.

beefdev1 reply#
Well, they are not functions and they are not macros. It seemed appropriate to overload the 'mixin' name, but it's not too late to find a better name.

Even if Beef supported class mixins, I would say "there's class mixins and method mixins". D does something similar with template mixins vs a mixin statement that compiles strings as code.

wrycoder1 reply#
Try “Inline”?

Continue this thread — 1 reply