« first day (850 days earlier)      last day (4088 days later) » 

6:00 PM
Normal people store more data than pi digits you know~
 
@CatPlusPlus I never said it was less important, I just said it's less interesting.
 
Eh, laptops
 
user142019
I store source files and executables.
 
Laptops are scraps bundled together into a barely working PC
 
user142019
And programs store caches and settings and related crap.
 
user142019
6:00 PM
And that’s all I need.
 
@Zoidberg You ever get to the point of having executables? ;p
 
user142019
How else would you execute something.
 
user142019
You need at least a boot loader.
 
user142019
Anyway
 
user142019
6:01 PM
all executable programs are executables.
 
You really only need FORTH interpreter
 
user142019
A file is an executable when it has the executable flag set.
 
user142019
Shebang FTW.
 
No she didn't
 
user142019
In computing, a shebang (also called a sha-bang, hashbang, pound-bang, hash-exclam,), when it occurs as the initial two characters on the initial line of a script, is the character sequence consisting of the characters number sign and exclamation mark (that is, "#!"). Under Unix-like operating systems, when a script with a shebang is run as a program, the program loader parses the rest of the script's initial line as an interpreter directive; the specified interpreter program is run instead, passing to it as an argument the path that was initially used when attempting to run the script. ...
 
user142019
6:02 PM
You noob.
 
user142019
All compilers shoud ignore shebang lines always.
 
user142019
And languages should support them.
 
You know it's strictly a kernel feature
 
user142019
Yup, but the shebang is still read by the interpreter or compiler and may form a syntax error in said language, defeating its purpose.
 
user142019
6:05 PM
So IMO interpreters and compilers should ignore shebangs even if they’re not part of the language or comments. :P
 
You can usually do a magic trick of executing itself from nth line onwards
If the language doesn't have # as comment
But yeah it's better if the #! program knows about #!
 
user142019
runhaskell \o/
 
Xeo
sigh, so, in the end, I'm still not closer to a new HDD.
 
user142019
Time to shower and shit.
 
gah...I declared the "threads" commandline option a uint8_t with boosts program options...and it interpreted it as a character, so "--threads 1" made 49 threads >_>
 
Xeo
6:09 PM
pffft
 
user142019
lolnoob
 
user142019
Good ol' using uint8_t = unsigned char;.
 
user142019
char: screwing up your productivity since 1972.
 
@Mysticial Well, I don't find shopping to be particularly interesting at all ;p
 
user142019
Also implicit conversions are bad in most cases, and uint8_t must not be unsigned char but rather a typedef of some built-in magical type.
 
6:12 PM
They're not bad in one or two cases
 
user142019
I like implicit conversion to cv-qualfiied, reference or upcast of reference and no slicing.
 
Xeo
Guess I'll head home for today.
 
I was wondering why my single thread always finished all the work in one blurp...but since it was 49 threads, they consumed all available work in one go >_>
 
Xeo
See ya.
 
bye :)
 
user142019
6:14 PM
F# has no implicit upcasts. :P
 
@Zoidberg Weird.
Then again, it's ML.
 
Quuick question.
I have a string that I'm inserting characters to. When that string internally resizes, iterators become invalid.
How do I keep my iterators valid even if insertions / deletions happen in my loop?
 
Ugh, Ocaml
 
@CatPlusPlus It's French!
 
And their different set of operators for floats
 
user142019
6:17 PM
@ThePhD std::list<char>
 
Therefore it sucks.
 
user142019
@ThePhD also make immutable and copy.
 
@ThePhD Never mutate the thing you're iterating on
 
Mm.
Immutability, here I come.
 
user142019
Immutability is good.
 
user142019
6:19 PM
Mutability is less often good.
 
Derp. Iterators are not compatible.
I hate you, stl. ;~;
 
user142019
Well don’t use it.
 
user142019
Use Haskell.
 
But...
But but Haskel... :c
 
user142019
But Haskell is great.
 
user142019
6:21 PM
One of the few good languages.
 
user142019
Other ones include Erlang and Python.
 
Any statically compiled languages which are good?
 
user142019
That’s not a property of the language.
 
user142019
But if you mean languages for which ahead-of-time compilers exist, try Haskell, Erlang or Python.
 
user142019
If you mean statically typed languages, try Haskell.
 
user142019
6:26 PM
lol what an argument.
 
user142019
BUT IT’S FROM MICROSOFT SO IT MUST BE GOOD
 
@ScottW What
They must've missed the part where even MS doesn't want to use MFC
 
user142019
MFC: Microsoft Fucking Cunt
 
@ThePhD inserts and erases commonly return an iterator. If not, use a position rather than an iterator.
 
Fun fact: my new workplace compiles with warnings as errors. On /W3.
 
6:29 PM
@MooingDuck I just junked the iterators on the mutable value entirely.
 
dafuq?
 
user142019
I don’t get the point of -Werror really.
 
user142019
If you see a warning and you act like it isn’t there you’re an idiot anyway.
 
@Zoidberg It's not for you, it's for when you work with idiots.
 
user142019
Even if it’s only because warnings are annoying.
 
6:33 PM
So you force them to fix their damn warnings, because you sure as hell don't want to have to do it yourself.
 
user142019
@EtiennedeMartel > implying I’m not an idiot.
 
@Zoidberg Yeah, you're young, but not stupid.
 
user142019
I’m not stupid?
 
user142019
TIL: I’m not stupid.
 
-Werror is good
 
6:34 PM
I work with a hero programmer. He's good. Very good. Incredibly good. And he knows it.
 
user142019
No, you don’t work with me.
 
So, usually he comes with a rant above some features that are useless for him.
And I usually insta-kill the argument by going with "you're not alone on a team, and you don't want to have to watch after everyone".
 
He doesn't sound all that good
 
He's good at writing code.
But he's not a team player.
So I wouldn't say he's a good programmer.
But you give him a task, and he's gonna do it in record time.
 
user142019
@ScottW would be wonderful.
 
user142019
6:37 PM
No more bad code.
 
@Zoidberg No, because you would still have your own code.
 
user142019
@ScottW As most wonderful things.
 
And even if you do get good at that, then it'll still be crap because it would be Haskell.
2
 
user142019
@EtiennedeMartel you don’t know it’s bad so it’s not bad. :P
 
user142019
North-Korea is weirder than the USA.
 
@AndreiTita IRL, her racket flew off.
 
@EtiennedeMartel No, really?
 
user142019
Clicking on the first link in the main text of a Wikipedia article, and then repeating the process for subsequent articles, usually eventually gets you to the Philosophy article. As of May 26, 2011, 94.52% of all articles in Wikipedia lead eventually to the article Philosophy. The rest lead to an article with no wikilinks or with links to pages that do not exist, or get stuck in loops. There have been some theories on this phenomenon, with the most prevalent being the tendency for Wikipedia pages to move up a "classification chain." According to this theory, the recommend that the articl...
 
user142019
:D
 
6:46 PM
@AndreiTita I'm so clever.
 
-9
Q: C++ heap corruption

try_itBigInteger::BigInteger(char* digits) { //string long_str = digits; // Nelements = long_str.size(); //get the number int count =0; while(* digits != NULL) { *digits ++; count++; } elements = new char [count+1]; // assign the space to elements for(int i=0;i<= count; i++) e...

 
@Zoidberg interesting
 
user142019
@TonyTheLion your link: two clicks. :P
 
@Zoidberg 6 clicks for me
I'm the biggest moron ever. :(
4
 
user142019
Serial killer —> psychology.
 
user142019
6:50 PM
Oh yeah. xD
 
user142019
Psychology ≠ philosophy. :L
 
user142019
I’m dyslextyc.
 
I tried to copy & paste across different physical machines
20 hours ago, by Zoidberg
I'm such a fucking idiot.
 
user142019
A guy in my high school class was dyslectic and once did a presentation on dyslexia. He misspelled "dyslexia" in the title of his presentation. xD
 
user142019
6:51 PM
:)
 
I should watch the first part of Herb Sutter's talk
 
):
 
:D
:P
:K
 
user142019
:O
 
XD
 
user142019
6:52 PM
@TonyTheLion y u no completely.
 
DX
 
@Zoidberg too long for one night, also I'm still downloading part 2
 
user142019
How long is it?
 
user142019
If it’s not at least six hours then it’s not too long for one night.
 
lol
it's like 3 hours
 
user142019
6:53 PM
That fits in one night.
 
user142019
So it’s not too long for one night.
 
Zoidberg, a challenge: strongly-typed flag type in Haskell
(I'm bored)
 
user142019
A night is five, six or seven hours and optionally one or two extra seconds.
 
user142019
Depending on leap seconds and daylight saving time.
 
@Zoidberg but it's not like watching a movie, this you have to pay attention and understand this shit
 
6:54 PM
I wonder how well would type families work for this
 
user142019
@CatPlusPlus what do you mean by flag type?
 
user142019
A Boolean? XD
 
user142019
data Bool = True | False | FileNotFound
 
No, like a bitmask
 
user142019
Ohh. :P
 
6:55 PM
But strongly-typed so you can't do flag from one bitmask | flag from other bitmask
Also implementation-agnostic!
 
user142019
Phantom types!
 
user142019
Oh. :L
 
@CatPlusPlus I expected something about "monoid" there -- especially since it's actually pretty close to applying in the case of a flag type.
 
Yeah I guess it's a monoid
 
user142019
It has identity element: 0.
 
6:58 PM
@CatPlusPlus Actually, I don't think it quite does -- if memory serves, a monoid only has one operation, where a flag really has two (set and clear). My memory of abstract algebra is pretty poor though, so that could be wrong.
 
user142019
And the binary associative operation is .|..
 
user142019
Is that not associative?
 
user142019
I suck at associativity and things. xD
 
user142019
| is a keyword. :v
 
@Zoidberg Yes, binary or is associative.
 
user142019
6:59 PM
@JerryCoffin monoid under set and monoid under clear.
 
user142019
@CatPlusPlus I’m confused what you mean by flag. :P
 
user142019
Is a flag a bit?
 
@EtiennedeMartel I hate guys like that.
 
user142019
What’s the point if you cannot OR it with anything but itself?
 
7:02 PM
data T1 = F11 | F12 | F13
data T2 = F21 | F22 | F23
 
@Borgleader I wouldn't have hired him, but I understand the decision.
 
user142019
I'm a noob.
 
user142019
I still don't understand it. xD
 
Well if you only have one of them on the team it's not so bad. If you only have guys like that, that's when the team goes to shit.
 
So you can't accidentally OR F21 and F12
 
user142019
7:04 PM
Well you can’t if they are different types and OR is a -> a -> a.
 
That's the point
With raw bitmasks you operate on integers
 
user142019
class Bitmask a where
    (.|.) :: a -> a -> a
 
user142019
:D
 
user142019
Haha (.|.) the new boob operator.
 
user142019
7:07 PM
Okay let’s see.
 
user142019
I’m thinking of something similar to what runST does. :P
 
The real reason Zoidberg programs in Haskell. The boob operator.
 
What's the ring of death?
 
red ring of death?
 
that in topic
 
7:10 PM
@BartekBanachewicz Oh that...
14 hours ago, by R. Martinho Fernandes
You're making a language too?
I was playing with QUEX last night, and the the robot was like: You're making a language too? We should have a championship. Hence the topic
 
zoidlang ftw
is QUEX something similar to HQ9+?
 
user142019
@CatPlusPlus {-# LANGUAGE ExistentialQuantification #-} data Bitmask a = forall a. F0 | forall a. F1 | forall a. F2 | forall a. F3 :v
 
user142019
IT WOKRS :D
 
7:17 PM
^ my windows has strange way of rating my PC performance
 
user142019
Prelude> :t (F0, F0)
(F0, F0) :: (Bitmask a, Bitmask a1)
 
user142019
Different types. :)
 
@BartekBanachewicz rofl, what graphics card do you have?
 
@Borgleader GeForce GTX 670
 
@Zoidberg Not what I meant :v
 
user142019
7:18 PM
Oh :v
 
user142019
Well, I suck.
 
@BartekBanachewicz Hardcore Aero.
 
@BartekBanachewicz lol wow... I have that same card and I'm pretty sure my score is way higher
in fact.... lemme check
 
My WIP is
 
@Borgleader no shit, sherlock
 
7:19 PM
@Borgleader Everything's good except the "desktop performance".
 
too large to paste here
 
M$ keep changing the upper bound. It's 6 on my box.
 
@MartinJames nope, computers just get faster
 
But that doesn't work yet
 
'5.9 out of 6'
 
7:20 PM
I want to be able to swap both the carrier implementation and the flag type
 
@BartekBanachewicz Obviously, 1.0 is not normal. In any case, the "real" rating is 7.9
 
user142019
@CatPlusPlus Ohh. xD
 
@Borgleader no shit, ... oh wait.
Also, I don't know what do you need to get max in disk speed; RAID matrix, perhaps
Because I have 450MB/s - 400MB/s SSD
 
An SSD?
 
Any SSD puts it to max
 
7:21 PM
I thought about associated type family, but I'm not sure if I can just do another set of flags and use it with existing BitVector implementation or whatever
 
I have AData Premier Pro series disk. The fastest one I could get.
 
@MartinJames You and your clever replacement of S with $.
 
That would mean getting more than 7.0 in overall performance is impossible,
 
Now it's Zimbabwe dollar.
 
user142019
Also wat.
 
user142019
7:23 PM
class Enum a => Flags c where
    (:?) :: c a -> a -> Bool
 
user142019
c a there works?!
 
3 mins ago, by Cat Plus Plus
But that doesn't work yet
 
user142019
Oh. :P
 
user142019
How do monad transformers do it?
 
user142019
Flags (c a)?
 
7:24 PM
Multi-param type classes and fundeps
 
user142019
Ohj.:p
 
I think I should parametrise the typeclass on carrier alone
But then how to stop datatype mixing :v
 
user142019
forall
 
Uhwh. I know that's a strange req, but I need (vertex|geometry) shader expert
 
If I have data D1 = A1 | B1 | C1 and data D2 = A2 | B2 I want to be able to do flag A1 :+ B1 and flag A2 :+ B2 but not flag A1 :+ A2 or flag A2 :+ B1
 
user142019
7:28 PM
Well
 
user142019
(:+) :: a -> a -> a
 
user142019
Must be the same type twice.
 
Alright, so: the NRA are nuts.
 
so what's new?
 
user142019
A bad operator.
 
7:30 PM
@EtiennedeMartel Did you just figure that out? :P
 
I just stumbled on a bunch of new NRA ads.
 
0
A: How to avoid "managers" in my code

DeadMGWell, I had a read through some of the code you linked to, and your post, and my honest summary is that the majority of it is basically completely worthless. Sorry. I mean, you have all of this code, but you haven't achieved anything. At all. I'm going to have to go into some depth here, so bear ...

man, I really ripped into this guy.
 
> my honest summary is that the majority of it is basically completely worthless.
ow...
How many times have you been suspended on programmers.SE?
I'm not sure if you wanna continuing doing that...
 
hmm
I think it's once on SO and once on Programmers.
 
Isn't a code review about helping?
 
7:33 PM
but being suspended on Programmers is hardly a terrible event
 
user142019
template <class Type, class T>
bool isType(const T& obj)
{
    return dynamic_cast<const Type&>(obj);
}
 
user142019
Don't you mean return dynamic_cast<const Type*>(std::addressof(obj));?
 
@EtiennedeMartel I did help. I pointed out why his existing code was bad, and suggested replacements in many cases.
@Zoidberg Nope.
dynamic_cast<something&>(arg) is specified in terms of *dynamic_cast<something*>(std::addressof(arg));
 
user142019
You’re converting const Type& to bool.
 
oh
good shout :P
 
user142019
7:35 PM
So you need to use the pointer variant of dynamic_cast, or catch std::bad_cast.
 
Due to the simplicity of your program, it only needs 10% of the CPU to run... — TyrionLannister 1 hour ago
 
@DeadMG It's the tone I'm referring to. It's like you're always a second away from saying "you suck".
 
^^ lol
 
std::tm::tm_mday //day of the month [1,31]
std::tm:tm_mon //months since january [0,11]
//wtf
 
@EtiennedeMartel I am saying that his code is useless. It's hard to do that without some people reading that I am saying that he is useless.
 
7:37 PM
@EtiennedeMartel Isn't everyone?
@melak47 uh, tm is a struct. It comes from C.
 
user142019
DeadMG should be a teacher.
 
user142019
Some noob would hand in his homework and puppy would call him a worthless idiot. :P
 
@Zoidberg No.
 
@Rapptz I got an email last night from some high-schooler who wanted to compute sqrt(2) to a billion digits. He said he had no programming experience and he wanted to write a program to do it...
 
user142019
Use bignum library and have lots of time and memory.
 
7:39 PM
Well, maybe he came up with a mathematical expression to do it but doesn't know how to program it efficiently. :P
 
user142019
Also inb4 base 256.
 
sqrt2 can be defined in terms of sin and cos
 
@Rapptz yes...but why the fuck does month start with 0, and day of the month with 1...
 
which are defined in terms of the Taylor Series, I think.
 
@DeadMG inefficient
 
7:40 PM
eh, I don't know any different
 
and while we're at it..year is "years since 1900"
 
@Zoidberg He wanted to do it from scratch.
 
@melak47 Yeah, tm is weird. Just circumvent it, it isn't difficult.
I worked with it later to make a date format thing and it pretty much sucks
 
how can I construct a std::time_t when I have year, month, day, hour, minute, second values?
 
mktime?
 
7:42 PM
@Rapptz and what does mktime take? a std::tm, duh
 
and?
 
so no circumventing std::tm >_>
 
user142019
@Mysticial write own bignum library.
 
@Zoidberg That's pretty much what you'd need to do.
 
user142019
For sqrt, use brute force. Easiest implementation. :D
 
7:43 PM
@melak47 Circumvent it as in "deal with it"
 
I didn't have anything that could reach 1 billion digits until I had 4 or so years of programming experience.
 
...bleh.
 
user142019
Assuming integers.
 
I still don't know why tm is retarded
 
user142019
@Mysticial I have 7 and I still can’t. :P
 
7:44 PM
1 billion digits is a lot of memory :(
 
user142019
@Rapptz nah.
 
@Zoidberg Exactly.
4 years would be on the "fast" end.
 
@Zoidberg yes
 
user142019
In ASCII it’s only one billion septets (or octets?).
 
So I wouldn't expect the majority of people do be able to do it with just 4 years of experience.
Without the help of some pre-made library.
 
user142019
7:46 PM
That’s only a GB.
 
user142019
And you're wasting quite some bits since you can store the ten digits in ASCII in much fewer than 7 bits.
 
@Zoidberg Computing it would require about 4 GB of scratch memory.
And that's for an optimized implementation.
 
user142019
I was talking about merely storing it. :)
 
I'm saying it's a waste
to store it
but what do I know, I never had a need to calculate 1 billion digits of something
 
user142019
A monad is just an endofunctor composed of two functors F and G where G is left adjoint to F, what’s the problem?
 
user142019
7:53 PM
What is the demo about?
 
FINALLY
two fucking entire days after a UB shit, and cppcheck found it...
never ever noticed that one unitialized horse crap
 
@ScottW Hardware demos are the worst kind
 
user142019
@ScottW haha pwnt. xD
 
user142019
Good luck.
 
@ScottW I take that back, combos are the worst kind
 
7:54 PM
thumbs up for haxxor ascii art
 
@ScottW Ah yes, those are the worst of the worst
Not having a screen to watch is terrifying
 
user142019
 
@BartekBanachewicz I've seen better
 
user142019
That’s one nice piece of art.
 
user142019
@BartekBanachewicz paper and pen > ASCII art.
 
user142019
7:55 PM
Though it is a good comment. :P
 
@BartekBanachewicz Someone had trouble remembering his indices.
 
your lame.
 
Hopefully whatever you're demoing doesn't take too much time to complete, things where you have to trust your embedded device is doing the right thing for an extended period of time are heart attack inducing
 
@EtiennedeMartel indeed.
 
user142019
But yeah, tabs so die.
 
7:56 PM
@BartekBanachewicz You're*
 
@Rapptz that was on purpose
 
@BartekBanachewicz Sure sure.
 
@ScottW D:
 
user142019
Geometric literals are better though.
 
@Rapptz if I write "on purpose" next to it it wouldn't express as much
 

« first day (850 days earlier)      last day (4088 days later) »