Re:Show HN: Beef, a new performance-oriented programming lan...
by gravypod on Wednesday January 08, 2020 @11:25AM
(#21992808)
It looks like the author of this language is using it for game development. What features does Beef provide that other languages don't from a performance perspective? It looks like it has a class & object style. Does it give you tools to control memory layout of those allocations for performance? I know some game devs have commented that the reason C++ classes aren't used in their entity system is memory locality & latency issues.
[ Parent
| on HN ]
Re:Show HN: Beef, a new performance-oriented programming lan...
by beefdev on Wednesday January 08, 2020 @11:54AM
(#21993169)
There's a split between class and struct. Classes are reference types and have more 'features', and structs are a lot like C structs - you have complete control over their layout and allocation.
There's future plans to add more high-perf sugars like automating some SoA and AoSoA layouts, but you can do all that manually right now.
Re:Show HN: Beef, a new performance-oriented programming lan...
by tsukurimashou on Wednesday January 08, 2020 @12:02PM
(#21993273)
You should probably do some perf analysis to show how Beef performs vs C / C++ for game related tasks.
Also it would be awesome for you to make a few code samples / tutorials on how to get started with game development with Beef. I'm sure it would attract a lot of people to your language if you show some "proof" it is a nice language for gamedev!
Re:Show HN: Beef, a new performance-oriented programming lan...
by Lerc on Wednesday January 08, 2020 @03:18PM
(#21995321)
This seems very similar to the FreePascal approach.
It's tempting to give this a go, but there are so many languages out there... Maybe I'll try a Ludum Dare in it.