« first day (4115 days earlier)      last day (730 days later) » 
00:00 - 20:0020:00 - 00:00

8:00 PM
Is its call-by-reference like QBasic's, or different?
 
@Neil Aha. (Oh, but the last line is the most painful part...)
 
8:18 PM
There was a lot of janky stuff with rSNBATWFL's parsing that I've had to remove with the addition of the properly handled brackets :/
 
*rSNBATWPL
 
Oh I just discovered some new jank in the language :D
The auto-string-concat, like "a" "b" == "ab" changes how the program is parsed
In a lot of fun ways, too
 
are these actually fun ways or ways that are fun in the same way javascript's Array.sort() is fun
 
The second ome
 
8:33 PM
Machine Code: where you define the undefined behavior.
high-level languages: where the undefined behavior defines you.
 
C: Where the programmer is the undefined behavior
6
 
in canvas, 1 min ago, by Radvylf Programs
Well actually, I guess you could spawn a child, disown it, and then exit
 
I would be a bad parent
Also your pfp is still broken at some sizes lol
 
" you have a sort of..."hypervisor" that spawns the actual ... child ... and kills it whenever necessary "
Just barely earlier
 
@RadvylfPrograms I know
And I don't know why
 
8:41 PM
I had that happen with one of my bots, I just reuploaded it and it was fixed
Have you reuploaded it?
 
It's probably imgur's fault, I'll try
 
0
Q: Who needs 8 bits for one character?

SteffanGiven a string and the characters used to encode it, you need to comrpess the string by only using as many bits as each character needs. You will return the character codes for each character needed to create a compressed string. For example, given the string "the fox" and the encoder characters "...

 
@RadvylfPrograms Fixed! And I got to keep a lot of the jank too!
 
8:58 PM
A massive QBasic program that I was working on in Archive.org's emulator got corrupted somehow. No way to copy the file to some other system; no text editor available except QBasic's IDE, which wouldn't load the file. I had to write a QBasic program to read the file, try to diagnose the issue, and fix it. Which I did. Feeling kinda proud of myself, ngl.
Also, speaking of unwieldy ways of editing files, XKCD 378 has been oneboxed in this room 20 times over the course of its existence.
 
9:24 PM
0
Q: Find divisible numbers that turn into PI

LeoDog896This is designed to make numbers that, when divided, approximate PI. For example, 22/7 or 333/. For all numbers from 1 to 2^30, make numbers that are closer as so: i/pi ~= x i/round(x) ~= pi Or, i/round(i/pi) ~= pi with i being the number from 1 to 2^30. Expected output: 1 3 22 333 355 103993 1...

 
wow to both
 
@NewPosts i don't actually get what this means
 
it seems like an extremely poorly phrased probably-dupe-of-something
 
@UnrelatedString the approach you described in the comments is basically how I did it initially lol :P (not the first solution I posted, but the first one I tried)
 
9:30 PM
from a quick read it seems like a better phrasing might be "for any integer x, find the integer y that makes y/x as close to pi as possible"
 
basically just index into the two strings concat'd, then Uz0ZU, then chop off the starting bit as well?
@des54321 yeah but then they output 22 on line 3 so I don't get how that makes sense
 
@RadvylfPrograms Javascript: Where the undefined behavior has undefined behavior
 
also good call on Ż8¡s8z0ZḊ--i tried ØH;s8z0ZḊḊ lmaoooooo
 
21 still feels way too long lol
 
9:31 PM
@UnrelatedString oh xD
 
but also jelly sucks at anything involving padding so
 
my initial idea was to construct an array of 8 zeroes and prepend (5 bytes I think?) but idk how but i remembered the prepend-zero thing
 
i always remember Ż but never remember ¡
 
@RadvylfPrograms ಠ_ಠ
 
a good tip for jelly that i've come to use from experience over time is that if you can find a way to get behavior that works for what you need as a single link it almost always is going to save you bytes
so abusing quicks to do things whenever possible is good so you don't have to mess with chaining
 
9:33 PM
yeah
my go to quick to abuse at this point is Ƭ
 
oh yeah that's a good one
 
@hyper-neutrino also the reason my attempt didn't work is i forgot to do the first padding under reversal lmao
 
TIL Linux lets you disown children
2
 
@DLosc Okay, there's some weird stuff going on with this file. Maybe it's too big.
Guess I should try golfing it a bit =P
 
yoU'VE COME TO THE RIGHT PLACE
 
9:43 PM
I'm not sure if this is a QBasic problem or a DOSBox problem or what... it's like when I try to overwrite a file, it stays the same size as before, so if the new contents are shorter, part of the old contents are still there at the end.
Maybe I should KILL it first.
 
thats...not how files should work
 
Tell me about it X^D
 
@DLosc ಠ_ಠ
 
@Ginger You can disown them, clone them, kill them, hang them, abort them at any age...
Linux is abusive to children.
 
language stereotypes:
- c-type: semicolons
- java: everything's an object (except for the things that aren't)
- js: ¯\_(ಠ_ಠ)_/¯
- php: Why
3
 
9:48 PM
we wish java was everything is an object
 
I am not a fan of OO.
 
python: magic indent witchcraft
 
all of your code has to live in an object, but primitive values and arrays can't be handled uniformly with objects
non-array primitives at least autobox but arrays are just FUCKED
 
perl: yeah we can do that with a regex
 
lisp: (((())))
 
9:51 PM
Perl: !@#$%^&*()&^%$#@!@#$%^&**&^%$#
 
They say Perl is just line noise, but it's not. It's checksummed line noise with a mission in life!
 
regex: welcome to backslash hell
@emanresuA lgtm!
 
Slashes are the least of regex's problems.
 
9:58 PM
Vyxal: unicode mess
 
@DLosc Nice!
 
are you using them in a language that doesn't have syntax for not having to escape backslashes (python raw string literals, perl's various regex constructs, ...)
 
@Ginger Let's go to Mars?
 
@Ginger and the floating point calculations don't
 
@DLosc Speaking of that "speaking of that", I compiled a list of the most used xkcds in comments and posts on CGCC
 
10:04 PM
ooh
 
Oohhhh
 
I was thinking you might
 
The top was that overused random number one. I'll post the results soon but I did it in an about:blank tab and closed it by accident so I'll have to do it again lol
 
@Ginger HTML: when markdown became a language
 
10:07 PM
@Ginger I'd say JS is more of the "everything's an object"
 
also python
 
Since Java's primitives are pretty clearly not objects, yet JS's primitives behave very similarly to objects
 
Also Smalltalk :P
 
Mathematica: yeah we have a builtin for that
 
Java really has some outdated ideas. E.g., that Womans are objects.
 
10:09 PM
Well so does any other language that supports OO
Also Mans are apparently objects too
 
Imagine the world we'd live in if all programming languages were replaced overnight with ActionScript.
 
i'd rather not
 
@forest I'd be in high demand ^_^
(I'd have to brush up on it a bit, but ActionScript was one of my first programming languages.)
 
do i seriously have to build all of llvm just to get me the library and headers?
 
Depends on the system you're on. The headers? No.
 
10:20 PM
im on windows
yeah i found the headers
still dont feel like compiling llvm to get me a lib file
 
Oh wow someone actually solved my unanswered wall glitch challenge
 
After like 3 months
 
oh huh, I reached 40k again, sort of surprisingly soon
 
@DLosc Yep, this is exactly what's happening. Anytime I save the file in QBasic, if it's gotten shorter, the new file is the same size as the old one, "padded" at the end with the contents of the old file. I don't remember QBasic behaving like that, so I'm guessing it's an issue with DOSBox or maybe the way Archive.org has it set up.
It's not a problem as long as I just save the file and keep it in the editor, since the version that's in memory isn't corrupted. But if I close out of it and then come back later, there are problems.
 
10:40 PM
2 hrs left! I’m curious to see what my rep is after my suspension ends :p
Oh nvm
 
@AidenChow Whatever it was before you were suspended (+ or - any votes in the interim).
 
@forest ye ik that but too lazy to calculate rep, just gonna wait till my suspension ends
 
11:03 PM
I've actually done it. I've made a fully functional tinylisp interpreter in QBasic.
 
@UnrelatedString ...i also didn't notice that the encoding is 1-indexed lmao
@DLosc NICE
 
(Caveat: that exact code has not been tested yet and might have bugs. It's essentially copied by hand from the code that I have tested.)
Other caveats are that it's very slow, it runs out of memory relatively quickly, and if you don't use proper tail recursion you will blow the QBasic call stack shockingly fast.
 
00:00 - 20:0020:00 - 00:00

« first day (4115 days earlier)      last day (730 days later) »