« first day (1939 days earlier)      last day (3010 days later) » 

5:01 PM
@Morwenn I hate it when at the end the benchmarks don't prove my claims.
Performance can be so random somethings.
 
tfw u publish the paper and ur peers disprove it
 
If I increase logging verbosity the network packet processing gets better throughput.
How does this make sense?
 
@nick I like peers from romania
I get 10MB/s from them
 
TIL the concepts of asynchronous programming were originally conceived by Margaret Hamilton.
Margaret Heafield Hamilton (born August 17, 1936) is a computer scientist, systems engineer, and business owner. She was Director of the Software Engineering Division of the MIT Instrumentation Laboratory, which developed on-board flight software for the Apollo space program. In 1986, she became the founder and CEO of Hamilton Technologies, Inc. in Cambridge, Massachusetts. The company was developed around the Universal Systems Language based on her paradigm of Development Before the Fact (DBTF) for systems and software design. Hamilton has published over 130 papers, proceedings, and report...
 
she was the senior sw engineer for that nasa program right
oh yeah it says right there
brain a little slow right now
 
5:10 PM
> And what had happened was it was tricky programming, and the person who wrote it took delight in the fact that all of his comments were in Greek and Latin
 
Did I not see a tweet about them fixing up mobile chat?
 
@StackedCrooked senatus populusque haskellus
 
I love it when people are hitting the nail on head.
 
@thecoshman Enable it in prefs tab of your chat account
@AlexM. kek
 
5:26 PM
Hi um, I'm making a linked list in C, and when I use this function to append a node to list, it goes into an infinite loop: pastebin.com/pH18tCw0
Am I missing something in it?
 
@Link Yes, your brain
 
sup lounge
 
@Link Can you even fucking read? This is Lounge<C++>, not C
 
@StackedCrooked Why should I watch this talk? (You have 3 sentences to convince me :P)
 
You suck. You need to get better. You suck.
 
5:30 PM
Sounds depressing. Dont feel like watching.
 
How did I do? :)
Dammit.
Ok, you don't really suck. You're kinda ok.
But don't tell anyone I said that.
 
@Link Chances are there's no "Null" at the end.
@Link You also use t and s before you init them, so your program would just crash if someone did indeed pass a NULL list into that.
 
thank you phd
we need more people like you
 
@Link You also don't ever actually make a new node in there. You just write over the beginning.
 
I'll go to the vampire room to let them know the phd is here
 
5:33 PM
Your code is an absolute trainwreck.
9
 
I once answered a question on SO where someone wanted to implement a File linked list in C
 
@KhaledKhnifer you survived?
 
0
A: Linked Files instead of linked list

Khaled KhniferDefine it like this struct FileLinkedList { FILE * f; FileNode * next; } But you need to have some meta-data in the files, for example the first line in the file is the file-name of the next file or 0 to end A.txt B.txt This is the first Node in the FileLinkedList B.txt 0 This is ...

 
alternatively, use a debugger.
 
5:38 PM
Print statements never betrayed me.
Debuggers always weasel out at the critical moment.
 
I'm gonna start playing Rogue Galaxy which is a forgotten hidden JRPG gem that recently got a reboot on PS4
 
> "value optimized out" -- gdb
 
the reason why it's so frustrating when debuggers don't work is because they're so much better
 
std::cout // in plain C code
@Stacked you're evil
 
I'm planting seeds.
 
5:41 PM
@StackedCrooked he he he
 
user1804599
GDB is an asshole.
 
user1804599
Integer overflow is UB in PureScript.
 
UB in a scripting language?
 
user1804599
What is a scripting language?
 
PureScript.
 
user1804599
5:43 PM
Python also has UB.
 
@MadameElyse Language that's mainly used/can be used to automate hand-doable tasks
 
user1804599
> If two or more threads use the catch_warnings context manager at the same time, the behavior is undefined.
 
So you just need to not use it at the same time.
 
user1804599
It's noob speak for "without synchronization".
 
user1804599
But what'd you expect from Python.
 
user1804599
5:48 PM
(Hint: good documentation is not it.)
 
I know next to nothing about Python.
 
user1804599
Good. Keep it that way.
 
user1804599
Learn Haskell instead.
 
user1804599
And then help me with Grass.
 
My working languages seem to be C++, Bash and JavaScript.
Grass?
 
user1804599
 
user1804599
@StackedCrooked I thought you used Tcl a lot.
 
Yeah, but I only know the "puts" command.
Recently I read Tcl's about page.
 
user1804599
I tried Tcl once. It was horrible.
 
They really boast a lot of features.
 
user1804599
It was a bit like JavaScript, PHP, and Python: no lexical scope.
 
5:52 PM
@MadameElyse Same here.
 
user1804599
JavaScript and Python do have lexical scope for exceptions in catch blocks though.
 
Most of my colleagues hate Tcl. But a few of them seem to like it.
 
user1804599
 
Tcl only has strings. It's kinda like a shell language.
 
user1804599
It's really moronic that you get name errors at runtime and not at compile time.
 
user1804599
5:54 PM
Lexical scoping is so easy to implement and prevents so many bugs.
 
@MadameElyse heh
If you get errors in Tcl you get a line number. But it's not the line number of the file, but of the calling function.
So you need to find out the line number of that function and then add the reported line number to that.
 
user1804599
Up until a recent version of Erlang you never got line numbers in stack traces.
 
user1804599
And currently, stack traces in Erlang are still presented as a textual representation of an Erlang data structure that is not pretty-printed.
 
Erlang so dirty.
 
user1804599
So you get like [{{foo,2},"blah.erl",1},{{bar,1},"bleh.erl",6}].
 
user1804599
5:58 PM
In PureScript you sometimes get the line number of the line that imported the module instead of the call to the function that was in that module.
 
user1804599
Apparently row polymorphism and type inference are easy but line numbers are hard.
 
Line numbers how do they work?
 
user1804599
Nah, they're just boring. Keeping track of line numbers is something you'd have an intern do.
 
@StackedCrooked Hopefully
 
user1804599
6:00 PM
A song that contains statistics and set theory.
 
user1804599
Always worth it.
 
user1804599
Also Richard Dawkins has a nice voice.
 
if the updater for vs asks me to restart my pc
I'll personally go to redmond and pee on microsoft's door
 
user1804599
Are there countries where halal slaughter and import of such meat is illegal?
 
user1804599
6:04 PM
(As it should be.)
 
6:30 PM
@StackedCrooked alright alright, I'll watch it :P
 
user1804599
TIL the ratio of the long and short edges of A4 paper is sqrt(2).
 
@StackedCrooked ...at least if you really care about performance.
 
@MadameElyse Heh. I learned that as well only two weeks ago.
@MadameElyse IIRC, the B series of papers has the same. The difference is the starting format.
 
user1804599
Nice.
 
@MadameElyse Same with the whole A (and B) series. This way, each time you fold/cut one in half, you two of the next in the sequence.
 
6:42 PM
Why is android device modding so annoying
Why is everything so bad
Why can't it just work
 
Welp.
It's time to do it.
It's time to batch things toget- fuck me I need a compile time string sorter q__q
 
> compile-time string sorter
gg
@ThePhD What for?
 
@StackedCrooked Yeah, I do that for disk computations in my pi program.
 
@набиячлэвэлиь Arity-based Operator Overloading.
 
Not .bat files, but batching.
 
6:49 PM
@набиячлэвэлиь E.g., someone passes in auto fx = make_thing( "func", func_1, "func", func_2 );, it needs to call func_1 if there's (for example) 1 argument, and func_2 if someone calls it with two arguments.
fx( 1 ); // calls func_1
fx( 2, 3 ); // calls func_2
 
lel
Sounds like it's Stack Overflow-material, tbh
 
I know mostly how I want to do it
But the current system isn't very... nice about it?
Like, when someone passes in the names and the functions,
I just immediately turn them into (type erased) functors that can be called by the underlying engine.
Which means I put the indirection overhead and etc. etc. on it
What I need to introduce is a step that groups the overloaded items together.
e.g., sorts everything by name.
 
@ThePhD Inherit the functors recursively and do a using F::operator()() in the derived class?
 
user1804599
You can't inherit from a lambda because a lambda isn't a class.
 
Yeah.
 
user1804599
6:53 PM
A lambda is an object.
 
GATE's recent episode was awesome btw.
 
Maybe I should demand
 
Yeah you should demand.
 
that people list overloaded functions grouped together
so instead of make_thing( "func", func_1, "func", func_2 )
They would instead be required to do make_thing( "func", func_1, func_2 )
That's really painful to implement with variadics, though...
Fuck me why is C++ so hard.
 
Fall back to a simpler solution.
Seems to me you're trying to do weird stuff.
 
6:59 PM
We already have a simple solution: no arity-based overloading.
 
Zoom out, not in.
 
@ThePhD probably because you're doing something non-trivial that looks like a cornercase C++ wasn't designed for
BUT YOU ALREADY KNEW THAT
 
@ThePhD But, but.. I love arity!
 
...
But
BUT!
I could implement this easier using tuples
Yes, yeeees....
And I could build an array of indices
 
tuples are so 2013
 
7:04 PM
std::array<int, sizeof...(args)> indices;
indices[arg_number] = group_number;
 
Noobles 2017
 
Perfect. Peeerfect.
 
@MadameElyse A lambda is an expression. Evaluating that expression produces an object (which is a closure, not a lambda).
 
I shall begin..... immeeediately.
Kufufufufufufufufu.
 
@StackedCrooked GATE the anime?
 
7:05 PM
yep
 
@MadameElyse False. Try using one in an unevaluated context
 
@StackedCrooked I watched the first episode, is it interesting overall, or is it just fighting scenes with no deep plot?
 
I'm fascinated by how shows the differences between the role of the army in medieval versus modern times.
 
Who needs tuples when you can have an array of void pointers.
 
I already have those in this codebase.
 
7:10 PM
I'm very annoyed by the fact that I don't know where to place the instructions for the CPU in this emulator
they need things other than the CPU state to operate like the memory so it makes sense to put them one level below the CPU and memory modules
but at the same time they're specific to the CPU
fuk programming
 
@AlexM. you're using a CPU emulator?
 
should've just become a paleontologist like I wanted when I was 5
 
@ElimGarak :D
 
Ell
I implemented multi methods using an erased tuple of shit
Actually it was of typeids
And mebbe it was an array
 
user1804599
module.exports.appendString = function($stack) {
    $stack[$stack.length - 2] += $stack.pop();
};
 
user1804599
7:22 PM
I don't think this will work. :D
 
user1804599
Hmm, it does. :D
 
well the scarf is wrapped and mailed with a card and everything
all I've really got left to do this weekend is memorize all the GoF's design patterns because the new guy at work's first question whenever I show him code is "is this a design pattern" and I need to figure out how to explain its relation to one for better intra-team communication
also, eh, having a standard starting point for some classes of problems isn't something I would consider a bad thing
enjoying a nice shoot of bamboo /cc @Borgleader @ElimGarak @TonyTheLion @ThePhD @Xeo @набиячлэвэлиь
drinking floof /cc @Borgleader @ElimGarak @TonyTheLion @ThePhD @набиячлэвэлиь
 
@jaggedSpire oh god... is he one of those who shoe-horns patterns everywhere?
@jaggedSpire :D
 
7:37 PM
@Borgleader I don't think so, but I'm not familiar with design patterns because I never really felt the need to learn them
theoretically though I can see it helping with code clarity because sometimes using one would provide a common solution to a common problem, in a pattern that maintainers could recognize without going through all the code with a fine-toothed comb
on the flip side if it's a slight modification to a design pattern it prooobably would be better to use something that plainly diverges
allowing people to make false assumptions being dangerous and all
 
the problem with patterns is when people start overusing them, certain people only swear by patterns and attempt to shoe-horn them everywhere at the expense of code clarity
which sucks
 
and I'm really hoping he doesn't do that. He doesn't seem to, but eh
He's odd. A few weeks ago he was all "yay singletons!" and now he's all "dependency inject everything, even the logger!"
it's not like he's just discovering the wide world of programming either, he's got 20 years of experience
 
o.O
 
Ell
@jaggedSpire /subscribe floofList
 
I think what may have happened was he told me that learning singletons was a good idea, I was like "I know what those are, thanks" and then I later mentioned to another coworker how it was odd that in C# singletons wereapparently good practice when in C++ they had <insert the list of problems I have memorized here> and then he must have heard about it from coworker B, done some research on the topic himself and discovered the breathtaking truth that singletons aren't really all that great
@Ell foxes, red pandas or all fuzzy animals?
in this theoretical sequence of events, the "hidden dependency" thing must have resonated with him greatly.
 
7:53 PM
 
@Borgleader yes that is definitely him
:P
it's actually amusing to talk to someone with such...unique speech patterns
 
few years ago I believed I was in hell, because I was forced to work on an enterprise legacy distributed system where there were bugs & UB that the system analysts told me not to mess with, because they are part of the business code!
 
Ell
@jaggedSpire all :D
 
@KhaledKhnifer oh god what
@Ell done
 
I thought asserting for ROM writes was straightforward and logical but this gets the point across so much better
instance Memory ROM where
 write = undefined
 read = theActualImplementation
 
7:58 PM
@StackedCrooked Haha, I know that feel :D
 
There is always logical explanation always. But it eludes me.
 
@AndyProwl I hate when that happens. I have reached the point where I more or less decide I'm not interested unless something captures me. But then again, I'm not in need of an instrument right now
 

« first day (1939 days earlier)      last day (3010 days later) »