Lurker News

Comments (277) 54 threads

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/

badsectoracula1 reply#
Looks nice, unlike pretty much every other language i see posted here and in proggit it has a full tool suite (with IDE, debugger and even profiler) and documentation. It does look like a professional quality product.

EDIT: i think you need to add some information about which systems exactly are supported, especially for Windows where not everyone is running the latest version.
Also what about backwards compatibility? It might be too soon considering a 0.x release but how often does the language break existing code and what are the plans for after 1.0? No break at all no matter the cost, breaks every major version, total breakage regardless of version, ?

beefdev2 replies#
Great question - I've thought a lot about backward compatibility but I don't have a good answer yet. The whole Python 2 vs 3 nightmare has given me a couple sleepless nights though.
earenndil1 reply#
May I recommend d's scheme? I personally find it works quite well. Essentially, breaking features are introduced as a 'preview' that you have to opt into with a compiler flag. After a period of some time, it is changed so that the old and new behaviours can co-exist, but a deprecation warning is issued where the old behaviour is found. After some more time, the warning is changed to an error, but with an option flag to change it back to a deprecation. Then, finally, it is removed completely for the compiler.

This makes the maintainers' job a bit harder, but not by a lot, and as a user I find it a nice medium of stability and progress.

Continue this thread — 1 reply

exikyut#
Consider three ecosystem saturation points:

1: No users: infinite flexibility
2: "Small" userbase: changes produce grumbling, community adjusts over time, old code is successfully forgotten (deleted + no nostalgia)
3: Very Large™ userbase: even TNT won't change the language
Each of these is relative: (3) has happened with Python (famously explosively), Rust, Go... and also Lua, awk, FORTH. Language size ("volume") seems to have no impact; once a language becomes known for a certain way of doing things beyond a certain scale, trying to go against that (even as the language creator) will land you in a strange, undefined uncanney valley that's not precisely un-idiomatic, but... everyone will still try and steer/corral/etc you back to the "established way".
Obviously (2) represents the perfect ideal here. (Well it wins by default, since (1) is socially depressing :) )
So, one approach could be to try lots of ideas (at a pace that keeps up the creative energy to enjoy the effort) early on.
The key in this case seems to be figuring out the magic threshold point where the community is
- large enough to provide constructive feedback and help the project substantively grow
- small enough to stomach fundamental, relearn-everything-you-learned, changes
- cohesive enough not to be disbanded by the impact of said changes
and carefully ratelimiting publicity and knowledge spread to control ecosystem growth, in a way that does not rein it in.
The dynamics of what defines this balance seem to be specific to each project.

jlukecarlson4 replies#
Hey if I can make a small recommendation, I’d suggest putting some code examples directly in the readme.

Currently the examples are buried multiple pages into the documentation, making it harder to evaluate the project at a glance

admay#
I'd like to just add a +1 to this. I had a tough time finding some good code examples and would love to see a small example of code in the readme. Something beyond a hello world, preferably but that's just me
vosper5 replies#
Further to this, check out the page for Inko: https://inko-lang.org/

They have a nice little dropdown in the top corner, right there on the front page, that lets you see little code snippets. I really like that.
Should slightly more accessible code snippets have any influence on my choice of language? Probably not. But I like it nonetheless.

YorickPeterse#
When making the Inko website I saw a bunch of other language websites (e.g. D's website) use this approach, so I copied the idea. I'm glad it turned out useful :)
azinman2#
Doesn’t seem to be the case on mobile?
grok2#
I like pyrets front page too for this https://www.pyret.org/ -- lots of examples and code-comparisons to other languages. Very neat.
lilyball#
Inko's page looks almost exactly like rust-lang.org used to look like in the past, before Rust rebranded their site for marketing reasons.
bobajeff#
I want to add that it's helpful to describe the kinds of problems it addresses and to show how.

Is love to see a presentation on it.

rishav_sharan#
Zig is the gold standard here. Every section of the site has a cide sample of.
kensai5 replies#
Sorry, quick and dirty question. Why did you name it "Beef"? Very creative name. :)
metaculus#
Probably means power/performance?
_bxg1#
As in "beefy", I assume
virgil_disgr4ce1 reply#
The first thing I thought of was 0xBEEF ;)
TimTheTinker#
Or 0xDEADBEEF :-D
raphlinus#
I'm sure it's just a coincidence that the filename extension matches the author's initials (Brian Fiete).
xeromal#
Beef is a strip club in Canada and I can't stop the correlation
aloknnikhil#
Any plans on creating a Language Server for use with VS Code?
mst1 reply#
Apologies for the pedantic nitpick but did your fingers accidentally mash up 'forward' and 'foreword' to get 'foreward' or was it intentional?
beefdev#
Let's just pretend it was a pun.

Continue this thread — 19 more replies

maerF0x04 replies#
Another "tip" for helping your language grow. I highly recommend you look at how the golang bootstrapped itself and aim to replicate.

Golang provided:
* a tour of go + go playground to allow easy testing of the language + immutable sharing links
* effective go to explain how to use the language beyond the syntax/grammar
* strong opinionated choices on things that dont matter (go fmt)
* a strong opinion about non-breaking changes in the language + stdlib
and a number of other things. IMO a language is only as good as it's community.

kotrunga#
This is a great comment. Look at success stories, especially recent ones, and learn from them!
patrickaljord#
All these 4 points are valid and did help golang but I think what took golang to the moon was:

- the immense success of docker based on it which made everyone build their devops tools in go (kubernetes helped too later)
- a very solid and stable http library included in stdlib (plus other networking goodies to easily run your own ssh endpoint in a few lines of code)
tl;dr to get your language some traction, make it solve at least one problem much better than the competition and have someone build a super popular open source project on it.

giancarlostoro1 reply#
I think also out of the box standard library features. You can make production ready web apps. Also their initial approach to getting / sharing packages imho is useful.

So a decent package manager would do wonders. Rust has Cargo which does builds and packages. D has dub as well.
Definitely recommend making code sharing / reuse a breeze.

beefdev2 replies#
Thanks- A Cargo-like system is the long-term trajectory the language is on now.
giancarlostoro#
Thank you for working on this awesome project. One additional commentary I always make is that I wish Go and Rust had even a basic editor like the one Racket has: you can edit, and compile. You beat me to that suggestion so I'll keep an eye on your project.

Is there any possibility that you'll include some efforts towards doing back-end networking with this language as well? I could see multiplayer games needing servers after all.

MauranKilom#
You might also look into getting it on godbolt.org...

PS: There's a typo in the Design Goals list - "Compliled (no JIT delays)"

allworknoplay#
Not to mention having been developed at and embraced by Google.
Gene_Parmesan1 reply#
Congrats on the release. This looks like the first C and/or C++ replacement I might actually give a significant whirl. I enjoy programming in C as a hobby-grade thing, but it gets challenging organizationally fairly quickly for the sort of full applications I usually build. And I'm also a big fan of the C# "mouthfeel," so to speak. I have tried Rust, and while I'm a fan of its design goals, etc., fully wrapping my mind around the ownership/lifetime system is just not something I have the mental capacity for right now. I don't use these systems langs enough professionally (read: at all) to justify the labor cost.

This also seems pretty damn polished for it being the first time anyone publicly has gotten a look at it. I mean, a full IDE on day one is nuts.
I know Beef seems sharply tuned for game dev (another hobby of mine), but do you see Beef as being usable for general purpose systems/application development? Is there anything about it that would discourage its use for a standard desktop GUI app? And because I'm curious and haven't seen this answered elsewhere, is the Beef IDE also written in Beef, for some tasty beefy dogfood?
edit: Nevermind on that last question, I found it answered in the guide (in the affirmative). Nice!

mwcampbell1 reply#
> Is there anything about it that would discourage its use for a standard desktop GUI app?

Complete lack of accessibility support, particularly for blind users via screen readers, in the included GUI toolkit. Please don't use this for any application that people will be required to use in their job or education.

beefdev1 reply#
Also, to be clear- the custom GUI library that the IDE uses is NOT a general-purpose GUI library; it is a support library for the IDE and other BeefLang tools. A true general-purpose GUI would be quite a lot more flexible and also much more complicated... which is not something that is intended for this particular GUI library.

This is mentioned on https://www.beeflang.org/docs/corlib/ but should perhaps be more predominantly stated.

mwcampbell#
I did eventually find that notice in the documentation, after I posted my comment (and sent you an email). I should have read more of the docs first.

Still, I wonder why you chose to write your own GUI just for the Beef IDE (and installer) rather than use an existing general-purpose GUI. Were you aware of the accessibility issue?

AndyKelley3 replies#
Zig author here. Welcome to the club.

How do you solve the IDE features ("fast and trustworthy refactorability (ie: renaming symbols)") in the presence of conditional compilation?
btw your name is an anagram of "beefitrian"

beefdev1 reply#
Hi Andrew- of course I've been following Zig. Thanks for your trailblazing efforts in the "C replacement" space.

It's true that symbols in 'false' preprocessor blocks will not be caught. Maybe it's best said "if the compiler will find the symbol when you compile, then the symbol renamer will find it when you rename". Which is definitely not true for most symbol renames I dare to attempt in C++ IDEs.

AndyKelley1 reply#
Damn, sorry, wasn't trying to call you out; rather hoping that you had thought of something I didn't that I could steal from you.

I think starting with an IDE from the very beginning was a smart move.
For what it's worth, here is my current vaporware plan to solve this problem: https://github.com/ziglang/zig/issues/3028
I would be curious to see your thoughts on this, especially if you end up trying to tackle this problem in Beef.

Continue this thread — 1 reply

Continue this thread — 2 more replies

Load more comments