« first day (1566 days earlier)      last day (3377 days later) » 

2:00 PM
some workplaces seem so bizarre
like... thats just architectural wankery
 
Hey, we work on a pirate ship! But don't forget the formal attire
 
At least you don’t have to ask the admins on where to get a legal software copy.
 
@Pris Finally a good argument. Arrow heads exist as a core feature.
 
@Pris formal attire is just vestimentary wankery
 
2:05 PM
@Pris I like the period details, like the monitors
 
number_of_hours_spent_convincing_architect_not_to_use_singleton++
 
tell him "Stop using the singleton you simpleton!"
that'll teach the guy
speak his own language yeah?
 
"but it works so why not use it?"
 
its like they bought an indoor mini golf place for their office and decided to leave it as is
 
he came to ask how to make the initialization/use of this singleton thread-safe in a reader-writer context (it actually took me a while to realize he had a singleton in mind)
so first 15 minutes were spent enumerating solutions for reader-writer mutexes, SRW locks, guarantees of x86 architecture, atomics, etc
then the suspicion grew that we were talking about a singleton
the remaining 45 minutes were spent enumerating the problems and convincing him to use a different approach
 
user1804599
2:12 PM
julia> typeof(1)
Int64

julia> typeof(0x1)
Uint8
 
user1804599
Most interesting.
 
what language is that, what is julia
 
@AlexM. English, female name.
 
moar double colons
 
user1804599
@AlexM. Julia.
 
2:13 PM
Gaston Maurice Julia (3 February 1893 – 19 March 1978) was a French mathematician who devised the formula for the Julia set. His works were popularized by French mathematician Benoit Mandelbrot; the Julia and Mandelbrot fractals are closely related. == Military service == Julia was born in the Algerian town of Sidi Bel Abbes, at the time governed by the French. During his youth, he had an interest in mathematics and music. His studies were interrupted at the age of 21, when France became involved in World War I and Julia was conscripted to serve with the army. During an attack he suffered a severe...
 
define: julia
 
> Today we announce the public release of Unity 4.6.2, available for download as of right now. It is the first public release with iOS 64-bit support, using our new IL2CPP technology.
Unity is turning IL code into C++ now
for extra performance or sth
and easier WebGL support
 
Sounds interesting.
WebGL is so slow right now.
 
@рытфолд oooh
 
WebGL is super slow on some browsers, like FF.
 
2:16 PM
@AlexM. nothing new; mono has had --aot=full long before, and mkbundle.exe to create standalone native binaries; It's somewhat related to NGen
The Native Image Generator, or simply NGen is the ahead-of-time compilation service of the .NET Framework. It allows a CLI assembly to be pre-compiled instead of letting the Common Language Runtime do a just-in-time compilation at runtime. In some cases the execution will be significantly faster than with JIT. == General information == The Native Image Generator produces a native binary image for the current environment (i.e.; operating systems). This eliminates the JIT overhead at the expense of portability and disk space; whenever an NGen-generated image is run in an incompatible environment...
 
9
Q: Would a mermaid be kosher?

Ely Beau EastmanTonight at religious school we were discussing Kosher laws and how to build/keep a kosher kitchen. While we were discussing different meats, one of the jokers in school asked if you could eat a mermaid, since it would have scales and fins. Would it be possible to eat one?

lol
 
@AlexM. In fact, I think MonoTouch did this all the time because of the simple fact that ShtupidAppleRules(TM) forbade running IL code on IOS
@AlexM. reapawst
 
god damnit I always get it wrong :(
 
my desk
 
3 hours ago, by Lightness Races in Orbit
9
Q: Would a mermaid be kosher?

Ely Beau EastmanTonight at religious school we were discussing Kosher laws and how to build/keep a kosher kitchen. While we were discussing different meats, one of the jokers in school asked if you could eat a mermaid, since it would have scales and fins. Would it be possible to eat one?

 
2:19 PM
@Pris my desk is actually two desks one in front of the other
the monitor was too big for me to sit comfy at one desk only
tiny desk
the desk I have my peripherals on is made of glass
I think I'll put some blue neons under it
to make it look more gamer-ish
combined with the blue light logo on my mouse
the blue light from my speakers
perfect harmony
gotta get a blue light keyboard
 
I ain't got no desk at home!
 
blue light sucks and hurts my eyes
i dont know why it became so popular
 
because red makes you angry
 
@Pris 'Electric Circuits'. Wow, that's an old book.
 
dat blue LED
 
2:24 PM
@MartinJames university textbook... i cant believe school was such a long time ago
 
@Pris It became popular 'cos it was new. For years, we only had red LEDs, then green, orange, yellow. Those got boring, then some idiot found out how to make blue ones.
 
Aren't blue leds harmful (I mean more than the others) for the eyes?
 
I like white LEDs that have low brightness. Blue LEDs seem kinda gaudy and are usually unreasonably intense
 
@LightnessRacesinOrbit As always, be sure to contact your local orthodox rabbi if this becomes a matter of practical concern. :D
 
2:29 PM
"cannot convert argument N from X to X" - thank you VC++
 
@LightnessRacesinOrbit I bet he thought that was pretty clever
 
It's full of nauseous ifdefs:(
 
as opposed to the other kind
 
delete into oblivion
 
user1804599
> xs[4] = 1
1
> xs[4]
undefined
 
user1804599
2:34 PM
:javascript:
 
Is a binary tree complete if the last nodes are on the right side instead of left side ?
 
have you tried google?
I found the answer in ~15 seconds
not telling ya tho
hehehe
 
I just felt like talking to a human
 
awww
 
Follow up question: Why does it have to be the left aligned ? that seems somewhat arbitrary.
 
2:42 PM
How could it be left or right aligned if it's complete?
 
you're thinking of perfect binary trees
 
> Software developer and IT engineer, i like to explain things and talk too much.
:P
 
No I mean, it's only complete if it's left aligned, right ?
 
@AlexM. yes, which are also called complete binary trees...
 
(just kidding)
 
2:42 PM
@AndyProwl What a can-o-worms (the most recent non-deleted answer):
1
A: Passing array arguments by reference

Roland PuntaierThe disassembly shows that the function stacks are the same, whether declared with char x[5] or char (&x)[5]. What is interesting is how you need to cast a normal char *pntr when you call such a function with a reference to an array as formal parameter. char *pntr = new char[5]; You know the...

 
@LightnessRacesinOrbit ah sorry
my bad
 
@sehe I bet that guy's a nightmare to deal with in real life
 
you were thinking of a full binary tree
 
@WillemD'haeseleer mine is right aligned, FWIW
 
@AlexM. Apparently the term is ambiguous and a complete binary tree by another definition can have a non-complete final level
 
2:43 PM
@WillemD'haeseleer rotate it!
 
@LightnessRacesinOrbit I dunno. Hardly relevant. But he's realllllly drawn to bit fiddling and reinterpret_cast<> tricks
 
In computer science, a binary tree is a tree data structure in which each node has at most two children, which are referred to as the left child and the right child. A recursive definition using just set theory notions is that a (non-empty) binary tree is a triple (L, S, R), where L and R are binary trees or the empty set and S is a singleton set. Some authors allow the binary tree to be the empty set as well. From a graph theory perspective, binary (and K-ary) trees as defined here are actually arborescences. A binary tree may thus be also called a bifurcating arborescence—a term which actually...
has explanation for full/perfect/complete
 
@AndyProwl Occasionally I also like to be explained things ;)
 
@AlexM. ZigZig, ZigZag!
 
@sehe That's kinda what I mean. Bet he's one of those people.
Too intelligent for mainstream solutions.
In his view.
 
2:44 PM
Luckily I don't have experience with those (outside SO)
 
@WillemD'haeseleer FWIW
it says "as far left as possible"
if in your case all to the right is as far as possible
then it's as far as possible :)
 
@AlexM. are you saying left == right ?
 
no
I'm going around the ambiguity of "as far left as possible"
 
which can mean "all the way to the left"
 
2:45 PM
@sehe probably one of Vlad's student
 
or "as far left as any rules set in place allow"
 
> The disassembly shows that the function stacks are the same, whether declared with char x[5] or char (&x)[5].
 
so in your case you can say "but this rule doesn't let this node go any more to the left"
also people usually build unbalanced trees from left to right
 
So, could we say that, it just can't have any nodes in the middle ?
 
so there's that
 
2:47 PM
I would think arabic programmers might do it from right to left
 
can you imagine the dilemma in that case?
> A degenerate (or pathological) tree is where each parent node has only one associated child node. This means that performance-wise, the tree will behave like a linked list data structure.
is every child on the left or the right in a degenerate tree?
 
@WillemD'haeseleer It's important for heaps.
It's one of the two heap properties.
 
@AndyProwl ba-dum.... ffffff t
 
A complete binary tree whose nodes are always larger than their parents allows for some efficient algorithms for things like priority queues.
 
2:49 PM
@AndyProwl FWIW I upvoted one other answer. They're not all that bad. Though they're frequently about gratuitous opinions
 
damn I keep making mistakes in my messages what's wrong with me
> one of Vlad's student
today I'd better not code
 
@AndyProwl OMG the perfect excuse!
 
@Rerito getting paid for not causing damage
 
you know, I think I kinda get what's wrong with OOP
 
people use it the wrong way?
 
2:53 PM
@AlexM. it's impossible to use it in a good way
 
by thinking it's some sort of religion?
 
see, the basis of OOP is that objects are your model, right?
 
-
yup
 
Going back to orcs, one orc is an object.
 
wait, model as in
MVC?
 
2:54 PM
in any M, really.
you want to have a game with Orcs
 
@WillemD'haeseleer A complete tree can be stored in a contiguous array by simply storing the elements in top-down left-right order. The root is at index 0, the left child of the root at index 1, the right child of the root at index 2, the left-left grandchild at index 3, the left-right grandchild at index 4, the right-left grandchild at index 5, and so on. In general, the element at index i has its children at indices 2*i+1 and 2*i+2, and its parent at index floor(i/2).
 
so you create an orc class, and when you want to add an orc to your map, you create an instance of that class, right?
 
user1804599
@BartekBanachewicz your mother is impossible to use in a wrong way.
 
@BartekBanachewicz yup
 
So the orc, quite naturally, is made of his data "strength, position"
and the functionality from a class "update", "hit with an axe", "draw"
 
2:55 PM
no, those are part of components
 
node MyTree::Chainsaw(){node temp=root;root=NULL;return temp);
 
strength is part of the stats component
 
user1804599
@BartekBanachewicz that's bad.
 
@AlexM. of what componets?
 
position is part of the transform component
 
2:55 PM
I wouldn't put draw in there
 
user1804599
Drawing and updating shouldn't be in the same module.
 
Sounds like a violation of SRP
 
@AndyProwl see I'm getting precisely there
 
@MartinJames how would a regular saw work?
 
2:56 PM
It's stopped snowing:)
 
@BartekBanachewicz An Orc is a Classifier with Behaviour
Apr 19 '14 at 18:02, by sehe
In computer programming, object orgy is a term, common in the Perl programming community, describing a common failure (or 'anti-pattern') in object-oriented design or programming. In an object orgy, objects are insufficiently encapsulated, allowing unrestricted access to their internals, usually leading to unmaintainable complexity. Consequences The consequences of an object orgy are essentially a loss of the benefits of encapsulation: * Unrestricted access makes it hard for the reader to reason about the behaviour of an object. This is because direct access to its internal state mean...
 
@AndyProwl how do you propose we solve that?
 
By not doing it
 
user1804599
inb4 perl bashing
 
@sehe you have to draw your orc on the screen somehow
 
2:57 PM
@BartekBanachewicz With non-intrusive dynamic polymorphism
 
I'm gonna go get coffee.
 
user1804599
@BartekBanachewicz ADL
 
you want to have components to make gameplay programming easier like that
with the orc for e.g.
 
you make effects work on stats
not on things that you think may have stats
 
2:57 PM
@AlexM. how do you draw an orc?
 
wait no, no need for dynamicity actually
 
user1804599
@BartekBanachewicz Protocols work well as well.
 
I think I didn't get where you were aiming at
 
@BartekBanachewicz with something that takes in the orc's mesh-related component, material, transform etc.
 
@AndyProwl You start with an Orc class. You said adding "draw" to it violates SRP.
 
2:58 PM
I'm just saying how Unity works here but I like it the best
 
@BartekBanachewicz Yeah. I'd have a function draw() that takes an Orc. Where that function lives, it depends
 
46 secs ago, by Andy Prowl
I think I didn't get where you were aiming at
 
I'm not arguing with that yet; what's do you propose instead? How do you draw orcs?
 
draw(orc)
 
@AndyProwl but Orc is a well-behaved class, so its internals are private
 
2:59 PM
basically your scene has objects in it yes?
 
@AlexM. focus on the orcs
9
 
if said object has a mesh renderer component, it becomes renderable
 
@AlexM. who provides that
 
@BartekBanachewicz why does drawing need to know the internals?
 
@BartekBanachewicz Are you drawing the orc with X ray vision then?
 
2:59 PM
@BartekBanachewicz But the information required to draw aren't "it's" internals (they're internal to the rendering implementation)
 
the mesh renderer component requires a mesh
and a material
 

« first day (1566 days earlier)      last day (3377 days later) »