Let’s play a game of “Fortunately, Unfortunately“. Respond the previous post (the first comment below this post) by replying this post (not the previous post!)
I’ll start with: “I found this website.“
You know what? Answering "the hardest programming language" with Malbolge is becoming a programmer cliche at this point. Why not we devise an esolang so hard to program on, not even supercomputers could brute-force it to get the desired output?
Some sketching of an agent programming language (in a much more literal sense).
It’s very… verbose.
agent Main traits [Runnable Stateful].
-- Runnable: this agent can be run from an outside initiator (e.g. your terminal)
-- Stateful: this agent stores some states (defines the actions [(set name) (to value)] and [(get name)])
use "IO:Output" as Output.
use "Number:Operations" as Number-OP.
use "Text:Operations" as Text-OP.
-- The syntax for the agent selector are "Protocol:Link/To/Agent"
-- Each protocol has their own unique actions.
-- This defines an action which can be asked by other agents.
-- For this one, it also acts as the entry point for the initiator.
on [(run args)] do {
set i to 1.
-- Repeatedly does the instructions until a reply is given.
loop {
set out to "".
get i. ask Number-OP to {mod it with 3. reply it.}.
if it is 0 do {
get out. ask Text-OP to {add it with "Fizz". reply it.}. set out to it.
}.
get i. ask Number-OP to {mod it with 5. reply it.}.
if it is 0 do {
get out. ask Text-OP to {add it with "Buzz". reply it.}. set out to it.
}.
get out.
if it is "" do {
ask Number-OP to {textify it. reply it.}.
ask Output to {write it. reply it.}.
}.
get i. ask Number-OP to {add it with 1. reply it.}. set i to it.
get i. ask Number-OP to {compare it with 100. reply it.}.
-- Number-OP's compare action replies the flags [equal greater less].
if it is equal do {
reply 0.
}.
}.
reply it.
}.
I’ve just found out that SethBling—that YouTuber who made an Atari 2600 emulator in Minecraft, done a ~200 bytes ACE in Super Mario World, and trained an LSTM model to play Super Mario Kart—made CBScript; a proglang that transpiles to Minecraft datapacks kinda like the mockup I made back then.
Oh well.
is there a programming language that doesn’t support else if
at all
not even as the sneaky “second if
is inside else
”
how does a human caput placed atop the bowl of a defecation transportation apparatus become humorous
i don’t get it
Been using Swift for this day
infix operator => : NilCoalescingPrecedence
extension Bool {
static func => (p: Bool, q: Bool) -> Bool {
return !p || q
}
}
Apparently this is a thing?
Alec’s video in the channel Technology Connections about street light switches tells the interesting way they work. They use a thermostat to switch the lights and uses a couple of resistors that function as a heater, connected in series with an LDR. When light shines into the LDR, its resistance decreses, making the heater resistor produce heat. This heat then trips the thermostat, which opens the connection to the lamp, therefore turning it off. This explanation is made much clearer with a demonstration of it in action when it’s opened through an IR camera.
Meanwhile, some idiot—to put it politely—decided to comment on that video telling that the aforementioned demo is faked, citing “lack of real-life scene”. They added that the no voltage current is flowing through the heaters and Alec just shot a heatgun through the termostat and played the video in reverse (which is allegedly proven by the LDR also heating up). All of them written in a essay that could substitute as a sleeping agent.
What a world we live in.