r/beeflang • • Jul 26 '24

Inside Penny's Big Breakaway - They Made Their Own 3D Engine! (with Beef)

Thumbnail
youtube.com
38 Upvotes

r/beeflang • • Jul 22 '22

Porting the Beef IDE to Linux

35 Upvotes

I started working on a Linux port of the Beef IDE.

It is tested on Arch Linux and relies on the xmake build system.

Note that you do not need to compile LLVM, since it uses the system LLVM libs from Arch Linux. You can compile the entire project within a few minutes.

You can follow the progress on branch xmake here.


r/beeflang • • May 27 '20

Shitpost QUICK, UPVOTE THIS VEGETARIAN DISH WHILE BEEFY IS ASLEEP!

Post image
28 Upvotes

r/beeflang • • Feb 22 '21

0.43.0

Thumbnail
github.com
20 Upvotes

r/beeflang • • May 09 '25

Game from scratch

Thumbnail
youtu.be
14 Upvotes

r/beeflang • • Nov 06 '24

can't you find a better name, common man.

13 Upvotes

hated the name, but language looks cool, its like writing java, c# with manual memory management.


r/beeflang • • May 20 '20

0.42.4

Thumbnail
github.com
13 Upvotes

r/beeflang • • Apr 02 '26

Very nice first impressions!

12 Upvotes

I tried out Beef for a new game project and was pleasantly surprised. Install and setup was quick and painless. Everything just worked straight away. The SpaceGame example project seems like a good starting point to learn the language and getting a new project setup with SDL3 was no problem at all. The editor also feels very snappy.

I wish there were some more learning resources, seems to mostly be the example project and the docs, but it's a smaller language and the similarities to other C like languages are usually enough to figure things out.

Will definitely keep using it if things go this smooth. It really feels like a language made for efficient game development.


r/beeflang • • Aug 28 '20

My first attempt at digital art

Thumbnail
imgur.com
12 Upvotes

r/beeflang • • Jun 20 '22

0.43.3

Thumbnail
github.com
11 Upvotes

r/beeflang • • Apr 01 '22

Linux Beef IDE

11 Upvotes

Is there a Linux IDE that can be used with the beef build tools with code completion and interactive debugging support ?

if not, are there any plans to make the Beef IDE cross-platform ?

Because at this point it's impractical to develop anything in beef on a Linux Workstation.


r/beeflang • • Dec 09 '20

0.42.8

Thumbnail
github.com
11 Upvotes

r/beeflang • • Sep 11 '20

0.42.6

Thumbnail
github.com
11 Upvotes

r/beeflang • • May 27 '20

Shitpost What would be a name for beeflang community members

11 Upvotes

Other programming language communities have names for their users. Golang has gophers and Rust has rustaceans. Is there a name anyone can come up with for beeflang users?


r/beeflang • • Jul 20 '25

What is Beef trying to be?

10 Upvotes

See title. I'm asking because even though the website looks nice and contains some good info, there doesn't seem to be any write-up on what Beef is trying to achieve, what principles it adheres to that set it apart from C++, C#, D, etc., how it improves on those languages, what features it offers that those languages don't have (and equally importantly, which features it shuns that those languages do have). Etc. etc.

Can anyone provide a brief explanation of Beef's aims and design principles? Or link to something that would be helpful in that regard? Thanks all.


r/beeflang • • Aug 07 '23

Is Beef still around, or an active language?

10 Upvotes

Hey there. I mod r/altprog, and have had r/beeflang on the sidebar for a while now. It looks like there hasn't been anything new going on in the past year-ish; wanted to see what the situation was.


r/beeflang • • Apr 04 '22

0.43.2

Thumbnail
github.com
10 Upvotes

r/beeflang • • Feb 10 '24

Linux A code editor/IDE that supports Beef formatting (on Linux)?

9 Upvotes

I've been playing with Beef since yesterday, and I'm impressed that it performs better than Java and C#, while having very similar syntax.

However, no text editors I have support Beef formatting. Neither vim, vscode nor Geany have it. Nor does Codeberg, which I use for git storage.

There is the Beef IDE, but it's only for windows, and I use Gentoo Linux.

For now I use vscode with C# formatting, but that's bad.

Is there any code editor or IDE for Linux that supports Beef code formatting?


r/beeflang • • Sep 07 '22

0.43.4

Thumbnail
github.com
9 Upvotes

r/beeflang • • Oct 05 '20

0.42.7

Thumbnail
github.com
9 Upvotes

r/beeflang • • Nov 22 '21

0.43.1

Thumbnail
github.com
8 Upvotes

r/beeflang • • Jun 29 '20

0.42.5

Thumbnail
github.com
8 Upvotes

r/beeflang • • May 17 '20

RGB - HSL conversion

8 Upvotes

I found these algorithms on stack overflow. They are quite useful though so I thought I'd share them in the dialect of Beef. :-)

// in: h, s, l in range [0, 1]
// out: r, g, b in range [0, 255]
public static (uint8 r, uint8 g, uint8 b) HSLtoRGB(float h, float s, float l)
{
	float r, g, b;
	if(s == 0f)
		r = g = b = l * 255f;
	else
	{
		var q = l < 0.5f ? l * (1f + s) : l + s - l * s;
		var p = 2f * l - q;
		r = hueToRGB(p, q, h + 1f/3f);
		g = hueToRGB(p, q, h);
		b = hueToRGB(p, q, h - 1f/3f);

	}
	return (round(r), round(g), round(b));
}


// in: r, g, b in range [0, 255]
// out: h, s, l in range [0, 1]
public static (float h, float s, float l) RGBtoHSL(uint8 pR, uint8 pG, uint8 pB)
{
	float r = pR / 255f;
	float g = pG / 255f;
	float b = pB / 255f;

	float max = (r > g && r > b) ? r : (g > b) ? g : b;
	float min = (r < g && r < b) ? r : (g < b) ? g : b;

	float h, s, l;
	l = (max + min) / 2f;

	if (max == min) {
	    h = s = 0f;
	} else {
	    float d = max - min;
	    s = (l > 0.5f) ? d / (2f - max - min) : d / (max + min);

	    if (r > g && r > b)
	        h = (g - b) / d + (g < b ? 6f : 0f);

	    else if (g > b)
	        h = (b - r) / d + 2f;

	    else
	        h = (r - g) / d + 4f;

	    h /= 6f;
	}
	return (h, s, l);
}
static uint8 round(float n) => (uint8)Math.Round(n * 255f);
static float round(uint8 n) => (float)(255f / n);
static float hueToRGB(float p, float q, float tt)
{
	float t = tt;
	if(t < 0f) t += 1f;
	if(t > 1f) t -= 1f;
	if(t < 1f/6f) return p + (q - p) * 6f * t;
	if(t < 1f/2f) return q;
	if(t < 2f/3f) return p + (q - p) * (2f/3f - t) * 6f;
	return p;
}

r/beeflang • • Aug 05 '22

Light theme for Beef IDE

7 Upvotes

I'm an old guy now, 58, and my eyes aren't so good. I'm having to use lighter themes for my Jetbrains and Visual Studio IDEs so I'm wondering if there are any decent light themes for the Beef IDE?