Where can I learn how to code in bacon

So I was watching a YouTube video of a guy talking about this programming language while he was developing on haiku called Bacon it doesn’t seem very practical but I want to learn about it and try to write something with it because I like the name of it and also does it go good with eggs :smiley:

1 Like

Oh wait a minute that’s actually a translator for basic to C++ well I feel very smart derp

The Haiku API is C++. You will need to write some glue code to access it in BaCon (which is essentially a Basic transpiler to C or C++, not a compiler).
I personally find that the effort to write that glue code is not worth it, as you mostly end-up directly writing a lot of C++, so you are better off directly writing in this language (there is a nice tutorial on learning C++ with the Haiku API)

That kind of reminds me of a friend of mine that was crazy and believed that learning c++ was a survival skill it was literally only thing he talked about but all right I will take your advice but yeah my friend personally believed that everyone should know that programming language even if you weren’t a programmer

1 Like

If you want to write software for Haiku in Basic,you should have a look at YAB.
https://yab.besly.de/index.php?idnr=278
YAB provides bindings to the BeAPI,so you can write native Haiku applications with it.
There’s a good amount of software written in YAB available in the BeSly repository that shows what you can do with it.

2 Likes

I will take a look at that as well

That’s probably me

Sort of. It’s what’s called a transpiler. You write your program in this BASIC dialect, it translates it to C code and then hands it over to the GCC compiler.

I haven’t nearly found out everything about it, but it is quite powerful as BASIC dialects go.

1 Like

Yeah, until someone does that Bacon is best suited for CLI applications.

Which is ok by me. I LIKE writing CLI applications :grinning:

2 Likes

I think it was you

1 Like

Check out the BaCon homepage. There’s documentation, examples, and a good community you can talk to.

1 Like

Indeed, this is precisely what I use it for :slight_smile:

2 Likes

Update: the BaCon website has gone dark.

Damn, I was just getting used to the dialect and writing libraries for it.

Still appears to be fully functional for me

Thanks, @cian . I haven’t been able to get in there for a week. Maybe it’s time to spring-clean the browser cache.

It’s had some outages in recent weeks, but Chisel is the software forge for people who use Fossil (we have it in Haiku, too). Doubt it’s going down so easily.

Mystery solved.

Sure, I know how a VPN works, but making me play cat and mouse just sends me looking for alternatives.

Damn. That’s no fun, especially without any warning or indication. But it really did have outages too.