« first day (1060 days earlier)      last day (3886 days later) » 

7:00 PM
@EtiennedeMartel Can we add duckface rehabilitation classes too?
 
That only means she has a chance of learning programming the right way.
 
The writer of that letter probably wanted more publicity (why else would you post it on the Internet?) then actually achieving anything with it.
Douchefuckwit
 
Xeo
@KonradRudolph Definitly. Even from the first few sentences.
 
And seriously, fuck Visual Basic jesus christ it's not a good language for anything.
> Is it really that bad compared to any of the other eight imperative flavors someone could have chosen? (answer: no)
Yes.
 
VB isn't that bad.
Its fucking terrible
 
7:03 PM
> You want to make a difference? Quit your job and get a teaching degree.
Ohohoho like education can be fixed.
 
I always hate it when parents blame the teachers for their own mistakes. (This is a general statement, not just relating to this article)
 
@CatPlusPlus Of course it can, you lazy ass.
 
Uh, what mistakes?
 
I didn't raise my kid, and he didnt turn out well --> teachers fault
 
@EtiennedeMartel Pfah.
@Borgleader Well, yeah, that's shit.
Also that whole blblbl my country needs to think of my children blblbl crap.
 
7:05 PM
blblbl
what is that
 
@Borgleader teacher | tv | hollywood | internet | video games
 
@melak47 wharrgrgarlbl
 
@A.H. Yes, basically they find any scapegoat (other than themselves) and blame it on that. Which is bullshit.
 
I don't know, I just make noises.
 
Xeo
Gawd that woman is going on and on about the teacher using VB instead of the apparent problem.
 
7:06 PM
well tbf VB does suck
 
I have an IT class this year. I bet we're going to be using VB :|
 
Outdated shit is a problem.
 
I'd rather do Haskell, it'll give us an interesting way to approach and solve problems.
 
But really fuck education.
Lowest common denominator shit.
 
7:08 PM
fucation
 
@EtiennedeMartel ugh.
 
@MohammadAliBaydoun actually I have no idea what language to recommend to an intro to programming class
 
@A.H. I'm pretty sure no one can agree on that
 
@A.H. I think it depends on the target stupid group. My school did C++ for anyone in engineering/computer science/math.
 
mine did Java, also for engineering
 
7:10 PM
Telecom kids and what not got visual basic
 
we got delphi, prolog, and some assembly thing :D
 
we only got that stuff if we majored in CS
which kinda makes sense
 
well, yeah I chose CS as one of my "majors"
 
I don't think Java is good for anyone. It leads to people who write Quasi-classes and think getters and setters = OOP.
 
For us, AFAIK software/computer/biomedical/electrical engineering get C++. And I believe the rest of them (aerospace/phys/chem/... eng) get matlab
 
7:12 PM
@MohammadAliBaydoun I thought 1 thread / Object = OOP? :O
 
@MohammadAliBaydoun that stuff you learn from other courses not the language itself IMO
 
I had an ex gf who had to take intro to programming, (C++), it was a nightmare. I didn't realize how difficult step wise logic was to some people. I mean simple stuff
...
 
Xeo
> Your daughter was well-served by an educator's choice to use Visual Basic, in which, during her training, she won't have to bother with at least three classes of bugs found in C-based procedural languages, or the execreble C++. There are no casing bugs possible.
 
user1804599
Back! ^^
 
Xeo
Talk about stupid comments
 
7:13 PM
@Xeo Oh hello, Reddit.
 
Xeo
No, that blog (?) post.
 
Oh hello, pile of shit.
 
@melak47 I wish that was practical on common hardware :P
 
> There are no casing bugs possible.
programmers.txt
 
> I can have my cake and eat a significant portion of it.
@R.MartinhoFernandes And get fat.
 
Check your thin privilege there man.
 
Thin privilege is being able to use nice APIs.
 
fat people don't get nice APIs?
 
Nope.
 
7:25 PM
thin privilege is going to your doctor and not being told to fuck off and lose weight.
 
@Xeo Not a pun. Double entendre.
 
Xeo
Told you I'm bad with vocabulary.
 
user1804599
Hmm.
 
user1804599
If I have a monad M and I want to return either an error or unit, should I return M (Either SomeErrorType ())?
 
user1804599
Either with () seems silly. :v
 
user1804599
7:27 PM
And Maybe SomeErrorType doesn't work intuitively with >>=.
 
Xeo
@not-rightfold Maybe Error?
oh
Also, isn't Either Error already a monad? What about some EitherT?
 
user1804599
Hmm.
 
user1804599
Maybe MonadError?
 
user1804599
@Xeo Yes.
 
user1804599
So Either Error () would do I guess.
 
7:29 PM
@not-rightfold Why?
 
user1804599
@CatPlusPlus Continue on error. :|
 
user1804599
Like,
 
Xeo
@not-rightfold Maybe you need to rethink your intuition :P
You want to continue on Nothing, so yeah
 
It should be quite obvious that >>= works on M level, not Maybe level.
 
Xeo
7:31 PM
@not-rightfold And then there's those fancy special functions for m () which you might use.
 
user1804599
@StackedCrooked Are you sure you have only one process?
 
I'm sure I only started one.
 
user1804599
@Xeo Is that sarcastic? :V
 
user1804599
I am really clueless.
 
user1804599
@StackedCrooked And why can't that one start more? :)
 
user1804599
7:32 PM
See process tree to be sure.
 
$ ps -ef | grep ruby
501 32828 32811   0  9:32PM ttys000    0:00.15 ruby test.rb
501 32871 32830   0  9:32PM ttys001    0:00.00 grep ruby
 
Xeo
@not-rightfold nevermind
 
user1804599
@StackedCrooked Hmm.
 
@not-rightfold But I figured it out. It's the stream call that runs in background and returns immediately.
So the mutex is unlocked.
 
user1804599
:P
 
user1804599
7:34 PM
Wait huh.
 
user1804599
Oh haha.
 
user1804599
@StackedCrooked Write an answer. :V
 
That's what happens when you use Ruby.
 
Ell
Of course it's ruby's fault :3
 
@CatPlusPlus yeah yeah
@not-rightfold done
 
user1804599
7:35 PM
Hmm.
 
user1804599
To lens or not to lens.
 
user1804599
I love lenses but underscores are ugly.
 
Xeo
> earned this badge 9 times
Well screw you
 
user1804599
I am a terrible Haskell programmer.
 
7:37 PM
@Xeo :)
 
Ell
@not-rightfold me toO!
 
Hey, there's a new iPhone.
 
Xeo
Use the void, Luke!
 
Urgh.
HEY I HAVE A PROBLEM WITH THIS CODE
HERE HAVE A COMPLETELY DIFFERNET CODE
 
7:40 PM
@TonyTheLion 9 times ... what the fuck
 
user1804599
Time to go downstairs. I should see my parents more.
 
Damn, disappeared :D
 
user1804599
See you tomorrow friends.
 
7:42 PM
> Oh my bad, it's just a syntax error. I my code i forgot the closing bracket of the namespace in the header file. It works now. Thx anyway. – Virus721 1 min ago
> I my code
 
@not-rightfold cya
 
Idiot.
 
Xeo
Ahahahaha /cc @R.MartinhoFernandes (that "change type" thing reminds of a certain language feature.. I wonder which...)
 
Not the same thing.
 
@Xeo One of his questions was asked during one of the GN2013 Q&A sessions
 
Xeo
7:44 PM
Yeah, I remember that
 
@TonyTheLion whats that coliru code in your comment ?
 
I wonder whether that guy did any benchmarking before saying "it's a real problem in all cases".
 
Xeo
> [21:44:22] <andersca> dgregor: here's something that the analyzer should catch
[21:44:24] <andersca> std::aligned_storage<sizeof(T), std::alignment_of<T>::value> m_storage;
[21:44:27] <andersca> spot the error!
hahaha
 
@A.H. Doesn't matter I deleted it
 
@Xeo aligned_storage::type? :v
 
Xeo
7:46 PM
ya
 
@Xeo I don't see the funny =/
 
why not alignof?
 
It's a common mistake.
 
Xeo
@A.H. who knows
 
0
Q: Integer coalescence (performance optimization technique)

coder543So, I was thinking about 64-bit vs 32-bit a few minutes ago, and I came up with a performance optimization that might be interesting. I did some googling about it, and came up with nothing, so forgive me if this is already in use. We have two arrays of unsigned, 32-bit integers, a and b. We want...

Hmmm, suspicious
 
7:48 PM
@Xeo Rapptz showed me the indices trick yesterday and I don't understand it. Anything more precise than "variadic templates" i can search for to help me understand it? Tag dispatching perhaps?
 
@Xeo It's the same as T m_storage ?
 
Xeo
nope
 
@Xeo That's where I read it from...
 
Xeo
Oh
second, I think I have some answer explaining it in greater detail
 
7:49 PM
cool
 
Xeo
before that, which part don't you understand?
generation or expansion?
 
@Xeo requires ::type.
That's quite subtle.
Oh, cat already called it.
Dammit.
 
Xeo
If only aligned_storage() = delete :(
 
@Xeo I kinda get the later part where once the indices are built you pass them to the function to do something. The first bit has me confused
 
Xeo
Try expanding the generation on paper
// for gen_seq<3>, [] is the Is... part, : is prepend
gen<3, []> : gen<2, 2:[]> // gen<N-1, N-1, Is...>
gen<2, [2]> : gen<1, 1:[2]>
gen<1, [1,2]> : gen<0, 0:[1,2]>
gen<0, [0,1,2]> : seq<0,1,2>
@Borgleader ^
 
7:55 PM
@TonyTheLion does that even work as intended?
like how does he stop carry from propagating to the second int ?
 
@Borgleader Oh oh.
 
@Xeo Cool I'll look that at that in the train thanks :)
@EtiennedeMartel Same to you, I'll print to pdf and read it
 
@Xeo But how can you use Haskell notation!11
 
Xeo
Because it's concise... :<
 
WTF
my root is showing as usb0 ?!?!?
 
Ell
7:58 PM
your "root"?
 
/
and apparently I can unmount it
 
@sehe where is the point of returning int when i use "void main" !!!!! — Hima 3 mins ago
The point is that <strike>you should probably excise the exclamation mark key from your keyboard</strike> Wait: void main() is non-standard, and GCC will not even compile it: error: ‘::main’ must return ‘int’: you cannot use "void main" (add exclamation marks to taste). — sehe 58 secs ago
^ "FFS"
 

« first day (1060 days earlier)      last day (3886 days later) »