« first day (2590 days earlier)      last day (2350 days later) » 

12:12 AM
in FF?
for me it was in the address bar on the right hand side, there was an upgrade icon that would show up on the left hand side
 
yeah in FF
I think you could drag it around if you used one of the customize options
 
Nah, it wasn't a distinct thing until now, it was just part of the URL bar
 
 
1 hour later…
1:31 AM
wrong room, m8s
 
2:09 AM
reminds myself to not buy online
the painful month long waiting for item to arrive
sometimes 2-3 months
but if I waited 2-3 months, it's probably an item I do not need
so I should not buy in the first place
 
 
3 hours later…
5:07 AM
Fuck, why is serializing a model so fucking difficult in Qt, getting fucked with bugs having to write an xml read/write pair for every datatype.
 
Hey guys, I am implementing a in memory B+ tree in C++ as part of an academic project. I am trying to follow all good C++ code styles and practices. I am stuck at one point though and I guess this is a case of circular inclusions in headers. I tried forward declarations and pointers to resolve it but I am still having problems. Anybody want to look at the code and provide help ?
 
@SourabReddy wrong room, also good coding style for a simple project is to keep everything in a single .hpp file
 
Is it really? So you mean declare all classes and related methods in one big .hpp file ?
also it should have guards then right ?
 
Basically you can't move templates across compilation units
 
@SourabReddy A header should always have include guards, yes.
 
5:18 AM
#pragma once (before the guard)
 
is
 
right :)
 
Also make sure to dump your library into the boost namespace :-)
 
5:56 AM
Thanks for the help y'all, I was able to resolve my errors
Any resources apart from effective C++ you guys suggest to learn good practices for writing C++ code ?
Keep in mind it's a rather simple and small project, just a B+ tree implementation. I am using primitive stuff no templates etc advanced stuff
What I would want to know is how can I integrate testing into small projects like these
 
 
1 hour later…
7:08 AM
Hi
 
8:03 AM
Raymond Chen just posted an interesting writeup about benchmarking this and what optimizers can do with integer comparisons. — isanae 12 hours ago
Holy fuck, Raymond Chen read one of my stackoverflow questions?! fanboi alert
 
8:30 AM
@fredoverflow Interesting.
I had to look up the cmc instruction.
I wonder if there is any compiler that would generate it in any situation.
 
 
3 hours later…
nwp
11:04 AM
@sehe The graph depicts transitions between states. From the start state you can read a H to go to another and so on. The red lines are for the transition when reading something that isn't listed.
I need to be able to save and load the state of the automaton (basically which state it currently is in) because I need to do something sensible in highlightBlock which gives me a single line to highlight and whatever state I want from the previous line. So I need to remember if I am in a comment or raw string literal or whatever other constructs one wants to highlight that span multiple lines.
I thought making a DFA with the option of getting and setting the current state would be pretty straightforward, but matching things like \b which is a word boundary is not so straightforward after all.
 
11:23 AM
Never been. There's a reason that most editors employ 'rope' style buffer representations. You'd associate highlighting with ranges, and recalc for subranges.
TBH doing things linewise seems like a bad idea to me. Nothing about syntax is linewise, and usually nothing about editor buffers is
 
nwp
I imagine it is advantageous when modifying the bottom of a long file and not having to re-scan everything.
 
Ven
Never do lines.
Hi lounge.
 
nwp
Maybe this is just the punishment for using Qt.
 
Ven
Emacs is stupid, can't even do blocks.
 
The only confusing part is what the red stuff is for :\
@StackedCrooked oh boy... you really like your anime, don't you
 
nwp
> The red lines are for the transition when reading something that isn't listed.
 
@thecoshman yeah, I suppose :)
 
nwp
Maybe it makes sense to have the regular transitions and the failure tree in separate images.
 
nwp
12:15 PM
Today I learned compl is a keyword in C++.
3
 
whole bunch of new keywords in C++11
compl isn't one of them though
maybe as an antidote for broken keyboard without a functioning ~ key
 
@nwp or simple a description that for any 'unlisted transition' you go to this one node
 
nwp
It's actually 2 nodes, but yeah, that would make things much simpler.
 
oh, for starting the next word?
 
nwp
Yeah, the final states skip the word boundary check because they already had it.
 
12:23 PM
not sure what that diagram helps with though to be honest...
 
nwp
Although maybe I can just skip that because in, say, const int the "t space" produces a word boundary and "space i" another, so may as well have a single state.
@thecoshman Debugging the DFA.
Having word boundaries at the beginning and end simplifies things a lot because I don't need to worry about overlapping words. I'm just not sure how much that assumption will screw me later.
 
@nwp You don't have to rescan everything if you split on expression boundaries. Or statement boundaries. Or whatever nice boundaries your grammar has
 
I don't tihnk you want "space i" to be the start, just "i"
 
@StackedCrooked s/text editor/word processor/
 
nwp
This is not an answer. To ask for clarification leave a comment under the question. — nwp 16 secs ago
150k rep
 
12:32 PM
@nwp just say "trie" and a flat list of the values :)
 
 
8 hours later…
Xeo
8:08 PM
ded
 
So is Discord
 
yeah discord tot
:(
 
Xeo
I did want to so "ded like discord"
 
haven't been there for a while
 
@StackedCrooked Y U no discord with us
 
8:21 PM
I forget.
 
Ell
Discord is broken anyway
 
it's back
BACK
 
8:43 PM
discord ain't ded
 
it was
 
8:55 PM
@Xeo it's because you never say a thing
 
9:51 PM
@Xeo Typical Saturday
Sundays are much more talkative.
 
user1804599
10:36 PM
@fredoverflow What happens if you call super(); in Java in a method of java.lang.Object?
 
@StackedCrooked energy drinks
 
user1804599
$ javac Object.java
Object.java:5: error: Object has no superclass.
    super();
    ^
1 error
 
super!
 
user1804599
I'm making an inner platform in Java.
 
user1804599
With DSL and bytecode generator.
 
user1804599
10:41 PM
Label ifEmpty = new Label();
Label endIf = new Label();

methodVisitor.visitInsn(Opcodes.DUP);
methodVisitor.visitJumpInsn(Opcodes.IFNULL, ifEmpty);

methodVisitor.visitInsn(Opcodes.DUP);
methodVisitor.visitInsn(Opcodes.ARRAYLENGTH);
methodVisitor.visitJumpInsn(Opcodes.IFEQ, ifEmpty);

methodVisitor.visitLdcInsn(0);
methodVisitor.visitInsn(Opcodes.AALOAD);
methodVisitor.visitJumpInsn(Opcodes.GOTO, endIf);

methodVisitor.visitLabel(ifEmpty);
methodVisitor.visitInsn(Opcodes.POP);
compileDefault(methodVisitor);
 
11:03 PM
Inner-platform ?
I'm proof reading a paper my collaborator sent with the intention of citing myself at least 10 times.
 
11:20 PM
Fuck, they used MS Word's reference manager.
 
11:34 PM
I am really frustrated when using CAD to draw a line, you want 5.00, it goes wither 4.99 or 5.01 just not 5.00 and every other value is okay
 
11:44 PM
@Mysticial did you get that NVMe card?
 
@Mikhail I'm in fucking Bangkok atm.
 
@Telkitty If it's a decent CAD program, it'll allow you to specify the length of a line directly.
 
@Mysticial hows that working out?
 
nothing special
 
yeah, you'd have to pay extra :-)
 
11:49 PM
"One night in Bangkok and the world's your oyster
The bars are temples but the pearls ain't free"
 
@JerryCoffin They ain't ever free jerry
 
only 32 celsius/90 fahrenheit there ...
 
@Mikhail Feel free to tell that to whatever long-gone '80s group wrote the song.
 
authentic thai food is really good though
 
autistic thai food is better, tho
 

« first day (2590 days earlier)      last day (2350 days later) »