« first day (3840 days earlier)      last day (993 days later) » 

4:03 AM
CMegaC: Make minecraft.
 
Minecraft, 0 bytes:
 
@PyGamer0 What's the point of a challenge nobody will be able to answer?
 
@RedwolfPrograms well Dude answered it correctly
 
@RedwolfPrograms it's a mega question
 
Python, 0 bytes. Store it as minecraft.py.
 
4:05 AM
@Dudecoinheringaahing also i see that you changed your name
 
@RedwolfPrograms CMegaC is basically a joke
 
@PyGamer0 I don't know what you mean, I have always been a dude :P
 
when did you change it?
@Dudecoinheringaahing no you were caird
 
1 hour ago, by Dude coinheringaahing
@AaronMiller One problem: that says that if you're "caird" you should follow the guide. However, I'm not caird.
@PyGamer0 Who is this "caird", I am Dude
 
@Dudecoinheringaahing you?
yes even i forgot who is caird
cairdiac arrest?
 
4:09 AM
caird's actual name is Lebowski
 
That Jelly code really tied the room together man
 
@Razetime source?
 
Source: me
@Dudecoinheringaahing this is your source
pygamer
dude is from the greatest comedy movie ever
 
Well, that's just like, your opinion man :P
Oh hey, I just got an ad for Genshin Impact and HN's weeb pfp just appeared :P
 
Hyper is not weeb
 
4:14 AM
for me the Vyxal room is just above the APL Orchard so it looks like. Vyxal is deprecated?‽ Yes it is
 
Leave them alone about it
 
@Dudecoinheringaahing wait what
 
@PyGamer0 yesnt
 
@hyper-neutrino yt ad for Genshin, and it looked like you as a weeb :P
 
i am confused by what you meant :p i don't suppose you grabbed a screenshot?
 
4:15 AM
@lyxal Pretty sure hyper is a transfem weebm as least according to their pfp a few months ago :P
@hyper-neutrino No, sorry, I skipped it :(
 
yes and you are a dog
and lyxal is a flower
and razetime is- oh wait
@Dudecoinheringaahing rip
 
i am actually deep fried ryze irl
 
@hyper-neutrino But you know the white/grey haired anime girl you had as your pfp? I saw her popup the second before I skipped
 
I am a pawprint IRL
 
wait wasn't it blue
 
4:17 AM
@hyper-neutrino Settle the debate: what was your pfp?
 
end user license agreement
yes, that joke is really overdone on reddit
 
i could have sworn this was before they added eula
 
yeah well she was leaked
 
was she like a preexisting character before she became playable
ah
 
> Weapon
Claymore
 
4:18 AM
i don't think she was referenced before being added as a playable, unlike chars like yoimiya or rosaria or w/e
 
...,isn't... isn't that a mine?
 
it's also a kind of sword
 
i think it is but it is also a particular type of greatsword
 
that the directed mine is named after
a particular scottish style iirc
 
4:19 AM
idk why i made my pfp eula and not noelle but ¯\_(ツ)_/¯
 
@hyper-neutrino char
 
@hyper-neutrino because weeb, duh :P
 
yeah when white/gray hair came up i was about to say "i do know he's on the noelle mains subreddit"
 
@Dudecoinheringaahing that actually does not explain it :p
 
Do you still have the pfp? I can't find it on the wiki
 
4:21 AM
i don't remember where i got it anymore lol
 
@UnrelatedString Slightly unrelated, but have you seen r/chloe? It's u/SrGrafo drawing an anime girl, and it always struct me as weird
 
that does sound very weird
 
Especially when Chloe is my name :P
 
4:22 AM
it is definitely fanart and there's a 50/50 chance i cropped it from a semi-nsfw picture because i liked the style and just screenshotted only the face
 
@hyper-neutrino hmm hn = hentai weeb confirmed :P
 
My life is complete
 
very nice
 
4:22 AM
@Dudecoinheringaahing the absolute weirdest is where there's part of it drawn in his normal style
 
chonky anime gorl
 
@Dudecoinheringaahing I see you've changed...
 
@Ausername The Dude coinheringaahing abides man
 
@Dudecoinheringaahing aren't you chloe lmao
 
2 mins ago, by Dude coinheringaahing
Especially when Chloe is my name :P
 
4:24 AM
I decided I was going to turn my username backwards this month, then forgot, then remembered just now, so give me a minute...
 
I trademarked that name, I will only give it up when someone beats me in combat :P
Trhe chat profile ahs been appropriately updated :P
wait no, that gets rid of my pronouns :/
There we go, fixed :P
 
your username's length now causes the links at the top your profile page (the activity tab on the main site) to span two lines :/
 
Wait what?
It's one character shorter now :P
 
¯\_(ツ)_/¯ must be wider based on the font
 
caird
Dude
okay yep is actually wider in the font i have in chat
 
4:32 AM
Same
 
forgot r is on the narrow side as well as i
 
yeah with "caird coinheringaahing" there's barely any space between the edit profile button and account info, so it must be just a tiny bit wider
 
wft :P
This aggression will not stand man
 
@Dudecoinheringaahing wft indeed :p
 
4:33 AM
@emanresuA What page is that?
 
the expanded chat profile
 
You are in far too many rooms
 
I was in 22 :P
 
How is your sidebar not completely cluttered up
 
It collapses various things :P
 
4:35 AM
Checkmate atheists
 
I am atheist
 
rn i have my physics exam
 
..if we're still talking about me, you should know I'm an atheist :P
 
No I mean y'all now have to specify what you mean when you say vyxal bad
 
no I don't
 
4:36 AM
vyxal bad
 
because both are bad /s
 
@Dudecoinheringaahing which vyxal? :p
 
@vyxal ⍳
 
4:37 AM
why don't you make like a tree and split :P
 
WHOA @lyxal?
 
vyxal is the user, Vyxal is the golfing language, bad means not good
 
@vyxal bruh you changed ur name
 
Yes, very observant
 
4:38 AM
i think we all noticed
 
vyxals are bad
 
@Dudecoinheringaahing ^^^
 
CMC: Given a string, output vyxal if the input is lyxal, otherwise, output the input unchanged
 
did you get tired of people saying that you licks all
 
4:39 AM
Nah I'm riffing on the joke that people sometimes say "Vyxal's Lyxal answer"
Now there's no confusion
 
@Dudecoinheringaahing Python: lambda x:x if x!='lyxal' else 'vyxal'
 
Five downvotes please
 
@PyGamer0 just regex replace ^lyxal$ with vyxal
 
oh also i completly forgot
my camera is on
so dont hack
 
what
 
4:41 AM
Sus
 
my camera is on formy exam
 
@PyGamer0 Do exam then, unchat
 
Why is that being moved from Vyxal?
 
I'm tempted to ban Vyxal bot from here, if I could
 
4:42 AM
@Dudecoinheringaahing Brachylog, 14 bytes: "lyxal"b,"v"↻|
 
I think we've made it quite clear that bots are, unless explicitly excepted, not allowed in TNB, and especially to not move messages from Vyxal into here. I do not want to have to repeat this message again.
 
in Vyxal, Jul 28 at 4:30, by lyxal
y'know, even though I think it's absolutely hilarous moving bot messages over to TNB, I ask that you respect the request made by caird
I've also explicitly requested that y'all don't
 
banning vyxal bot wouldn't even help; you'd have to ban whoever is moving messages. alternatively, you can demote them in the source room
 
Jul 28 at 4:28, by caird coinheringaahing
Ok, bots are explicitly banned here unless given permission. Please don't abuse RO privileges in other rooms to get around that
 
4:44 AM
@vyxal Would it be possible to pin that in Vyxal for a few days, and/or ping all of the ROs to make sure they're aware?
 
Sorry
@AviFS Your implementation almost works, but the string somehow ends up with slashes in it, which atob barfs on.
 
@emanresuA No worries, just don't do it any more :p
 
@hyper-neutrino Oh hey, I know that guy. He's a nihilist
 
For the next month, I'm going to be quoting The Big Lebowski here almost religiously :P
 
I'ma work on stack-based Java.
 
@UnrelatedString Course, you don't need to :P
 
5:02 AM
how is lyxal nit word
 
what?
 
nvm
 
me when I'm about to divide complex numbers
 
@Dudecoinheringaahing yeah that was my first thought but i decided the string was funnier
 
how related was the string to the challenge though
3
 
5:23 AM
@emanresuA Wait, which one?
 
The parser
 
why is everyone changing their names?!
 
for links
 
@PyGamer0 because it's funny
 
ok i will chabge nmeh name to funi
 
5:25 AM
sure
 
no i wont
 
sad.
 
although i am planning to change my pfp
^ to that
thoughts?
 
yes
how'd you make it?
 
@vyxal MS-Paint
and then resized it
to make it bigger
 
5:31 AM
very nice
 
@vyxal i changed it on github
 
very nice
looks good
 
5:59 AM
ok i changed it on cgcc
 
that's actually gorgeous at pfp scale
 
@Dudecoinheringaahing github.com/cairdcoinheringaahing/Flipbit "check the wiki for a list of instructions"
sdjhfbjsdfbjsfdl\
 
@Razetime uhhh what?
also my lisp lexer now splits by spaces
['(', 'def', 'grid', '(', 'reshape', 'x,x', '(', 'range', '(', '**', 'x', '2', ')', ')', ')', ')']
and can handle strings
 
Is 'x,x' intended?
 
@Bubbler yes
i am making it similar to lisp but not exaclty lisp
x,x is x x in APL
and x,x,x,x is x x x x in APL
so its a vector
 
6:15 AM
That's, uhh, not a good way to design a language
 
@Bubbler ?
 
@Dudecoinheringaahing github.com/cairdcoinheringaahing/Commentator/wiki may wanna specify that input is via command line args
 
@Bubbler what do you mean?????
 
Mixing syntaxes is easily a road to parsing hell
unless you set up rigorous rules like "split at spaces, and APL-like words will never contain spaces"
 
6:36 AM
posted on August 04, 2021 by Mark Giraffe

Recreate "99 Bottles of Beer on the Wall" in the shortest program of your language possible. Use whatever but make it clear.

 
What is a sensible hash function for an array of integers?
 
for what purpose
 
if they're all unique why not use the ints themselves
 
@Anush to hash the array, or to hash the integers?
 
Hash the entire array
 
6:51 AM
base conversion?
 
Which means hashing the ordered sequence of integers
 
@pxeger thanks
But what is it doing?
 
no idea lol
Here's Ruby's, which seems to be a bit simpler: github.com/ruby/ruby/blob/master/array.c#L5110
 
calls pyobject hash, which is in a different file
 
6:56 AM
@Razetime that just takes the individual hash of an element
 
yeah which still needs to be read through
 
for a list of integers, you can replace it with a hash function just for integers
This is the function for individual integers: github.com/python/cpython/blob/main/Objects/longobject.c#L2915
 
I mean if I want to reimplement it what is the algorithm?
 
are you more concerned about hashing the integers, or how to combine the integer hashes in an array?
 
@pxeger the latter
 
6:59 AM
@Anush This one claims to be extremely fast and has implementation in various languages
 
@Bubbler can that do arbitrary-length blocks of memory?
 
@Bubbler I am hashing an array of integers
 
@Anush if you just treat the array as a buffer (assuming it even is laid out contiguously) then I think xxHash would work
 
It will be in C++ in the end but that shouldn’t matter
@pxeger interesting
 
It seems to have four streams which process 4 bytes at once each, so it looks like it works best for a multiple of 16 bytes
 
7:04 AM
At the other extreme, SO recommends
std::size_t operator()(std::vector<uint32_t> const& vec) const {
std::size_t seed = vec.size();
for(auto& i : vec) {
seed ^= i + 0x9e3779b9 + (seed << 6) + (seed >> 2);
}
return seed;
}
38
A: A good hash function for a vector

HolKannSo, when not wanting to use boost, Michael Blurr's comment led to the following hash function implementation: std::size_t operator()(std::vector<uint32_t> const& vec) const { std::size_t seed = vec.size(); for(auto& i : vec) { seed ^= i + 0x9e3779b9 + (seed << 6) + (seed >> 2); } ret...

 
For an integer array (uint32_t[]), you can pad zeroes to make it have multiple-of-4 integers and work on it
 
@Bubbler true
 
@Bubbler but then you'd have collisions between the padded array and an array that really has 0s at the end
 
Pad with something unique :)
 
I read through this code and it actually looks like it simply works without padding (it does handle that in hash())
and it's only 180 lines of c++ header
 
7:11 AM
@Bubbler if I ant an “unordered map” will C++ handle the collisions for me?
 
ant?
 
want
I a, guessing yes
 
@Dudecoinheringaahing why does 4[1] push five 1 s
in unprintablename language
 
63
Q: How does C++ STL unordered_map resolve collisions?

whiteSkarHow does C++ STL unordered_map resolve collisions? Looking at the http://www.cplusplus.com/reference/unordered_map/unordered_map/, it says "Unique keys No two elements in the container can have equivalent keys." That should mean that the container is indeed resolving collisions. However, that p...

 
yesterday, by Bubbler
For that kind of question, please try googling and look into SO answers first
That is, before asking that in chat
 
7:17 AM
:(
 
7:33 AM
@Dudecoinheringaahing why is the unprintablename interpreter sso broken
it performs operations on one side and puts the output on the other side of the stack
why
why does the for loop run n+1 times instead of n
@Dudecoinheringaahing Sample looks cool but i've no clue what it's tryna do
there's like zero answers i can find
 
Lesson: Don't give your language a name that is a common English word
 
the (sounds as duh)
 
wow, past me was actually kinda funny now I go back and read that
 
0
Q: Custom Rows of Smileys Triangle

tail spark rabbit earThis problem is inspired from shinh's problem. Given an input of positive integer \$n\$, output a smiley triangle (see below) with \$n\$ rows. Detailed rules Can be either a function or a full program. Standard I/O rules applied. Standard loopholes are forbitten. This is code-golf. Shortest code...

 
8:17 AM
ah yes now it is CS
 
8:31 AM
[
    Token('(', TokenType.BRACE, {}),
    Token('def', TokenType.KEYWORD, {}),
    Token('grid', TokenType.VARIABLE_NAME, {}),
    Token('(', TokenType.BRACE, {}),
    Token('reshape', TokenType.FUNCTION_NAME, {}),
    Token('x,x', TokenType.VECTOR, {}),
    Token('(', TokenType.BRACE, {}),
    Token('range', TokenType.FUNCTION_NAME, {}),
    Token('(', TokenType.BRACE, {}),
    Token('**', TokenType.FUNCTION_NAME, {}),
    Token('x', TokenType.FUNCTION_ARGUMENTS, {}),
    Token('2', TokenType.SCALAR, {}),
^ ok is that how a lexer's output should be?
 
What's the last {} for?
 
@vyxal i store some extra things
 Token('2', TokenType.SCALAR, {'type': 'decimal'}),
@vyxal ^ like that
now i need to parse that
and i dont know what a parser does
 
8:50 AM
Basically a parser converts a token stream into a tree called AST
 
yes i found a good tutorial
 
In the CS sense, a parser uses context-free grammar to do that. Understanding it is good for parsing yourself or using a 3rd party parser libraries
 
> context-free grammar
what does that mean
 
It is a topic that takes half semester to learn at university
 
@Bubbler bruh
can a python collections.deque be indexed like a list?
 
9:05 AM
i wouldn't count on it
not in the sense that i wouldn't count on the feature existing but in the sense that i wouldn't count on it being a good idea to use
if you're doing a lot of random access then consider using something meant for it
 
@UnrelatedString Vyxal is using it?
 
collections.deque supports indexing but is O(n)
 
@PyGamer0 i don't see that code doing anything but popleft()
 
deque has its uses, plain list has its uses
@PyGamer0 For practical purposes, you can search for tutorials on what a grammar looks like, how to use some parser generators (like how to express your grammar in the parser generator's language), what left-recursive grammar is and why it is bad, how you build an interpreter on top of that, etc.
Also "parser combinator" is a thing these days in many languages (the ancestor being Haskell's parsec), which makes it easy to build parsers without learning a separate "grammar language"
 
9:23 AM
Hi
 
@emanresuA hi Eman-Resu-A
 
That is my name now
 
@emanresuA y e s i k n o w
how do i parse lisp like structures (+ (* 2 3) 1)
 
@Bubbler Bounty plz, now that razetime's is out of the way
 
Random dude be like: Hey I am making lips in Python
 
9:27 AM
lips
 
@PyGamer0 Basically aim for a tree structure like ["+", ["*", "2", "3"], "1"]
 
@Bubbler thats it?
 
Yes. Running it is the next step
 
For that, depth-first eval, right?
 
Right.
Or, once you get a parser that gives a tree, you can modify the parser to evaluate things on the fly
 
9:31 AM
Although then it becomes an interpreter
 
Parse tree -> depth-first eval is also a form of an interpreter
 
Another really simple option, given that it's lisp, would be to transpile by indexing the function name into a dictionary of lisp function names and calling that with the rest of the arguments - like (add(multiply(2,3),1) or something...
CMQ: Is there any question, networkwide, with >1m views / >1k answers?
 
Sandbox
 
9:46 AM
Oh true
First one?
 
m90
@emanresuA What exactly does the slash mean there?
 
I'm pretty sure it is the only network-wide question with >1k answers (it's well over 8k and quickly approaching 9k if you also count deleted answers)
(at which point we can joke about over 9000)
 
@emanresuA what does that mean??
 
i would assume
evaluate
depth-first
 
9:53 AM
Like with (+ (* 2 3) 1) you evaluate the (* 2 3) first, then evaluate the + with that and 1 as arguments.
 
@emanresuA how do i do the nested ones first? recursion?
 
Recursion, yes
 
Or compilation
 
m90
@emanresuA This is the earliest I found (September 17, 2008)
 
@m90 Oh wow, nice find!
 
9:55 AM
Wow, 2.9M views
 
And let python / JS / whatever you're using do all the work
 
10:14 AM
8
Q: Triangle-style sequences

Dude coinheringaahingConsider the triangular numbers and their forward differences: $$ T = 1, 3, 6, 10, 15, 21, ... \\ \Delta T = 2,3,4,5,6, ... $$ If we alter \$\Delta T\$ so that it begins with a different integer, we get a different, yet similar sequence (assuming that it begins with \$T'_1 = 1\$): $$ \Delta T' = ...

 
10:24 AM
An example error from my new language, which is stack-based Java:
MuffinError on line 97:

l!O;k} A%P2KG[N8%&w>.btuRyB_MV\"Z\\K)z:
                                  ^

Water cannot be used to dissolve peanuts
 
10:34 AM
Can water be used to dissolve peanuts?
 
@emanresuA muffin error? Then the error should be Don't be a muffinhead
 
True
What about
InternalError on line 76:

o2b5C#2>X&x7R.KTE7+<D8yXthD6SHp]Q~h~ YK0L
                        ^

Please don't dissolve coffee - it causes deconfrickulation of apioforms.
 
Oooh I get that reference
Where language specs?
 
Not anywehere yet
 
ngn
did you know that dissolved peanut mixture is highly explosive is a fact that i just made up?
 
10:41 AM
Good job
 
> I'm a #probabilistic programmer. Sometimes I get #puncuatedecomposed output, and sometimes I get #probabilistic output.
CMC: Come up with a definition for #puncuatedecomposed output
 
I still have no idea what that means
 
(source: my profile on main, generated by my favourite plaything)
 
O
That's why
Last one:
MuffinError on line 59:

dbxN%3x'%J9^SC3r=/%x(WC{ajxPLxG_v,m`M0N?b2EDS:
                         ^

The problem isn't with the code. It's with you.
 
turns out humans are the worst compilers
6
 
10:50 AM
Also was BMG meant to have been yesterday?
Or is it tomorrow?
 
@JoKing This claim doesn't parse.
 
> A program that translates another program written in a high-level language into machine language so that it can be executed.
clearly this means english to python
 
davidalexander8080@gmail.com
@lyxal This isn't your actual name. It can't be that simple. Also what happened to the other one?
Also wasn't your discord usertag Lyxal#6969?
 
@emanresuA have you ever watched any of James Veich's replying to scammers videos?
@emanresuA my free nitro expired so discord randomised my number
 
@vyxal Yes, they are poggers
@vyxal Veitch
 
11:05 AM
@emanresuA I created that email tonight so I can place it in public forums as bait
The name "David Alexander" is a tribute to the poem "The Outing" by Michael Rosen
 
My friend created a fake email and put it on several things, and after a month they had over 100 emails, including one asking to join a cult.
 
What do you put it on?
Or what did your friend put it on?
 
Not sure
 
I'll keep y'all posted if I catch any scammers
I intend on trolling them with gpt3
And just wasting their time in general
 
@vyxal If only GPT-3 could produce helpful graphs...
 
11:10 AM
igive it an ascii art graph and see what happens :P
 
11:22 AM
graphs?
 
11:53 AM
@Bubbler how do i do it?
append a list to the main list?
then append tokens to that list?
 
@emanresuA Shit, it should've been on 3/8 at 00:00 UTC :/
 

« first day (3840 days earlier)      last day (993 days later) »