« first day (3924 days earlier)      last day (902 days later) » 
00:00 - 15:0015:00 - 00:00

3:00 PM
oh. ohhhh
 
…and that comes out as just 13 bytes, I should have tried it first
 
jeez I'm spending 12 bytes just producing ~(b)(a)
 
OH
:)
I ran it and it just output a and then it took me a second to realise what had happened
 
I think that applying the techniques in these two CMCs is sufficient to produce pretty much all my Underload answers at CGCC, normally I try to solve a problem with just those, and if I can't, I don't bother
but, there is more to the language
UMC: add two numbers (in Underload, taken as Church numerals from the stack). (Side note: there isn't an Underload answer to the main-site version of the question yet, so feel free to post your answer once you have it.)
0
A: New users' guides to golfing rules in specific languages

ais523's temporary accountUnderload Underload is a stack-based tarpit esolang, which can be a good choice for some problems (especially quines) and a horrible choice for most of the others (but even horrible choices can be fun to golf in!). If you're planning to use it at CGCC, here's what you need to know: The basics CGC...

 
3:09 PM
why is 0 !() and not just !?
 
because you're replacing a string with n copies of itself
e.g. 4 maps "a" to "aaaa"
so 0 must map "a" to ""
and so you have to push the empty string onto the stack after deleting the string that was there beforehand
 
ah so it has to push an empty value, got it
 
hmm, the main-site "add two numbers" question requires handling negative numbers, probably that's why there are no Underload answers (because there's no standard way to represent them, that's consistent with the positive numbers in how they react to arithmetic)
 
I'm trying to figure out an underload truth machine. It's deceptively complex
Somewhat ironically the Extended truth machine seems to be much easier in underload than the standard one
ah no, it requires handling negative numbers
and the standard truth machine only allows unary output if the language is incapable of outputting 0 or 1 :(
 
3:33 PM
I think the trick is to write a program that outputs 0 and exits, and a program that outputs 1 in a loop, and just use the input to choose between them
 
((:(1)S^):^)((0)S)(~)(input)^^^ should do it I think, but it might be golfable
 
that seems about right; I think it's golfable though
you don't need to use the ~ – you can run the infinite loop of 1s a number of times equal to the input, then print 0 and exit
 
25 bytes: Try it online!
Correction: 24 bytes: Try it online!
 
it looks like I posted an Underload truth-machine to the main site; advertised as "16 bytes" but I forgot the parens around the outside (as usual) so it's actually 18
when testing my own CMCs I often forgot the parens and wondered why the interpreter was segfaulting
(actually, I don't get why TIO's interpreter segfaults on stack underflow rather than having error handling…)
 
3:56 PM
@pxeger @Mayube @PyGamer0 @thejonymyster the answer is B (I was right)!
 
@pxeger Nice!
 
4:21 PM
how abt accelleration and decelleration?
pardon my english i am a native speaker
when is it straight vertical near the top or bottom, if ever
 
dunno, wasn't covered, but based on the analysis in that video I'm gonna guess it's as we hypothesised
 
waa
ok
time to experiment
does anyone have a helicopter? i have rope
 
lol
 
does more than i expected
 
Aw man, there's already like ten projects named Steganosaurus
I figured it was too creative to be original
And I'm right :/
 
4:40 PM
@RedwolfProgrammed as in a portmenteau of Steganography and Stegosaurus?
 
Hiding secret messages in fossils?
 
I was working on some steganography related tools earlier because I was bored
And Steganosaurus would be a cool name
Nothing to do with dinosaurs though :p
 
what about just Steganosaur?
 
Yep, some with that name too
 
4:43 PM
imma be honest, i though Steganosaurus was a portmanteau of Stegosaurus and Rhinoceros, but with some different spelling
 
Stegoceros
 
Stegonoceros
Steganosaurus
> the language was deliberately built to make programming painful and difficult (i.e. fun and challenging)
 
@AaroneousMiller I can think of at least 5 languages this refers to
 
i can think of at most 5 languages this couldn't be referring to /s
 
most practical languages don't have fun as a design goal
(when they do, we end up with things like Perl – apparently the actual reason barewords can be used as string literals is because it makes polyglots between Perl and poetry easier to write)
 
4:55 PM
Add++ is the current top voted language for November's LotM - make sure to place your votes in time for next month
2
 
5:24 PM
did chat just die for about 5 seconds for anyone else?
 
yup
it blipped
 
I'm being ridiculed by my colleagues because I didn't have an answer to "What's your favourite movie?" :(
 
Random question of the day: What's your favorite type of cooking oil for general cooking tasks? e.g. peanut, canola, etc.
 
@AaroneousMiller Olive, it's reasonably cheap and available everywhere
 
Yeah, usually olive for me
Sometimes canola, for things where olive doesn't really make sense
 
5:40 PM
when doesn't olive make sense?
deep frying, I guess. Our housemate has a deep fryer and he buys big jugs of vegetable oil
 
Oops wrong tab
 
yeah besides deep frying i think olive oil works for pretty much everything; i think shallow frying with it is fine, you can use it as a salad dressing, as a beverage, etc
 
5:59 PM
I use olive oil for shallow frying
as far as I know there's no reason you can't deep fry with it either, it's just more expensive in large quantities than cheap vegetable oil
 
6:41 PM
I hate how much the SO blog is basically just product placement
Although idk, I guess I'm fine with more ways for SE to make money that don't involve anything too harmful
But "A murder mystery: who killed our user experience?" seems like it'd be an interesting discussion of the issues people's experiences with SO or something, not an ad
 
6:59 PM
@RedwolfProgrammed Yeah, I think the y got the title wrong
 
is the LYAL over? not sure how much longer I should stay online
 
Usually they're 24 hours I think, so that people from all time zones can participate (so you're definitely not expected to stay online thoughout the whole thing :p)
 
@ais523'stemporaryaccount Vyxal's is almost identical - ‟‟$„„
UMC: (idk how hard/easy this is) Unary to binary.
(You can use any two characters for 1/0)
 
that's possible, but will be fairly long by golfing standards
you could use a few different characters for the unary in the input: I think : is easiest but ^ and a may also be daoble
unary to Church numeral thus shouldn't be too hard, and Church numeral to binary is definitely possible, but may be quite verbose (Church numeral to decimal has been done, but not in a golfing context as far as I know)
ooh, Church to binary could have some fairly fun algorithms, actually (especially if you can print the digits out in reverse order, although admittedly you probably can't)
the whole field of code golf would have been simplified considerably if people had adopted a little-endian notation, back when base-n numeric notation was first invented
a pity they didn't think that far ahead
this is an obstacle to golfing language design, because little-endian notation works much better in most algorithms, but problems written by humans tend to assume big-endian, and so you have to make tradeoffs between the two endianesses
 
7:26 PM
that moment when you write all of the code at once and it works first try
 
I find that depends a lot on the language
at least in the asm I was working on recently, the big changes sometimes worked first time but sometimes had lots of subtle errors that took ages to fix
 
and oddly, the small changes were the same, they seemed to break things for no obvious reason more often than they really should
 
@AaroneousMiller That's some remarkably clean and well written code
Wait a minute, that's precisely what I typed
What's happening, that's the opposite of not what I said
 
lol
don't worry, i added some comments to it in the actual project
it doesn't help much
 
7:31 PM
the "world's fastest fizzbuzz" that I spent months working on, when I was done I deleted all the comments and whitespace and recreated them, in order to make sure they were a) up to date, b) served as a good introduction for people reading the code for the first time, but mostly c) got the code down to under 64KiB so that I could actually post it
 
64KiB!?
 
and, well, speed costs bytes
fwiw it's about 17 KiB with no comments and the minimum whitespace needed to compile
but if you submit 17 KiB of asm with no comments, nobody will have a clue how it works
 
@ais523'stemporaryaccount *retags all questions to *
 
in case you're interested, it's here
actually, I guess I could save a lot by using one-character variable names, but that'd also make it much harder to understand
 
dang, 56 GiB/s? u is spood
 
7:38 PM
it makes me despair for the state of compilers
 
someone in the comments there managed 123GiB/s for yes, which seems about right for me based on my work in the FizzBuzz
(assuming that the length of the string you're printing is a power of 2, at least; y\n is)
the trick you can do with yes but not with FizzBuzz is to map the same physical page of memory into the pipe multiple times; normally this trick is only used for all-zero pages as a fast way to produce large amounts of zeroed memory, but it works for any other pattern whose repeat length is a factor of 4 KiB
for the FizzBuzz I basically had to invent a programming language that I could interpret using SIMD instructions, so that blocks of 32 bytes get calculated in parallel, with each calculation taking 2 clock cycles (actually AMD's Zen 3 microarchitecture can do it in 1, but it gets slowed down to 2 due to being bottlenecked on writing to L2 cache)
 
how do you know all these minutiae?!
 
I learned them writing the FizzBuzz program
 
obviously lol
how did you learn all these minutiae?!
 
7:46 PM
actually I think I vaguely knew about the kernel zero page beforehand
but, most of this isn't secret, you can find it with a web search once you've figured out the right questions to ask
Agner Fog's optimisation guide is pretty good if you're looking for a single thing to read, though
it's reverse-engineered internal details for most x86ish processors
not 100% accurate but pretty close
there's also the perf command (Linux-specific, there's probably a Windows equivalent) which lets you see what the processor is doing via collecting statistics on various parts of the internals, it can be a lot of fun
 
for best results we need a FizzBuzz ASIC chip
4
 
modern processors have a range of performance counters that just count various things happening internally, you can monitor up to four of them at a time
and learn, e.g., how many CPU cycles your program ran for, or how many memory accesses they made, or how many commands ran on execution port 6, etc.
but it's frustrating, because you can only check things that the processor manufacturer thought to measure, and often you have to rely on measurements that don't measure exactly what you want
 
and by "thought to measure" we of course mean "specifically selected to measure to best demonstrate the strengths of the chip whilst avoiding its weaknesses"
 
quite possibly :-D
although, the reason they provide these things is to allow programmers to figure out what their program is bottlenecked on at the machine-code/microcode level, thus allowing them to work around the flaws of the processor and thus produce better benchmark results
so they have some incentive to be accurate
 
8:23 PM
@Mayube How about FizzCoin where whoever prints the most FizzBuzz in 10m gets to write the next block of the chain :p
 
@RedwolfProgrammed Proof of FizzBuzz :P
 
Well uh...for my CS class I'm supposed to give a short presentation on RTO tomorrow, so I can show that I'm actually doing work in the class, but it's currently very broken lol
So I guess I'll be busy tonight
Even worse the school flipped the A and B days after the PSAT, so today I was supposed to have CS class today and I'd present on Friday, but now it'll have to be tomorrow
It's not for a grade but I'll look pretty stupid lol
 
try:
    0/0
except:
    halt_and_catch_fire()
 
I think I'm going to end up basically rewriting RTO's whole back end
It works right now, but it's a big mess
 
8:39 PM
huh, after looking up encodings for the halt-and-catch-fire instruction (defined as anything that requires at least a power cycle to get the processor back to working order), it seems that 0x0f 0x04 did that on the 286, and the opcode in question is still unused on Intel processors even nowadays
I'm vaguely tempted to try running it on my processor to see what happens (although I expect it'd just immediately SIGILL)
 
Keep a fire extinguisher nearby just in case :p
 
The Pentium F00F bug is a design flaw in the majority of Intel Pentium, Pentium MMX, and Pentium OverDrive processors (all in the P5 microarchitecture). Discovered in 1997, it can result in the processor ceasing to function until the computer is physically rebooted. The bug has been circumvented through operating system updates. The name is shorthand for F0 0F C7 C8, the hexadecimal encoding of one offending instruction. More formally, the bug is called the invalid operand with locked CMPXCHG8B instruction bug. == Description == In the x86 architecture, the byte sequence F0 0F C7 C8 represents...
 
the more famous one is 0xf0 0x0f 0xc7 0xc8, which was also a hard lock on the processor
 
ninja'd
 
although it was possible to fix that one in software via doing really weird things with the interrupt table
(and sandsifter apparently found one in 2017, but it was kept secret for fear it might be used maliciously – I wonder if it's been fixed yet, and when it'll become public)
 
9:11 PM
foof is what we call one of our cats
 
 
1 hour later…
10:26 PM
CMQ: What philosophy do you live by?
 
Damn, I don't know who anyone is!
 
Very deep
Who are you? Who am I? Do you even exist?
 
Wait, now I get it! Grain Ghost = Wheat Wizard. Thanks for the headache, @GrainGhost ; )
Took me longer than it should have.
 
Nah, we just elected a new mod in the last few weeks. They're new to the site, none of us had ever heard of them, but they seemed nice.
 
oh i dont want to interrupt your cmq but i have a regular q
 
10:31 PM
Yeah... thanks for making me feel better about all this, Redwolf : p
 
@cairdcoinheringaahing Damn. Why is this such an Avi thing to do? I missed the topic, I suggested, of the event, I suggested. Double-bonus jackpot!
Ding ding ding!
I even had a webapp I couldn't wait to advertise for that...
Don't ask me. I'm over it : p
 
Oh cool!
 
@AviFS no you're not over it
 
if you google "i'm fishing for hats" with quotes, the only result that shows up [besides omitted results] is this SO thread. the quote is located in the comments on the question. is this stack exchange slang? what did they mean by this
 
10:33 PM
@AviFS You're AviFS
 
getting over it with avifs
 
@AviFS LYAL is still going, at least for a couple more hours :P
 
@RedwolfProgrammed Cool in the past tense. I haven't looked at that project in ages. I'd really meant to!
@lyxal You're lyxal
 
@thejonymyster it's a reference to the Christmas bash SE does every year
 
@thejonymyster Over the Christmas/New Year period, SE does Winter Bash, where you get hats for doing things
 
10:34 PM
You get "hats" which you can put on your pfp if you achieve certain tasks
 
It's where the SE baseball cap on my dog comes from, it isn't a real hat I own :P
 
E.g. Posting a question/answer on the 21st of December
 
And sometimes you get to play a game as a unicorn and jump over presents but only if you're in the middle of a worldwide pandemic
And you log more play time than anyone else in the world and yet people get more hats than you from cheating scores
 
During galaxy-wide pandemics you get to play Space Invaders but with unicorns and pancaked-flavored rainbows
 
10:35 PM
And you also get to do digital knitting too
 
im amazed that the phrase doesnt exist anywhere else though
 
Redwolf's still a bit salty about last year's Winter Bash
 
no one else has ever fished for hats and admitted it
 
@cairdcoinheringaahing Nah, just a tad salty. Reduced sodium.
 
also, the hello world in the question itself is pretty cool haha
 
10:36 PM
It's how I got such a good high score in the chrome dino game
 
@RedwolfProgrammed The opposite of @user :P
 
11141, unfortunately I hit my head on a bird
 
Have you ever eaten an entire bowl of salt?
 
I almost did that IRL once
Hit my head on a bird, not the salt thing
It was the bird's fault
 
@cairdcoinheringaahing No, I constantly flush the salt out of my system to be able to consume gallons of salt without dying :P
@cairdcoinheringaahing Unfortunately, I have not, but I'm going to do it tomorrow, wish me luck
 
10:38 PM
birds love to fly really close to the front of my car while im driving
damn florida flyers
 
I just don't like birds in general
 
I think I'm going to challenge myself to finish RTO by December
 
tRy iT Online
 
Reject birds, return to bees
 
???
We are neither birds nor bees
 
10:40 PM
We are monke
 
Me ap
 
son its time i tought you about the birds or the bees
just one though
or mom will get mad
 
@user bees are snacks
 
@thejonymyster Thought me?
 
Can't eat birds, can eat bees
 
10:40 PM
fixed
 
i eat chiken
> tought o.O
 
I have eaten many more birds than bees
 
You know, my parents never actually taught me about the birds and the bees
 
@RedwolfProgrammed Unlike my grandparents' dog
 
@lyxal I had a friend who ate a bee
 
10:42 PM
@user can you eat bird raw? No. Can you eat bee raw? Yes.
I just taught you
 
Wait what
You can totally eat bird raw
 
Like can you just pick up a live bird and eat it? No.
 
I like how the first is more commonly asked than the second
 
Look I'm just acting as an ambassador for r/WeEatBees
 
> Congratulations! You've earned: (bronze)
 
10:44 PM
wheatbees
 
@RedwolfProgrammed It's obviously not based on a true story because the protagonist has a bunch of shirts that all look the same. No real person/bee could tolerate that
 
I guess it took much longer than expected, but finally
 
@Bubbler 🎉 Congrats!
 
\o/ wahoo
 
10:45 PM
Thanks :)
 
@Bubbler 👏👏
@RedwolfProgrammed a better question is is the bee movie based
 
That's not a question, it's just prompting a specific response
There are not multiple options
The answer is obvious
 
based
 
Of course
 
11:02 PM
@RedwolfProgrammed there's two options: it's based or it isn't.
it's based or it's cringe
CMQ: Most useful value to return when getting the head/tail of an empty list/string?
 
Depends on the language, probably either 0 or the empty array
I'd lean toward the empty array in most languages
I was actually considering adding null as a minor data type in Ash, and am still considering it for my next language, for this sort of situation
Wait, is the ping highlight color always green, or is it blue in room with blue message bubbles?
 
Rooms can have different message colors?
 
some rooms don't have a colour it seems
 
They're blue in the sandbox, for example
 
@lyxal but that depends if self pings highlight
which of course they don't
:/
okay yeah they do nvm
that is, ping highlights change depending on the site
 
11:16 PM
Someone sandbox ping me pls
 
green in tnb
red on math.stackexchange.com
 
Oh neat, never knew that
Also, TIL the ping bubble thing by your pfp is red in the sandbox, not blue like I'd expect
 
@lyxal 0 for empty list and empty string for empty string
 
 
But sometimes you want something else, so I'd consider a builtin which takes two args (an object X and a default value Y), and if X is empty then gives Y as the value instead
 
11:20 PM
kinda red in the sandbox
 
Maybe not much if both 0 and "" are falsy and you have logical or
 
@Bubbler that makes for a fun oneliner in python:
g[0] if len(g) else ("" if type(g) is str else 0)
 
Nice (you don't need parens there)
 
@lyxal None
 
11:35 PM
@user that's not useful for a golflang which doesn't have None as a type.
 
true
 
That's even worse.
None makes more sense than returning True ;p
 
😡 Your mom see now I have the last laugh
totally owned you there 😈
 
😰 that's not wholesome 100
 
00:00 - 15:0015:00 - 00:00

« first day (3924 days earlier)      last day (902 days later) »