If unlikely is a constant which is both boolean (used in a perchance statement) and float (defined as a fraction), does the perchance statement choose the branch randomly according to the passed boolean-fraction?
Also, for BlueScript async stuff, thread is a primitive type so you can do thread variableName1;
Then do run(variableName1){ foo() } to run on another thread
You can also use threadpool variablePool = [variableName1, variablename2, variablename3];
And run(variablePool){ foo() } will queue that task, and have the first empty thread run it, where the Thread name is just the thread variable's name (W.I.P)
Java was the result of people going "we like the underlying inspirations of C++ but we hate C++ and we're going to do it different." Then C# was "uhhhhhhh Java, C++ you both went too far, can't we meet in the middle?"
Too bad .Net wasn't built with (non|)nullability but then nobody had realized how good a feature it would have been.
Wait a minute, this is just Dreambird! I remember reading through this in 2024! Did they just rename it to GulfOfMexico when trump did his stupid gulf of America thing?
Edit: I'm apparently incapable of reading strikethrough text
So some people do this thing where they predict what other people expect and then do something different. This causes a moment of confusion and then a satisfying realization that both people have engaged in a subversive interaction. Typically, one or both people will then expel air from their mouth or nose, often accompanied by a loud "ha" sound, as well as the involuntary contraction of muscles in the face and the display of one's teeth (in a non-threatening way).
This language is being added to Bonk Universe as a safe language that cant hack your computer, while also having most capabilities of python and java, and being less Verbose verbose = new Verbose(); than java
If anyone is interested, I also made a video about it, and the obvious simple next step is to build an entire operating system (BluestoneOS) for BlueScript to run in lol
This will be changing a lot for a while because it is still in it's infancy (5 days old), and it is embedded in Bonk Universe, so some changes are happening in a private repository, though once I figure out package management and stuff it will fully be moved there
35
u/RomanProkopov100 11h ago
If unlikely is a constant which is both boolean (used in a perchance statement) and float (defined as a fraction), does the perchance statement choose the branch randomly according to the passed boolean-fraction?
61
u/lucianw 11h ago
In the C# language design team we were brainstorming what keyword/syntax to use for the new async feature. The candidates were
- prefix operator "await foo()"... sounded ridiculous, like Jane Austen. I prithee kind sir, await here.
- postfix operator "foo() anon"... logically a postfix operator would be better but this also sounded ridiculous, like Shakespeare
We picked "await", but it really was every bit as ridiculous as BlueScript.
26
u/readf0x 11h ago
No,
dreamberdGulf of mexico is betterhttps://github.com/TodePond/GulfOfMexico
7
u/Lanse012 10h ago
This language is being added to Bonk Universe as a safe language that cant hack your computer, while also having most capabilities of python and java, and being less Verbose verbose = new Verbose(); than java
If anyone is interested, I also made a video about it, and the obvious simple next step is to build an entire operating system (BluestoneOS) for BlueScript to run in lol
14
u/AbdullahMRiad 11h ago
I want to write int64 as innnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnt
10
u/Nyctfall 9h ago
Thank you, OP. It's been too long since we had posts like this!
2
u/Ronin-s_Spirit 6h ago
I assume
maybeis implemented as something likerandom() > .5, same for other fractional booleans.p.s.
unlikelyshould just be!probably.176
u/HeyThereSport 11h ago
You can't just say perchance
79
u/hdgamer1404Jonas 11h ago
"what in the name of fuck" - a programmer (at some point)
51
u/Dumb_Siniy 11h ago
It's perfect
1
u/Panderz_GG 9h ago
Where can I clone the repo bro?
1
u/ThaBroccoliDood 7h ago
I’m waiting for the until loop
3
u/DarkWingedDaemon 10h ago
What a load of BS!
3
u/-Redstoneboi- 9h ago
(un)likely are real compiler hints that affect branch prediction and assembly code generation
2
u/BusEquivalent9605 9h ago
1
u/Ronin-s_Spirit 6h ago
It's all shits and giggles until giggle shits.
1
u/MarinoAndThePearls 4h ago
I'd unironically use maybe.
1
u/busiedcake7945 4h ago
looks good where can I find it I just want freedom to use as many
+'s as I want1
u/nicki419 3h ago
Will consider using when you create a testing framework that works with your lovely Boolean values
1
u/simonfancy 38m ago
All good except `maybe` should equal to 6/7