« first day (839 days earlier)      last day (4108 days later) » 

11:01 PM
Is there a proper term for the body-horror-esque feeling that questions like these give me? — fluffy 47 mins ago
 
Also I'm debugging
 
@MooingDuck: I know you though (tbh, the stackoverflow community isn't that large, most people with 20k+ rep are familiar, if you answer the same type of questions (c, c++, etc))
 
@fluffy I do think you might want to file that as a separate question :) (Perhaps you are referring to the sense of bewilderment that you never actually noticed the defectiveness of these verbs before? The shock and detached feeling, as if suddenly a floor was ripped away from under your feet and you gaze into the abyss? Or maybe just "how can people be so ignorant". In that case, let me give a hint: non-native speakers) — sehe 30 secs ago
lol
 
user142019
I've posted the 7500000th message! :D
 
@Zoidberg BIN IT
 
user142019
11:02 PM
NO!
 
@Zoidberg And the 7500070th. Egoist
 
user142019
in Java Sucks, 4 mins ago, by Zoidberg
Also, who made that terrible design.
 
@Zoidberg (how long have you been waiting for that?
 
user142019
@MooingDuck I didn't notice; Fred noticed.
 
@Zoidberg He seems particularly bored today
 
11:03 PM
wow that counter goes fast
 
user142019
/b/'s goes faster.
 
I bet
balancing trees is hard :(
 
user142019
@MooingDuck Use random number generator and brute force.
 
@sehe: modal verbs don't have infinitives
in English, I mean.
 
11:05 PM
@MooingDuck That reminds me, I definitely got to plant a red/black tree before I die.
 
@rici I have read about that recently. I knew this intuitively. I never had the "pleasure" of receiving any formal grammar training. Well, unless in Dutch, Greek and Latin (and a bit of French and German)
 
@FredOverflow I'm gonna go for a splay tree
hopes they're not the same thing
 
I have never implemented an interesting tree-based data structure :(
 
@sehe: do they have infinitives in German? Or Dutch, for that matter?
 
@FredOverflow Make your own game engine, there's always at least one tree in there
 
11:07 PM
@MooingDuck Ask an elephant. They enjoy this
@rici Of course.
 
@Borgleader Why would I want to make a game engine?
 
user142019
@FredOverflow I have never implemented an interesting data structure. :(
 
Lol I have only two questions on English.SE. Both have now gotten 'Nice Question' badges.
 
@FredOverflow To implement an interesting tree-based data structure...
 
I've never asked a real question on SO proper. (I just posted questions from others a few times)
 
user142019
 
user142019
> Yet another project I'll probably never finish.
 
user142019
I already stopped working on it lol.
 
@sehe, interesting. They do in latin languages, too. Of course, you could say that the English modal verb is invariant, but you cannot form an infinitive with "to ..."
 
@Zoidberg That's what you get for dropping out. Honestly, the fun is in using data structures, really. Wield that power. It's been long since I really enjoyed taming the CPU to do ... trivial stuff
 
@Borgleader I would need to write at least two games in order to see what I would need for my game engine. I find it funny when beginners ask about writing their own game engine, yet they cannot even implement Naughts and Crosses successfully.
 
11:11 PM
Noughts and Crosses is tic tac toe.
I googled it.
 
@FredOverflow Or you could read Game Engine Architecture :) Might save you from writing one of the two games.
 
Ell
I can't implement Tetris. I don't know how-to represent the field.
 
@Borgleader I don't want to read tutorials, I want to get dirty and find stuff for myself.
 
I can't implement anything.
 
@Ell The most popular way is 2D array of blocks.
 
11:12 PM
I did Tic Tac Toe and Pong
 
@FredOverflow It's not a tutorial, it's a book.
 
I did a lot of games on the TI-83. Even a text based adventure one.
 
I made a couple games on my TI-83 too.
Nothing too exciting though. :(
 
Ell
But a 2d array of blocks seems weird :S how do I represent the current pierce? a different array? I think I could probbably do it, I'd just hate it :P
 
@Borgleader Yes, but it'll probably teach me what "a game engine" is. I don't want to have such a book.
 
11:14 PM
@Ell I remember an article about it. Let me find it.
 
@Ell The board and the current piece are two separate objects.
 
@Ell a piece class that contains a "location" and a "shape" where a shape is a much of offsets.
 
Just like how Mario and a level is not the same thing at all.
 
@Ell By the way, have you played my abandonded Java tetris? ;)
 
Ell
11:16 PM
No :P I will now
 
user142019
Are there regular expression engines compiler regexes to machine code?
 
Ell
Oh wait I'm mobile, I can't java I don't think
Idk but it sounds like a good compiler excersize
 
@Zoidberg boost
 
user142019
Really?! Boost has a code generator?
 
@Ell most mobiles run on java almost entirely
 
user142019
11:20 PM
There is even a JVM for iOS.
 
@Zoidberg boost has templates which the compiler can optimize
 
user142019
Oh Spirit.
 
@Zoidberg no
@Zoidberg yes
 
@MooingDuck if you allow that, then lex also compiles regexes to machine code
 
user142019
I mean regexes as in std::regex which could be compiled to machine code at runtime.
 
user142019
11:21 PM
(Heck, even at compile time if given a string literal and the compiler is smart.)
 
@rici well, the output of lex needs to be compiled, so that's not quite the same thing
 
user142019
Would be an obvious optimization. :P
 
I learned a few days ago that scanf accepts some regex.
 
@Zoidberg no, that'd require runtime code generation, not one of C++'s high points.
@Rapptz which scanf?
 
@MooingDuck: I just type make lexer. What do I care how it's implemented?
 
11:23 PM
@MooingDuck I don't know. I googled around though.
 
@rici one of us has misunderstood the other, not sure which.
 
15
Q: Is scanf's "regex" support a standard?

brataoIs scanf's "regex" support a standard? I can't find the answer anywhere. This code works in gcc but not in Visual Studio: scanf("%[^\n]",a); It is a Visual Studio fault or a gcc extension ? EDIT: Looks like VS works, but have to consider the difference in line ends between Linux and Windows....

 
@Rapptz oh sweet!
 
@MooingDuck: you're right, it's not quite the same thing. But it's not qualitatively different. cc is often implemented as a driver which calls several binaries (starting with the preprocessor), so there's no obvious formal difference from the built-in make rules which allow the generation of lexer.o from lexer.l
scanf supports character classes which are implicitly repeated. That's not the same as a regular expression.
 
@rici yeah, I agree with that
 
11:30 PM
@Zoidberg More accurately: Boost Proto and any DSL on that (I think Spirit and MSM have examples)
Oh and don't forget Boost Expression - it is precisely for statically compiled regexen
 
"If a - character is in the scanlist and is not the first, nor the second where the first character is a ^, nor the last character, the behavior is implementation-defined." well that's confusing
 
@MooingDuck: implementations are allowed to but are not required to implement character ranges.
 
@rici oh right
 
@sehe s/Expression/Xpressive/
 
12
Q: 'Head First Design Patterns' opinions wanted

PeanutHas anyone read 'Head First Design Patterns' by O'Reilly? If so what do you think?

lol @ accepted answer score
 
11:43 PM
Lol, I looked up the time in the table: Optional digital capability.
Fits quite well with what I used to decide on the numbers.
 
2
Q: Are there any questions with an accepted answer which wrongly has negative votes

wafflesNegative scores on accepted answers upset me. I know "accepted answer" means it helped the OP, not that it is correct. Nonetheless there are only 72 (according to the latest dump) questions which have an accepted answer with a score less than -1. Are any of these scores unfair? (question, a...

I count that I have at least four questions where I got more upvotes than the accepted answer.
my rotate function passed it's first test-case! I'm excited!
 
I have a few =/
 
@MooingDuck What's the signature?
 
Ell
Man I wish I could sing
 
11:50 PM
They completely fucked up the "mark as duplicate" feature.
 
@LightnessRacesinOrbit In what way?
 
@FredOverflow signature? void node::rotate(side_type direction, node* newroot) noexcept(true)
 
@MooingDuck Ah, tree rotations. I thought you meant a rotate algorithm for sequences.
 
@FredOverflow (a) The suggestions no longer have any apparent relation to the "Related questions" list; (b) One can no longer mark a question as a duplicate of another question that has no upvoted or accepted answers. Which is pathetic.
I'm struggling to find the appropriate meta post in order to bitch.
0
Q: "Fatal error: Call to a member function fetch_assoc() on a non-object" when using PDO

methuselahHow do I resolve the following error? Fatal error: Call to a member function fetch_assoc() on a non-object in index.php on line 27 Call Stack: 0.0000 644064 1. {main}() index.php:0 This is the code I'm running so far: $sql = 'SELECT * FROM pm_user WHERE name='.$_SESSION['pmname'].''; $...

 
posted on February 01, 2013 by Eric Battalio

 Welcome to another Friday Miscellany, a collection of interesting links from across the internet curated from social media, conversations and curiosity. From isocpp.org, B-Tree containers, a C++ template library that implements B-tree containers with an analogous interface to the standard STL map, set, multimap, and multiset containers. C++ AMP GPU debugging now available on Windows 7.

 

« first day (839 days earlier)      last day (4108 days later) »