The Nineteenth Byte

The Nineteenth Byte: General discussion for codegolf.stackexc...
00:37
apparently the TAs weren't happy though
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
00:36
beautiful
yst 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
yst 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
yst 22:55
it's not graded on style so they can't even do anything about it
yst 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
yst 01:29
rsbatwpl
4
yst 01:29
I am going to redeem myself
yst 01:29
dw, this time it's going to be a good programming language
yst 01:08
not really, I'm just making this out of boredom lol
yst 01:07
yep, pretty much
yst 01:07
but yeah it's a cool system
yst 01:07
maybe making trailing whitespace affect behavior is a bad idea, I'll rework that slightly
yst 01:06
hmm it seems the trailing space gets erased by the code formatting lol
yst 01:05
(note the space between the \ and the newline in the second example)
yst 01:04
x = "good\
   \; morning"
yst 01:04
or
yst 01:04
x = "good \
morning"
yst 01:04
e.g., to represent the string good morning you could do either of:
yst 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
yst 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 "
yst 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 \}
yst 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
yst 00:59
I also added a nestable comment syntax with \{ and \}, which can even be used inside of strings
yst 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
yst 00:58
and strings can contain arbitrary unicode/newlines
yst 00:58
and I have \" mapped to "", and do CSV-style string parsing where "" is treated as an escaped "
yst 00:57
I have them being done as a preprocessor pass before parsing
yst 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
Jun 28 01:24
@TheEmptyStringPhotographer I've gone over my credit limit twice in the last week, that is not a concern :p
Jun 27 15:35
most of the other scary labs are in the Mellon Institute, which is pretty far off-campus and access restricted. Although I've heard if you tell them you're there to visit the library they don't question you further if you wander to other places
Jun 27 15:34
oh also you can get into the semiconductor postprocessing lab by jamming a credit card in the latch lol
Jun 27 15:33
so you can get in with a can of air lol
Jun 27 15:33
although with the undergrad analytical chem lab they seem to not realize they're still supposed to lock the primary lock despite the existence of the secondary one
Jun 27 15:33
Most of the labs doors do at least have magnetic secondary locks and properly installed kickplates though, which is more than I can say about pretty much anyplace else on campus
Jun 27 15:32
@Seggan They're super proud of this lab, so the corridors around is have windows. You can usually see grad students in there working on semiconductor stuff in the clean room suits, we call them "marshmallow people". The windows are ballistic glass and every corner of the lab and the corridor outside it is under supervision by multiple cameras. Maybe CMU's lab security does just suck though, I've accidentally stumbled into three separate BSL-2 facilities
 
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)