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

10:00 PM
I sneezed
 
I'm not starring that
 
why not
it's the most important thing in this chat.
 
@JerryCoffin lol @ the puppies losing balance when sneezing
 
I must admit that that video delivered on the promise it made in the title.
 
10:07 PM
I dunno
there were some full grown dogs
but I guess it didn't say "exclusively puppies"
 
@AlexM. ...but at least two puppies.
 
with some breeds, they hardly grow at all between puppies and dogs.
Daisy is not much bigger
 
Sorry to stop in
0
Q: How to implement a tree structure consisting of multiple leafs in C++?

Rews ProgI basically want to implement a tree structure such that every node consists of more than 1 leaf, i.e. one node can consist of four leafs. Having done research myself, I only came across a binary tree, however this ADT only has two leafs per node. This is what I am trying to implement... ...

Too broad?
Did you already had a read about Composite Pattern combined with Visitor or alike? There's a number of ways to implement it, and you need to analyze certain aspects from your actual requirements. — πάντα ῥεῖ 4 mins ago
 
Evening
 
@πάνταῥεῖ Visitor doesn't really seem very applicable to the question at hand--it's mostly about a way of using a tree, not about implementing a multi-way tree.
@Jefffrey Hi Jefffrey. How are you doing?
 
10:15 PM
Day by day more lonely.
And I feel like the more I complain the more I'm likely to be even more lonely.
How are you?
 
I beat Drizzt in melee today
 
@Jefffrey Pretty good, actually. Sort of thinking you should find something interesting and different to do where you'd stand a chance of meeting people outside your current circle of friends.
 
Good. I'll try to do that, yes.
 
right
now just two compiler bugs to work out and then I can work on all the ones I made.
 
@Jefffrey Perhaps a walking/hiking group? Physical activity that's as easy or demanding as you choose, plenty of chance to talk as much or little as you like, etc.
 
10:25 PM
I know I could do many things to solve the issue, but instead I'm pushing even all remaining people away.
Don't worry, it's just something I'm doing to myself for some reason I'm not sure of yet.
 
@JerryCoffin The major point was about the Composite, Visitor is just one of the many options to traverse it.
@Jefffrey That doesn't sound so foreign for me :)
 
I guess it's what you do when you don't feel like being around people, which is caused by the fact that you feel lonely.
Which is kind of ironic.
 
FUCK YOU MSVC MY CODE IS PERFECTLY GOOD COMPILE IT RIGHT NOW FAILCOMPILER GAAAAAAARGH
10
 
lol
 
user1804599
Junctions are amazing.
 
10:29 PM
it's telling me I can't return a shared_ptr<T> from a function that returns shared_ptr<T>.
 
what do you guys do? where is C++ used today outside game development?
 
@Jefffrey Yeah, you feel you want to be alone, and give such signals to all the people around, and the next moment you suck upon feeling lonely. Know that, been there many times.
 
Yup, that's it.
 
@mrpyo No games, your frickin' TV provider's software.
 
@mrpyo We mainly avoid using C++ if possible.
 
10:33 PM
^ LOL
 
what's so funny about that?
it's true, in case you missed it
 
well, I only stared to learn C++ because JavaScript engines use C++ in their interface...
and I want to use JS engine in my project
 
That's cute.
 
it's super cute.
 
10:35 PM
from what I learned C++ can look decent as long as you are consistent and use new stuff
 
@Puppy Some of you, may be. Certainly not me. There's no chance to avoid c++ for my field, and having to have fallbacks to C is one of the things I really hate about my job.
 
@mrpyo Don't mistake that for "and use new stuff".
 
I believe that while C++ is mostly popular due to backwards compatibility it is its main curse
it could be a nice language if it was redesigned a bit
 
@mrpyo I can't parse that phrase.
@mrpyo Such as? What changes would you make?
 
everybody knows that
 
10:38 PM
I somehow get overly aggressive once LRiO says sth. wrong in the comment section
 
it's lrio- one of you is gonna get aggressive so it may as well be you
 
@mrpyo The "backwards compatibility" is a minor point. I have modern C++ compilers for most of my target MPU's available.
 
user1804599
This is amazing.
 
@LightnessRacesinOrbit I think you missed the difference between this and the implicit object parameter/argument. Those solely exist for overload resolution purposes. — Columbo 3 mins ago
 
firstly I dont like the division of source code and header files, outdated and I don't think it is really neccessary
 
10:40 PM
@Columbo That deserves the sith joke?
 
@πάνταῥεῖ What?
 
user1804599
multi sub nth-fib(Int $x where * == 0 | 1) { 1 }
multi sub nth-fib(Int $x) { nth-fib($x - 2) + nth-fib($x - 1) }
 
user1804599
Absolutely beautiful.
 
@πάνταῥεῖ All of those are still crippled by backwards compat.
 
@рытфолд Perl6?
 
user1804599
10:41 PM
YEHA <3
 
you should write your code in one place, all metadata could be derived automatically
 
user1804599
Or shorter: sub nth-fib(Int $x) { $x == 0 | 1 ?? 1 !! nth-fib($x - 2) + nth-fib($x - 1) }
 
in fact just employ decent package system like Java, and not stupid flat hierarchy of header files
@πάνταῥεῖ some embedded code or what?
 
lol Java.
 
The only interesting thing about Java is RMI. And it's not even that original to begin with.
 
10:45 PM
what about Java?
 
user1804599
Java is pretty much the very best at organisation of source code.
 
@Puppy I don't think it's the language crippled, but when to decide to write portable code requiring the current standard, and period.
 
user1804599
That and tooling is where it shines.
 
user1804599
It fails at everything else except a few nice things like non-static inner classes.
 
@πάνταῥεῖ C++11 did not reduce the backwards compat burden in the slightest.
 
10:46 PM
@mrpyo Part of the early popularity of C++ was (probably) backward compatibility, but only part, and IMO, it hasn't been a major factor for a long time. Most people who were ever going to switch from C to C++ did so decades ago.
 
@mrpyo Yeah I'm working in embedded SW development.
@Puppy "did not reduce the backwards compat burden" Well, I never claimed that.
 
you did imply that having a modern compiler somehow changed the fact that C++ is crippled by backwards compat.
 
@mrpyo S'OK - C++ will get modules soon, straight after wormhole travel, nuclear fusion power stations and world peace.
 
@рытфолд You've obviously gone completely off the deep end. Java's source code organization is one of its absolute worst problems.
 
@JerryCoffin you don't like org/company/name/thing/interface/clazz ?
 
10:49 PM
@MartinJames You forgot quantum computing.
 
@Puppy I didn't really imply this. All of my point is just a heads up: "Go for the latest standard to write widely portable code"
 
@Puppy Oh yeah, and rightfold completing all his projects.
 
btw. I'm just learning, so forgive me: Do you basically never use delete today - I mean can you just rely on automatic memory management (smart pointers)?
 
user1804599
I attempted to implement Shor's algorithm in Clojure.
 
user1804599
But I lost interest and abandoned the project.
 
10:50 PM
@πάνταῥεῖ That has absolutely nothing at all to do with backwards compat.
 
@Pris I spent most of last summer working on a fairly large chunk of Java code. There were days I'd probably have physically attacked the monumental asshole who dreamed up that bullshit if he'd been handy. God it's horrible!
 
@mrpyo Yes, exclusively. I never write delete, nor does anybody else with brains, and neither should you.
 
user1804599
You just wrote delete.
 
user1804599
You better delete it quickly!
 
@рытфолд Yes, using smart pointers is a good idea, instead of bothering with new()/delete on your own.
 
user1804599
10:52 PM
I know.
 
You use english, so you dont see whats still wrong in java - unicode implementation
 
user1804599
Best is a GC.
 
user1804599
GC 4 Life.
 
Unicode and source code organization are completely orthogonal.
 
In case anyone cared I got safely home, and I'm bleeding just a little. @Jerry thanks for the suggestion but I don't think mixing that with alcohol is a good idea.
 
10:53 PM
i tweaked something... i dont know what, and my code runs 10x slower
 
Now sleeping for realz.
 
@Puppy Well, they both belong in the 'PITA' set.
 
user1804599
@BartekBanachewicz Nobody does.
 
Java also was made too early, if it was made today it would be much better - they would know to use UTF8, there would be generics from the very beginning not weird, special case arrays and so on...
 
lol
Java would not be even remotely better if made today.
the fundamental approach is completely broken.
 
10:56 PM
how so?
 
@mrpyo Puppy has some peculiar views of things...
 
user1804599
It definitely would.
 
user1804599
Gosling said he'd make it what Scala is if he had to design it today.
 
user1804599
And Scala is remotely better than Java.
 
10:57 PM
@mrpyo The whole premise of Java is based around the idea that the programmer is an utter moron who can't be trusted to make basic decisions.
how to lay out his source code, to put functions that are not in a class, to overload operators, etc.
 
@BartekBanachewicz If you come to London unconference, try not to repeat that trick on a system with a conductor rail between the running rails energised at −210 V and a rail outside the running rails at +420 V DC.
 
from mathematical point of view only purely functional languages are technically correct, but sadly I struggle to understand them...
 
@MartinJames I'm pretty sure that you can't have a negative voltage.
@mrpyo That's not true at all. (Also, mathematics and programming don't have that much in common)
 
@Puppy It's DC, so you can. inb4 fried lobster.
 
what, current travelling in the opposite direction?
 
10:59 PM
@Puppy Charge inbalance relative to the earth.
The -ve rail has too many electrons, the +ve rail has too few.
 
user1804599
19
A: Applications of the Fibonacci sequence

Yaser SulaimanPerhaps it's not an entirely practical application, but Fibonacci numbers can be used to convert from miles to kilometers and vice versa: Take two consecutive Fibonacci numbers, for example 5 and 8. And you're done converting. No kidding – there are 8 kilometers in 5 miles. To convert...

 
that's current.
 
user1804599
Amazing.
 
or perhaps even just charge.
 
@Puppy No it's just charge inbalance.
 
11:02 PM
but voltage is about energy for each electron
 
we woulnd need to convert miles to km if Americans learned to use metric system
 
you can't have negative energy except in some very exceptional circumstances.
 
@Puppy No, you are wron.g
 
@рытфолд Scala isn't a reasonable alternative to Java though. Java is pretty much the technology of 1976 (Smalltalk 76) with the syntax of 1970 (C), and anything that couldn't be easily converted from one to the other ripped out and thrown away. The vast majority of Java programmers never have and never will even attempt to wrap their minds around Scala or anything similar.
 
Voltage is about potential.
 
11:03 PM
we have standards on everything yet we can agree on using one measuring system, damn
 
@mrpyo I was always much too fast on the highway, when visiting US :-D
 
If you take Earth as reference then you can have negative voltage.
 
user1804599
Fibonacci search seems interesting.
 
@Puppy It's not negative energy, just an inbalance. The -ve rail has 'a huge ocean of free electrons plus a tiny bit', the +ve rail has 'a huge ocean of free electrons less a tiny bit'.
 
well, you could certainly measure that energy relative to the Earth if you wanted to.
I'm just not sure that actually qualifies as volts anymore
 
11:04 PM
...
 
user1804599
Voltage and energy are completely different things.
 
user1804599
My physics teacher said that people who thought voltage and energy are the same thing were "physics-unconscious."
 
@Puppy You certainly can and it certainly does. In fact, voltage is almost always measured relative to ground. That may be an isolated ground or an earth ground, but earth ground is normally implied unless otherwise specified.
 
It is like this: Electric field is produced by charged particles. Mostly electrons and protons. Each point in the field has a electric potential. Voltage is the difference between potentials.
 
@wilx Differences are not negative; they are absolute.
 
11:07 PM
@Puppy No, they have sign, depending on which way you integrate.
...or move.
 
I put a delay in my event loop. No wonder it was slower... whew. Panic averted.
 
@Puppy What?
 
@Pris Well, that was a bad plan.
 
Oh I see.
You're talking about distance from A to B.
 
@MartinJames just added to test something and forgot to remove it. Because it was just a simple delay it didn't break any tests, just made everything slower :p
 
11:09 PM
@Pris Orite, I guess we've all done that, at some stage.
 
@Puppy The "difference" is the result from subtraction, and certainly A-B can produce a negative result.
 
Yeah.
 
If anyone thinks I hurt the feelings of c++ worshipers feel free to rollback my edit
 
fine I retreat
it's been like, 7 years since I studied this stuff anyway
 
@Puppy It's best to avoid electric charge, fields, energy etc. at this time of night. I'm gonna have a can of Directors to charge myself up.
 
11:12 PM
I would join you as I have beer in the cupboard
unforunately, me plus beer = owch
 
If I have several cans, I can probably sleep without dreaming of fried Bartek or rightfold.
 
I must say that I always succeed in sleeping without dreaming about Bartek or Rightfold.
in fact I have never dreamed of any Lounger.
 
what kind of beer do you drink?
if it is something like bud light you have to rethink your life
 
^ when i have money
^when i dont
i wonder if there's a programmer centric beer
 
Hey guys I have a question about A* pathfinding, I've been making a function that follows the psuedocode at the very bottom of this link : http://web.mit.edu/eranki/www/tutorials/search/

but I wanted some clarification on the last part, where it says to skip a node with a lower cost at the same position
 
11:17 PM
@Pris it's called beer
 
im disappointed there isn't a beer 'made for programmers' called fizzbuzz
 
that's not how you use beeradvocate
@Pris it would probably suck
the best beer for programmers is beer
why fix what is not broken
 
@mrpyo I seriously agree. Sith like Bud Light isn't any better than drinking the water from the baby pool in your local public swimming bath.
 
11:24 PM
@πάνταῥεῖ Yeah, sadly I have to drink some cheap stout now, still its better than drinking some piss poor vommon lager
*common
 
I'll try some gin and vodka
never had any
 
so then
 
maybe some bourbon
 
14 unresolved externals, 1 compiler bug.
 
it looks tasty
 
11:25 PM
time to sloaeep
 
My single malt ran out :( ...
But I still have another bottle of that famous _"Aktien Zwick'l"_ :-D
 
sometimes I dream of inventing new programming language that would rule them all, but later I remember how it would end up - instead of learning n languages you would have to learn n+1 languages...
 
I'd rather people dreamed of inventing new software
especially new games
 
plenty of people dream of new software and games
they're called 'idea guys'
 
I think the programming languages we have now are OK
 
11:29 PM
@mrpyo Obligatory XKCD:
 
what we need is more awesome stuff done with them
that's about it
 
I disagree, there are places where new unifying standards are needed. Try mobile game development - its not that easy if you want to cover all platforms...
 
unless you use C++
there are C++ compilers available for all known modern mobile targets
 
Using C++ doesn't solve all problems.
You still need to interface with the system.
 
but you still would have to write specific code if you want to use display, audio and input
 
11:36 PM
@StackedCrooked it doesn't
 
@AlexM. It's never really about the compiler.
 
SDL2 for example works on iOS, Android but not Windows Phone from what I know
 
but if the goal here is for all platforms to support the same language and the same API and the same everything
I'm not really sure it's a goal even worth striving for
 
The goal is to write an application that works on different platforms.
 
5 mins ago, by mrpyo
I disagree, there are places where new unifying standards are needed. Try mobile game development - its not that easy if you want to cover all platforms...
looks to me like he wants to change something in the mobile ecosystem
 
11:37 PM
Windows Phone 8 is way easier to dev in than Android and iOS combined
 
Could Qt be used for mobile game dev?
 
well, I know Android is a mess
 
a guy ported Qt to mobiles
 
@mrpyo it would be nice if there was a standardized i/o event layer thing across OSs but it'll never happen
 
I only remembered him because he was Romanian
 
11:38 PM
bogdan vatra?
 
dunno
 
maybe
 
TIL about this
 
that was a long time ago... today qt runs on ios,android,bb,winphone, etc
 
11:39 PM
I develop for it, and I keep catching myself thinking Android SDK was developed by morons...
 
@mrpyo ultimately, yes
you have to isolate platform-specific bits
I don't believe those form the majority of the game though
and I sure wouldn't eliminate competition between vendors for that
I never really bothered to see how the games at work adapt to each platform now that you mention it
I should try and study lol
never cared I guess
though the more time passes
 
the less I want to do actual gamedev professionally
 
@mrpyo An outright falsehood and a base libel. I demand that you take that back immediately. The mere fact that morons are not very intelligent does not give you a right to accuse them of such evil and wrongdoing.
 
11:44 PM
@LightnessRacesinOrbit thousands of birds?
lol
 
this guy's some kind of genius
 
I remember him from somewhere
he's also on SO
but where did I see him first
why did they edit that question though lol
it was funny
the only thing making it funnier would be saying something like "a horde of birds"
"a cohort of birds"
a legion of birds in phalanx formation
 
I can't enjoy Spotify even if I install flash
feels bad man
 
11:56 PM
@Rapptz "It's free", as if it was something in its favor.
 
remind me though, what was wrong with flash player?
I thought it was java that was bad
 
They're both bad
 
I don't remember having any issues with flash player, hmm
 
resource hog
 
@AlexM. Security issues. Bad performance.
 
11:57 PM
is there a way to tell if I use html5 or fl...
nvm right click
 
YouTube is HTML5 now.
 

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