« first day (1543 days earlier)      last day (3407 days later) » 

3:00 PM
Yes, they are.
Have some logic pills.
 
user1804599
AnecDotA.
 
well javascript does some pretty magic, when it doesn't know what type it is it usually convert things to string
 
@sehe I think we might have deviated a little - my main point was that there is room for languages and tools that use weaker abstractions for the masses even if I do not enjoy using them myself.
 
@R.MartinhoFernandes Yeah, hyperbola is what I'd say. The wasy he posits it as a "door stop" argument makes it feel like a strawman. It's just not very verifiable
 
user1804599
I like = for equality and <> for inequality.
 
3:01 PM
@LoïcFaure-Lacroix I actually do remember the abstract equality algorithm (there are hints, it might convert it to a number etc) - I just really hate it and find it 100% full retard.
 
user1804599
Like F# and SQL.
 
@HansKlünder well, I suppose if a toaster costs say $30, the chip in it costs about $0.5. By making it two times more expensive, you could prolly cut development costs by half
 
@BenjaminGruenbaum numbers too. But what's terrific is anyone using objects like hash tables
 
apparently it makes more sense to hire people to do the work of hacking the cheap chips into working
 
@rightføld I like := for assignment </guilty-pleasure>
 
3:01 PM
object keys are only strings
 
thank god it's not me doing it
 
@Griwes You are free to call it an anecdote when I talk bout my work. Truthfulness is not a precondition to chat, thus just go ahead as you like.
 
user1804599
@BenjaminGruenbaum I like lack of assignment, but that makes use of crappy libraries impossible.
 
user1804599
But I think I will indeed go for :=.
 
@BartekBanachewicz At least he has an anecdote. You have hypothetical scenarios.
 
3:02 PM
@BenjaminGruenbaum That room doesn't have to be defended. It's obvious fact for decades. Another obvious fact is the balances are shifting. (After all, even Java got object streams now. The tragically slow eldest child)
 
@BartekBanachewicz supposing is a nice way to conjure arguments out of thin air. You are doing well.
 
@R.MartinhoFernandes Except his anecdote is not enough to find said x.
 
@LoïcFaure-Lacroix you'd be surprised by how many sites run express and are susceptible to sending them __proto__ as an argument it's hilarious. Also - ES6 (the new standard) fixes nothing by having Maps with object keys but no hash code or equals methods on it :D
 
@rightføld And BASIC!
 
user1804599
@CatPlusPlus what do you do in Scala. Why do you use Scala?
 
3:03 PM
@BenjaminGruenbaum like Pascal
 
@sehe oh, then I think we pretty much agree.
 
1 min ago, by Bartek Banachewicz
thank god it's not me doing it
let's leave this here then
 
@rightføld and pascal
 
user1804599
rascal
 
@BenjaminGruenbaum I reckoned we did :)
 
3:03 PM
@BartekBanachewicz It's the third time you're leaving this. At least that I saw.
 
user1804599
A bully from my elementary school was called Pascal.
 
user1804599
Less bad than Wouter, though, who was a complete and utter asshole.
 
@BenjaminGruenbaum Are you sure ? the Maps should have hashcode method or something like that
 
@rightføld Nothing yet, I'm looking for a statically typed possible replacement for Python webdev stuff
 
@LoïcFaure-Lacroix should but don't.
 
3:04 PM
A triangle from my high school was called Pascal.
 
@rightføld I guess everyone steered clear when his bullying would...
... do begin
 
user1804599
@CatPlusPlus OK.
 
YEEEEEEEEEEAAAAAAAAAAAAAAAAAH
 
well technically it might not be necessary if they are hidden object attributes
 
user1804599
I have almost no experience with webdev in Scala. I wish there were something like Clojure's Ring.
 
3:04 PM
@R.MartinhoFernandes He took a large break overnight
 
@LoïcFaure-Lacroix feast your eyes on how broken native JS collections are: esdiscuss.org/topic/maps-with-object-keys there are collection libraries but they're not very good.
 
user1804599
I just use Servlet API.
 
@rightføld I'm gonna tell him
 
user1804599
If he dies I will dance on his grave.
 
I never wondered what the megastar loved by everyone so cool guy in elementary ended up becoming after all, I should ask around
 
user1804599
3:07 PM
wait is == left or right associatie
 
> maps detect existence for object the same way === works for objects
 
user1804599
I think left.
 
lol, really?
 
@AlexM. "You want fries with that?"
 
@MartinJames his dad was pretty rich, I'm sure he arranged for something for him
 
3:07 PM
@Benjamin So you can only use references or "simple" types as keys?
 
well, something other than McDonald's
 
@R.MartinhoFernandes yes. It's as broken that it sounds.
 
user1804599
Well fuck.
 
Until ES7 kicks in with value objects - hopefully by then we won't have to code JS.
 
then again, his dad also seemed pretty serious and hardworking
so he might have been like "you lousy shit get a job I spent enough on your ass"
 
3:09 PM
Which don't actually solve the problem either.
 
user1804599
ARGHH
 
@BenjaminGruenbaum lol, sometimes I wonder what the JS language designers smoke. Then I remember: JS.
 
@R.MartinhoFernandes it's classic "Design by committee" problems. No one there actually writes a lot of JS - they just really want stuff they can write scientific papers about.
 
@AlexM. "Would Sir like to see the wine list?"
 
lol
 
3:12 PM
@rightføld you ok?
 
user1804599
Left-recursion is instant cancer.
 
user1804599
Fuck parsers.
 
@MohammadAliBaydoun do you wanna see my solution?
 
For the dice?
 
3:13 PM
@orlp My solution is going to take ages :<
@orlp Before I see yours, I want you to tell me if mine is at least algorithmically correct ;~;
 
My solution runs immeasurably fast :P
 
it has negative speed
so fast it's done before you even run it
 
@orlp It takes you too long to turn over the egg-timer?
 
This in theory, is supposed to terminate and print the solution
Now I'm trying to figure out a way to make it O(1)
 
that's a lot of nested fors
 
3:15 PM
I have the equation on paper, with the loops in the form of sums
@AlexM. I've seen worse ;_;
 
If it's too fast for easy timing, rewrite it in Ruby. Buy a calendar.
 
@MohammadAliBaydoun I turn my head the other way when it's worse
if you don't see it it doesn't exist
and if you don't make sudden movements it won't attack
 
user1804599
Nice it works.
 
@MohammadAliBaydoun you can theoretically do it on pen and paper
@MohammadAliBaydoun hint: there exists a closed form for the variance of a random sum of random variables
 
Oh?
Well, I just googled "Variance of random sum of random variables"
Not Bad
 
3:19 PM
 
user1804599
val ne = eq; (* TODO: FIX THIS LOL *)
 
user1804599
too lazy
 
O(1), no loops, just some mults + adds
 
@orlp Well, now that I know this form, I can see how this is solved in O(1) :3
 
(well, I have a loop for the variance of a die, but you could work out the math for that as well and make it a closed form)
 
3:22 PM
Did my Monte Carlo method give a good approximation by the way? (~2.406 million)
 
sec
yep
 
I won't spoil the last 4 digits (though you could just download and run my gist if you wanted to cheat)
but rounded it's 2406376
 
368 looks like hell
 
I don't know
I'll try the trivial approach first
 
3:27 PM
If you get bored, try 251
I solved it a month ago and it was fun
Woo! Solved 389 ;~;
@orlp Thanks to you, and your leading me to read this ;_;
I swear, the first 2 formulas on that page give the whole problem away
 
pretty much :P
 
I think I'll buy one of the cheaper coffee machine thingies
I can't really expect much from a $100 machine when $2000 machines exist but as long as it spits out espresso it's ok
 
user1804599
This is bleh.
 
user1804599
Currently you have to import "./Equality" if you wanna use = and <>. :/
 
user1804599
And I don't know how to fix it.
 
Ell
3:41 PM
in lasagna script?
Just put it all in a pre imported thing
prelude, isn't that what they're called?
 
user1804599
runtime.js is imported by all LS modules.
 
user1804599
So I cannot import Equality.lasagna from runtime.js, because that would form a cyclic dependency.
 
Ell
put equality and runtime in the same module somehow
 
Xeo
@AlexM. Can't expect much from coffee in general
 
Ell
can you have modules spanning multiple files?
 
3:43 PM
fuck there's a $3k coffee machine here
and you STILL have to clean the tray yourself
 
user1804599
But yeah I can make an additional Prelude module. But I need a way to disable importing it, since Equality can obviously not import Prelude.
 
$3k. Right. Move closer to Starbucks/Costa.
 
for $3k it should have feet
and walk to your bed in the morning
 
I could buy sandwiches for 7 years with that money
 
to give you coffee
 
3:45 PM
Or a funny hat
I'll go with the hat
 
user1804599
Niice.
 
user1804599
Operator overloading fuck yeah.
 
user1804599
If I now comment out implement Equality for Boolean { def eq(a, b) = a === b; } I get an error when comparing Booleans.
 
Xeo
so... eq = (===)?
 
3:47 PM
"look how easy it is to FUCKING WORK EXTRA TO MAINTAIN THIS EXPENSIVE PIECE OF SHIT"
 
user1804599
@Xeo For Booleans, yes.
 
I should get a hunk of meat and make a steak this weekend
 
user1804599
=== just maps to JavaScript's ===
 
to celebrate my new knives
 
user1804599
3:48 PM
Which works correctly for Booleans.
 
user1804599
Ok, I got #noprelude working.
 
user1804599
Now it works.
 
@AlexM. Ooh.. Knife party! I'll bring a gun.
 
The original (top) and the final (bottom) logo for the game. The original logo was created by Team Bondi, but Rockstar redesigned the L.A. Noire logo. upload.wikimedia.org/wikipedia/en/9/92/LA_Noire_logo.jpg
and a good thing they did, the one on top is an abomination
 
user1804599
4:03 PM
@Ell I fixed it omg!
 
Ell
@rightføld woo
the prelude thing?
 
@R.MartinhoFernandes :)
 
user1804599
Yeah.
 
There really has to be a 'Clueless' close-option soon:
http://stackoverflow.com/questions/27802451/undefined-symbol-arad1
 
4:10 PM
@MartinJames Hehe, yeah, that one would fit.
 
> my own names for storing data, instead of ax,bx
lol
 
user1804599
You sure can: use a higher-level programming language. — rightføld 5 secs ago
 
user1804599
#define foo ax
 
ax and bx are registers and should be treated differently from named addresses or w/e you want to use. Different operations manipulate different registers and using aliases for them would just introduce ambiguity and confusion. — Alex M. 6 secs ago
my guess is the guy thinks the registers are just a bunch of variables in which you can insert data, and they serve no other purpose
 
user1804599
@AlexM. WOM
 
4:17 PM
wat
 
user1804599
Write-only memory.
 
ok, insert and move data from
well, copy
DAMNIT YOU GET IT
 
I know higher level languages, I just want to study Assembly. What's so difficult to answer a simple question without raging on me like its madness that I dared posting it? — Aradmey 12 secs ago
maaaaan, lack of minimal understanding indeed
 
e.g. "AX" is the accumulator
if he decides to call it "MyBullshitNonVariable" everything gets confusing
I know higher level languages, I just want to study Assembly. What's so difficult to answer a simple question without raging on me like its madness that I dared posting it? — Aradmey 1 min ago
lol
 
user1804599
Cool, it appears I made it possible to implement protocols for specific objects.
 
4:21 PM
also, lol TASM
 
also lol gotta love how he tried to name a register using his own name
#define ax ALEX1
 
hmm. if I have a struct with like a million members, most of them of built-in types but a few std::string, I can't prevent those of built-in type from being value-initialised in C++03, can I?
sorry, default-initialised
 
1
Q: Why reference to indirection to pointer is allowed?

Pranit Kothariint *ptr = 0; int &ref = *ptr; I write above code in Visual Studio and it works? Here I am pointing to NULL. Why it is allowed? Pointer can take any address, NULL or even invalid address. Still reference to indirection of pointer is allowed? Then why it is said "Reference cannot be null." Her...

 
the built in types won't be default-initialized if the instance is local :P
 
user1804599
Shut up Feeds.
 
4:23 PM
oh, good
profiler is suggesting that constructing this type is expensive as fuck but I can't see why
 
@Feeds lol noob
 
Feeds is doing community service here by pointing out poorly-tagged C++FAQ questions.
 
I actually like this. If it's a good fit for FAQ, we get to read interesting stuff. If it isn't, we get to fix the issue right away.
 
Sounds like it's either boring or boring
 
Yeah, but you're dead inside.
 
4:26 PM
wait, this profiler output can't be right
these functions don't call those functions
 
I wish there was type directed name resolution in Haskell
 
A what
 
So, without defining a type class, and having: a :: A -> X and a :: B -> Y you could call a on both objects of type A and B.
 
It's basically implicit type classes.
It's defined here.
 
4:28 PM
sounds like overloading,
 
Yeah, it's basically C++'s overloading.
 
Ad hoc polymorphism sucks
 
What do you mean?
 
uh, why does -O2 cause this to always output "0 0" and a warning for using uninitialized stuff, while -O0 has the "expected" output and does not trigger warnings coliru.stacked-crooked.com/a/d7e3333ec48289f5
does -O2 somehow default-initialize things on its own
 
@AlexM. UB is UB
 
4:30 PM
yeah it's just curious that with -O2 I constantly got "0 0" every time I ran it
I was mostly about LRiO's question
 
UB is UB.
 
yes I got that
 
but if -O2 does default initialize then any performance requirement LRiO was after is unattainable
 
4:35 PM
yeah I mean it would probably help if I gprof'd the correct gmon.out ffs
 
@AlexM. Warnings should be triggered for all opt levels. I guess that in -O2 it happens to share a part of the stack that is zero for some other purpose.
 
@AlexM. I'm eventually gonna refactor the fucking struct anyway so it doesn't have all these members but it seems wasteful
anyway, invalid profile analysis so never mind
 
@CatPlusPlus You mean that typeclasses polymorphism sucks?
 
No
Overloading
 
How so (why does it suck)?
 
4:38 PM
[root@cat daemon]# cat analysis.txt | gprof2dot | dot -Tpng -o analysis.png
dot: width (86671 >= 32768) is too large.
lol
not a shock
 
there's nothing wrong with overloading per se.
although the actual OR rules of a specific language is a different matter.
 
@Puppy that makes sense
pretty sure this is the case after running this: coliru.stacked-crooked.com/a/4a305072f51aecb2
mystery solved please don't laugh at the number of fields thank you
 
lollerskates
 
@LightnessRacesinOrbit Try export to SVG instead?
 
I tried to simulate LRiO's case as close as possible
 
4:40 PM
It wouldn't depend on the arity for obvious reasons, but on the type of the first argument? Hell yeah.
You would have implicit type classes for these functions for example.
 
@VáclavZeman yeah that's better
thx
 
So I can call null list, null set, null map instead of: null list, Set.null set, Map.null map.
 
@AlexM. You bashed your head against a wall for 20 minutes and then downed a whole bottle of vodka?
 
Or whatever single letter imported qualifier you choose.
 
wish I had something decent to view SVG. not IE.
 
4:42 PM
@LightnessRacesinOrbit FF, Chrome?
 
@VáclavZeman oh, fuck, right
:)
 
@LightnessRacesinOrbit: Can it export directly to PDF? Veiwing even big PDFs is pretty decent experience.
 
jesus shitting christ the long names of these fucking boost template instantiations
ok no surprises in the profile analysis
good
 
If anyone cares all the downvotes from yesterday were reverted, I think.
 
@Puppy wait, did LRiO do that?
I'll do the vodka part
nothing wrong with an artistic reinterpretation
 
4:47 PM
@AlexM. no
must have been in one of his dreams of me
Excellent question title. — Lightness Races in Orbit just now
 
technically, it's accurate
 
Ell
I use eog to view svgs
 
all codereview.se question titles could also be successfully replaced with "Review my code"
or "Review my code please" if you're nice
 
Ok, maybe that wouldn't be so great.
 
@AlexM. No, that's just what's needed to emulate his normal state.
 
Well, yes it's great.
Even for arguments that are not in the first position
like: elem :: (Eq a) => a -> [a] -> Bool and elem :: (Eq a) => a -> Set a -> Bool would automatically derive a typeclass class HasElem cont where elem :: (Eq a) => a -> cont a -> Bool
 
seriously, how do americans call numbers like 555-SOME-UNCALLABLE-TEXT
 
@Gizmo to numbers also correspond letters
 
by converting uncallable text into callable text
 
just look at your keypad
 
4:56 PM
Ooh
too bad smartphones screw everything up
 
Seriously.
My Galaxy S3 has a letters on its virtual keypad.
 
Just one?
 
I do notice mine as well but I have seen a few phones without
 
iphone 3gs has it
that is, ios6
 
don't know about other systems, I only use WP
 
4:58 PM
there are 3rd party keyboard/keypad apps in Androidland
if you don't like stock, you replace
 

« first day (1543 days earlier)      last day (3407 days later) »