« first day (4417 days earlier)      last day (724 days later) » 

00:00
and the kind of language where it feels like this would really fit is something like rust where holy hell can it be nice to be able to shave off an extra function sometimes lol
@Seggan All of them but one are open and have been received positively. She has even managed to get away with not using the Sandbox. This is rare for even a seasoned user. For these reasons I nominate him. [💀]
I am a he/him sir :D
worse, I am a 16 years old published kid
00:18
@AitzazImtiaz oops, sorry, i just reused the text for aira
@Seggan thanks so much Seggan, but hehe... Aira kinda messed up with you and lyxal a lot i guess
messed up?
I don't think she did
yeah idk what lyxal has to do with this?
00:41
@DLosc Well 0 doesn't contain anything does it
1 doesnt contain anything either
Hence it's also falsy
NaN is truthy because it is a container for a 22-bit payload
00:56
How does Rust encode Option<bool>? I know that Swift Optional<Bool> is 0=false, 1=true, 2=nil
Not sure. I know it optimizes it to a single byte tho
fn main() {
    println!("{}", std::mem::size_of::<bool>());
    println!("{}", std::mem::size_of::<Box<()>>());
    println!("{}", std::mem::size_of::<Option<()>>());
    println!("{}", std::mem::size_of::<Option<Box<()>>>());
    println!("{}", std::mem::size_of::<Option<bool>>());
}
Prints 1 8 1 8 1
Also, guess what number this prints? enum E: Int { case x = 1 }; print(unsafeBitCast(E.x, to: Int.self))
I'll give you a hint, it's not 1
It's 0. No matter what you say in the = for the enum cases, Swift stores them as consecutive integers. The compiler generates a conversion function that uses either bitwise operators or a lookup table depending on what the source-level values are. unsafeBitCast circumvents this conversion function, of course.
sometimes it feels like every high-level C-like language stores enums in a different cursed way. Swift stores them consecutively and uses a lookup table for conversion; Java makes them full-fledged static objects of a type with a private constructor; ...
Rabbit's going to make them lists of functions which return the member values
01:12
Oh yeah and then there's TypeScript. TypeScript emits a bidirectional map of value <=> name so that you can look up enum cases by name at runtime
"use strict";
var E;
(function (E) {
    E[E["x"] = 0] = "x";
    E[E["y"] = 1] = "y";
})(E || (E = {}));
console.log(E['x']);
@Seggan surely though in ternary you would want your tryte to have a number of trits that's a power of 3
@DLosc it is in set theory, since 0 is actually represented by the empty set
@Ginger I know you're joking but one time I implemented arrays as functions: github.com/zackradisic/aussieplusplus/issues/…
no, I'm not Jo King, I'm Ginger
we are very different
need to start banning that word
say that you're just joshing instead
my bad
01:29
@Neil yes of course
that was an example though
@Bbrk24 (its a joke btw, dont feel too bad)
@Bbrk24 i love this kind of stuff
I recently discovered that I have gcc on my computer in addition to clang and msvc… so I have all three major C/C++ compilers
(The gcc I have is Arduino gcc, which is AVR-only. I can’t produce a file that I can run.)
02:12
@JoKing BRB, changing my name to Josh I. Ng
@Neil Good point
03:00
Jun 2, 2022 at 2:47, by caird coinheringaahing
If someone just turned around to me and said "You're not laughing, you're caird", and their explanation was "Laugh Ing is a person living in Vladivostok", I'd have so many more questions :P
So, anyone here live in Vladivostok?
guys i just get my first good question badge!!
@emanresuA da hell where is that lol
Vladivostok ( VLAD-iv-OST-ok; Russian: Владивосто́к, IPA: [vlədʲɪvɐˈstok] (listen); Chinese: 海参崴, Pinyin: hǎishēnwǎi) is the largest city and the administrative center of Primorsky Krai, Russia. The city is located around the Golden Horn Bay on the Sea of Japan, covering an area of 331.16 square kilometers (127.86 square miles), with a population of 600,871 residents as of 2021. Vladivostok is the second-largest city in the Far Eastern Federal District, as well as the Russian Far East, after Khabarovsk. Shortly after the signing of the Treaty of Aigun, the city was founded on July 2, 1860 as a...
@emanresuA huh interesting... why that city specifically...
03:15
¯\_(ツ)_/¯
@emanresuA well ok then...
weird choice but ok
Ask caird, not me
 
3 hours later…
06:48
> SetBang (or S∈tBang) is a language based on the foundation of all mathematics: set theory.
Maybe of interest to those of us working on Complement. I'll cross-post there.
I haven't read it yet, though. And probably won't tonight.
Also, maybe, of interest. From the same guy. He makes analogies between the axioms of ZFC and some computational primitives, and briefly explores ZFC through that lens. Also, haven't read.
(By the way, this is Michael O Church, who is evidently quite a figure in the tech world. It's quite a rabbit hole I fell into tonight. Explore at your own risk!)
 
3 hours later…
09:55
@AidenChow It was the first city I thought of. It was almost 3am at the time
 
6 hours later…
15:33
25
Q: Shortest Code to Find the Smallest Missing Positive Integer

Aitzaz ImtiazDescription Given an unsorted array of integers, find the smallest positive integer that does not appear in the array. Your task is to write the shortest code possible to solve this problem. Input A non-empty or empty array of integers, where the integers may be negative, zero, or positive. Outpu...

 
7 hours later…
22:14
@cairdcoinheringaahing the first city u thought of is some random city in the middle of russia??

« first day (4417 days earlier)      last day (724 days later) »