The Nineteenth Byte

The Nineteenth Byte: General discussion for codegolf.stackexc...
05:29
...so I went to Stellic to plan this and click on the little dropdown menu to find that I already have a plan titled "CMU Any% speedrun" I'm just going to go to sleep I guess lmao
05:27
Oh I'm still considering a gender studies minor too, so that would hit the H&SS college, so now I just need to try to squeeze a fine art minor into my schedule for the CMU 100% speedrun lol
05:25
(well, ignoring the business school and the weird graduate public policy school)
05:24
I should try to go for majors in the college of fine arts and the college of humanities and social sciences too, so I'd have one minor from each college /s
05:23
currently I plan on taking enough random courses to qualify for minors in bio, chem, math, CS, and engineering studies minus whichever one(s) I declare as a major
05:22
should I minor in like 5 different things
yst 21:14
ran the most dangerous command on linux. gonna lose weeks of productive work from this. (it was sudo dnf install steam)
yst 00:37
apparently the TAs weren't happy though
yst 00:37
I had a friend submit a one-liner to the big final project in a systems class (which was to make a working malloc) which managed to extract libc from some other program and use its malloc
yst 00:36
beautiful
Sat 23:20
I spent hours implementing a really cool trick that saves a bunch of time in the average case but now it fails test cases because they expect you'll do strictly breadth-first search
Sat 23:19
ugh they designed their test cases in a way where it'll time out if you use a different search order than they expect
Sat 22:55
it's not graded on style so they can't even do anything about it
Sat 22:54
feeling really petty today. for one of our programming assignments we're supposed to make an "arbitrarily large" bit vector but the typedef we can't change is just for a char* with no size/capacity. so I'm just making the char array the size of a pointer and memcpying a pointer into it
Sat 01:29
rsbatwpl
4
Sat 01:29
I am going to redeem myself
Sat 01:29
dw, this time it's going to be a good programming language
Sat 01:08
not really, I'm just making this out of boredom lol
Sat 01:07
yep, pretty much
Sat 01:07
but yeah it's a cool system
Sat 01:07
maybe making trailing whitespace affect behavior is a bad idea, I'll rework that slightly
Sat 01:06
hmm it seems the trailing space gets erased by the code formatting lol
Sat 01:05
(note the space between the \ and the newline in the second example)
Sat 01:04
x = "good\
   \; morning"
Sat 01:04
or
Sat 01:04
x = "good \
morning"
Sat 01:04
e.g., to represent the string good morning you could do either of:
Sat 01:03
oh and I also have \ followed by any amount of whitespace set to erase it during the preprocessing stage (unless a newline follows it, in which case everything after the newline is preserved), and \; set to become the empty string, so you can really easily wrap long strings
Sat 01:02
pretty much the only weirdness this system causes is that you can write \" on its own to represent the empty string, or \"\" to get the string "
Sat 01:00
since you could just write { or } if you wanted a literal brace character, and you'd need \\{ or \\} anyway if you wanted the literal text \{ or \}
Sat 01:00
and again, it doesn't cause any issues since \{ or \} would never be a sensible thing to write in a string literal anyway
Sat 00:59
I also added a nestable comment syntax with \{ and \}, which can even be used inside of strings
Sat 00:59
so the code can also contain escape sequences, which behave like they would in strings, which is fine since \ usually does nothing outside of strings anyway
Sat 00:58
and strings can contain arbitrary unicode/newlines
Sat 00:58
and I have \" mapped to "", and do CSV-style string parsing where "" is treated as an escaped "
Sat 00:57
I have them being done as a preprocessor pass before parsing
Sat 00:57
found a really cursed, but cool, way to do backslash escapes
Thu 19:01
@Themoonisacheese tbf, you could divide the integer by everything still in the scrollback buffer to make it much faster to find any factors that got lost by it
Thu 19:00
which is bad when you have a midterm on thursday and are supposed to move some very heavy objects on friday
Thu 19:00
having the kind of week where I simultaneously thought it was wednesday and friday
Jul 6 04:51
the life of a linux user :|
Jul 6 04:51
my laptop is in my backpack with its lid shut, supposed to be in sleep mode
Jul 6 04:51
My laptpo and my phone are fighting for control of my airpods
Jul 5 21:16
@lyxal I think you would like this. There is a club on campus called "Sustainable Earth", which they abbreviate to "SusE", so it's pronounced "sussy"
Jun 30 02:50
in the edge detection
Jun 30 02:50
you can see the JPEG compression
Jun 30 02:50
 
Jul 8 16:27
if it continues I'll take a look at it, may have to be delayed by a week or so because I am very very busy
Jul 8 16:27
seems like something may have changed in an API somewhere, it appears to be crashing every time it posts (which prompts it to restart and post all recent posts, which is a bug since it's supposed to check the chat room for dupes first)
Jul 8 16:25
it does this sometimes, it's too good at its job(TM)