« first day (944 days earlier)      last day (4012 days later) » 

10:00 AM
TBH this PDF has a lot of great points, still obvious
 
they come with the concept I suppose
 
@R.Martinho you could be interested, because they explicitly state what's wrong in current API
> I've just wasted about 5 minutes writing a function to get the buffer size.
 
@TonyTheLion It's actually fairly simple (because each step is so remarkably naive and intended to run completely in isolation, effectively)
 
o_0 why would an image loading library need initialising
 
@jalf I assume I can read about it in the Standard?
 
10:01 AM
@TonyTheLion lucky you
 
@LightnessRacesinOrbit meh, you will get probably all of it formally in the next spec or spec draft
 
when the compiler comes across a function definition, it generates code for it. When it comes across a function declaration, it just makes a note that "calls to this function are not an error, provided they follow the specified signature", and inserts a placeholder for the linker to fill in (once the actual function address is known). So if multiple TU's contain a function definition, they'll compile just fine (because the compiler looks at one TU at a time), but the linker will complain
@TonyTheLion of course. But it's probably not in the most accessible form there :)
 
Also I don't actually like the proposal.
It's escaping the real issue, which is C.
and until the API starts using real enums in C++ it will suck either way. Making it suck 10% less by the proposed changes may just not be worth it
OK, I should do some real work.
 
> An extra in the movie, Iain Banks, became a critically successful novelist who referenced the rabbit in his first novel, The Wasp Factory, which built upon the primal myths of modern culture.
TIL
 
@jalf oh I see. So the linker can see across TU's and the compiler cannot?
 
10:04 AM
@R.MartinhoFernandes: Where is this quote from?
 
The Killer Rabbit of Caerbannog is a fictional beast in the movie Monty Python and the Holy Grail. It is the antagonist in a major setpiece battle, and makes a similar appearance in Spamalot, a musical inspired by the movie. The iconic status of this skit was important in establishing the viability of the musical. In the film In the film, King Arthur's Knights of the Round Table are led to the Cave of Caerbannog by Tim the Enchanter, and find that they must face down both the Rabbit and the Black Beast. The Cave of Caerbannog ("caer bannog" being Welsh for "turreted castle") is the ...
How could I miss that the goddamn rabbit scene in the novel was a reference to Python is beyond me.
I didn't know he was an extra, though.
 
user142019
Damn.
 
Every Friday they test the fire alarm here, and every so often when it goes off I say " kill it with fire" and get a giggle from coworkers.
 
@TonyTheLion Yes.
 
user142019
pointer being freed was not allocated in the dtor of std::runtime_error. :|
 
10:06 AM
> The woman who owned the real rabbit was unhappy with the amount of fake blood in which it had been doused by the Python crew.
lol
 
Compilers compile individual TUs.
Linkers link TUs together.
 
@TonyTheLion to which every one then thinks 'kill me know'
 
@LightnessRacesinOrbit Sounds horrible. =[
 
@ThePhD Not really???!!
 
I'm an IDE rabbit and have no problem conceptualising the TU's. The project pane has a treeview of all the files and their includes. No problem.
 
10:07 AM
@TonyTheLion Oooh, so Friday is the best day to set fire to the building.
 
@LightnessRacesinOrbit take cover
oh, #FollowFriday
 
@R.MartinhoFernandes no
 
Yes, it is. No one will believe it!
 
@BartekBanachewicz ¬_¬
@R.MartinhoFernandes when there is a real fire alarm (usually just another test one) it usually takes people a while to both moving
 
@LightnessRacesinOrbit Imagine if you didn't have to do such frivolous splitting. :D
 
10:12 AM
Hi guys
 
@BartekBanachewicz +1 for the "sigh"
 
Imagine if the compiler's job was to make the header file and export the appropriate interface.
 
can somebody help me with questions?
 
@ThePhD Nothing wrong with a bit of modularity and atomicity
 
10:13 AM
@BartekBanachewicz I saw that unsigh!
 
for which data structures it is possible to implement a search algorithm more efficient than O(n)?
 
@ThePhD I like it how it is :) It's explicit.
@BartekBanachewicz Hmm?
 
@LightnessRacesinOrbit Yeah, but a pain.
 
@Rubik All the inherently sorted ones
 
@LightnessRacesinOrbit ... with random access!
 
10:14 AM
@LightnessRacesinOrbit Ou, it's sorted array and list?
 
Well, actually, it depends on what your "step" is.
 
it's possible to get O(1) for any data structure, if you only store one value in the data structure.
 
You can still get less than O(n) comparisons without random-access if the size is known.
But you will have O(n) iterator increments, for example.
 
and it has only 4 answer
 
We noticed.
 
10:17 AM
It's number 3.
 
@Rubik are the zero indexed?
 
@R.MartinhoFernandes Not if the answers are unsorted.
 
We need a O(nlogn) algorithm to find the correct answer in the four options
 
@MartinJames map are unsorted, but can still be indexed
 
@Rubik: Why do you keep ending your sentences with a closing bracket ')'? You're breaking my brain.
 
10:18 AM
Ugh, will you stop closing unopened parentheses?
 
Well, we all tried quite hard to confuse you.
 
hahaha
 
2 messages moved to bin (((( fixed
 
ha
 
10:19 AM
@R.MartinhoFernandes Is it really so bad)
I think it's nice?)
 
really? the bin?
 
Don't you?))
 
(Yes!)
 
Hehe
 
10:20 AM
@LightnessRacesinOrbit closing bracket ')' it's smile :)
 
it's a syntax error
 
ok
 
(:This is a smile:)
 
@Rubik What, you have no eyes?
Emoticons shall incorporate all major elements of the face during a smile, not just the smile itself!
 
@MartinJames that's two smiles
 
10:21 AM
He plucked them out after 'fringe benefits' post.
 
In country where I live it's abbreviated of smile
 
Cue "country fucking stupid"
 
@Rubik well, the rest of the world has taken to the internet ¬_¬
 
Then country where you live is fucking stupid
 
would this be okay aswell?P
 
10:22 AM
♯:-)
 
@LightnessRacesinOrbit Rubik is in UK?
 
WTH is a sharp sign for?
 
@MartinJames A->B !== B->A
 
@TonyTheLion yeah, basically
 
10:22 AM
I see that not my country stupid
 
@R.MartinhoFernandes It's my hair
 
the linker's job is to link together the output from multiple TUs
 
I see that some people stupid)
 
you've done it in your profile, too
 
@LightnessRacesinOrbit Then this is mine ♯♯-)
 
10:23 AM
sorry, I know it's unfair, but I just can't bear to read your things
 
@Pubby oh lol, I thought it's too rude//cc @Floris
 
hence the name :)
 
@jalf they should give it a name that suggests it links stuff :P
 
@R.MartinhoFernandes get a haircut, hippy1
 
@BartekBanachewicz Made me laugh actually
 
10:23 AM
Haircuts are for wusses.
 
@thecoshman yeah, I can't believe no one thought of that before :D
 
@FlorisVelleman I really sighed when I saw that question.
 
I just answer 1 question and so more debate...
 
Hmmm, I don't know how to say haircut in German.
 
@R.MartinhoFernandes well said, let the main grow wild :D
@R.MartinhoFernandes now you never need to worry about it :P
 
10:24 AM
Haarschneidung?
 
@BartekBanachewicz haha I was actually waiting for the moment you would say something about using raw pointers
 
WTF "Schneidung" is overlap?
 
@FlorisVelleman that dude has a memory leak obviously
 
"defecation"
Gosh "Haarschneidung"...
 
Xeo
@R.MartinhoFernandes ya
@R.MartinhoFernandes That sounds wrong
 
@R.MartinhoFernandes hair defecation. Nailed it.
 
Wait, typo.
 
Xeo
@R.MartinhoFernandes Normally "Überschneidung"
 
I entered Scheidung...
 
10:27 AM
@LightnessRacesinOrbit Good excuse to get a mohawk
 
@R.MartinhoFernandes Haarschnitt
 
I feel stupid for clicking on the x in that picture and expecting it to go away
 
@R.MartinhoFernandes Your hair will get 50% of all your stuffs!
 
@FlorisVelleman haha
my best FB profile pic ever:
as a thumbnail, it's super-effective!
had people flapping at their monitors for weeks
 
Wonder if the SO version would be just as effective
 
10:32 AM
@LightnessRacesinOrbit Why do you become Facebook friends with dumb people?
 
@FlorisVelleman hmm...
 
so, you know how you #include <foo.h> or #include "foo.h" the former is generally meant to be system things right... so would it be fair to assume that such include would never need to be checked to see if it has changed?
 
@thecoshman System update and -I?
 
I use <> alsmot exclusively.
 
@R.MartinhoFernandes ¬_¬ you would do wouldn't you
 
Xeo
10:38 AM
Seems you're great at typing today, robot.
 
Oh dear god I captured a const variable in a mutable lambda and can't mutate my local copy.
I would really have enjoyed not hitting that corner case ever.
 
Xeo
heh
 
Any Kiwis in Lounge?
 
so basically yeah, I should consider includes from both styles of include... good stuff
 
Kiwis?
 
10:39 AM
@Pubby New Zeland folk
 
Ah, right
 
6
A: Are C++ abstract classes incomplete types?

Lightness Races in OrbitNo! Superficially they are similar (beyond the fact that abstract classes do have definitions whereas incomplete types do not): [n3690: 3.9/5]: [..] Objects shall not be defined to have an incomplete type. [n3690: 10.4/2]: An abstract class is a class that can be used only as a base cla...

testing
 
@thecoshman Yup, AKA 'The Enemy'
 
@Xeo I didn't sleep much.
 
@MartinJames your a criminal Australian?
 
10:40 AM
@LightnessRacesinOrbit too small
 
@BartekBanachewicz flies are small
 
Decided to read before sleep.
 
@thecoshman No!
 
@thecoshman you're. uh.
 
Xeo
@R.MartinhoFernandes Bad idea if you plan to get up early next day
 
10:41 AM
@MartinJames where from then?
@BartekBanachewicz shut it
 
@thecoshman it hurts my eyes
 
@BartekBanachewicz your a fanny
 
@thecoshman UK citizen, in Derbyshire, (also, no criminal record:).
 
@Xeo I wasn't expecting the book to pick up so fast in that chapter :(
 
@MartinJames sure :P
@R.MartinhoFernandes I take it your gift has not blown your mind yet :P
 
user1182183
10:43 AM
hm if anyone is looking for a cross platform obiect oriented library then I srsly recommend ois :D or does someone know a better library?
 
@ThePet boost :P
 
@thecoshman Derby County have a criminal record, but I don't support them.
 
user1182183
boost has device input librares? O_O
 
@ThePet oop library doing nothing?
 
user1182183
@BartekBanachewicz hm I don't understand what you mean? :/
 
10:44 AM
@ThePet you where on about some specific functionality O_O
 
> cross platform obiect oriented library
 
user1182183
ah sry my mouse removed some text -.-'
 
@thecoshman I will get an SMS when it arrives, and I got nothing yet.
 
user1182183
device input library
 
that's better
 
user1182183
10:45 AM
I hate using the mousepad but I'm in the kitchen without mouse
 
Do you have a tracking code?
 
@R.MartinhoFernandes hmm... let me check, but I doubt it
 
So now I'm suspicious it's a book.
I hope it's not a freaking Bible.
 
user142019
@R.MartinhoFernandes I noticed you moved ogonek::(encoding)::encode (and decode) out of the encodings, but that's not reflected in the documentation. Thought you may forgot to update it.
 
no, no tracking numbers :(
@R.MartinhoFernandes it's not ticking for one thing :P
 
10:47 AM
@rightfold The docs that are up reflect the 0.5.0 tag.
 
user142019
OIC.
 
@R.MartinhoFernandes have you documented that?
 
user142019
Aye, I'm using master.
 
@thecoshman Front page, actually. flamingdangerzone.com/ogonek
 
> Ofiszal Polisz Fanpejdż of Sonya & Milana
lol
I wonder what that says
 
10:48 AM
Actually, all pages (see footer)
 
sh you
 
Oooh, Pfingstmontag on Montag. I almost forgot that.
Woot.
@thecoshman I actually have a field in the config file just for the version, and every instance of it in the docs uses that variable, so I can change all over at once.
 
user1182183
@MartinJames dafuq is that supposed to be? ; o
 
@R.MartinhoFernandes oh, swish, even into the wiki?
 
user1182183
10:52 AM
car on fire on a highway...
 
Coshman's parcel van
 
@MartinJames :O
@BartekBanachewicz hm, looking at your Player.gravity() code. You know, you should apply half acceleration to the velocity, then update position, then apply half acceleration to velocity again. At high update rates it does not matter, but as the rate drops it can help to reduce the margin of error
 
10:55 AM
@thecoshman oh, you are right
 
if you where to apply jerks as well, you should be applying a 1/4 jerk before and after each update to the acceleration
 
fuck me.
 
and yes, jerk is the correct term for delta acceleration :P I love that word
 
@thecoshman What about assholes and dipshits?
 
this code was written hastily, just to allow some sort of moving
 
user1182183
10:56 AM
@BartekBanachewicz link? :D maybe I can learn from your code :$
 
It took me like 10 minutes with whole collision detection
 
yeah, I forget the exact reasoning on how it works, just that it is better to do it
 
@ThePet no, don't read that one, it's only a draft
 
user1182183
oki hehe
 
@thecoshman thankfully I do remember the reason ;)
 
user1182183
10:56 AM
when it's done be sure to ping me XD
 
@BartekBanachewicz I remember a pretty picture that went with it, so it till makes sense :P
 
@ThePet it's basically continuous voxel collision detection and gravity. nothing fancy
@thecoshman just integrate the function.
 
any way, now that I have said something nice... EEEWWW you prifix functions an underscore
 
user1182183
@BartekBanachewicz I see every piece of code by others as a opportunity to learn an analyse :)
 
@BartekBanachewicz pretty picture, is all I need :P
 
10:57 AM
@thecoshman private functions
@thecoshman meh, maths is all that you need for that really.
 
@BartekBanachewicz hmm....
@BartekBanachewicz pretty pictures are nicer :P
 
@ThePet welp, it's on github anyway
 
also, what is the class minefield for?
 
@thecoshman here you go
@thecoshman it's the core voxel data container
 
@BartekBanachewicz the very article :P
@BartekBanachewicz o_0 so.. chunk manager?
is minicraft simulating minecraft, or emulating it?
 
11:00 AM
@BartekBanachewicz no longer working on lundi? :(
 
@thecoshman I don't call my classes "managers"
@Borgleader why, no. Minicraft uses Lundi.
 
Last commit was like 2 months ago
 
no, it was 3 weeks
Also I wanted to integrate Lundi to see it in action
 
ah ok
 
@BartekBanachewicz yeah, you get a lot of flack for it here. IMO if it is managing and organising other data, calling it a manager is not a terrible thing
 
11:01 AM
synthetic tests show too little
now I know what I have to add to it
 
cool :)
 
@Borgleader you are welcome to help
@thecoshman no, it is a terrible thing. It's not a chunk manager, it's a world voxel field.
 
My internship ends in a few weeks, I'll take a look at it then
:)
 
@thecoshman errm..
 
user1182183
well in 10 minutes I'm going to my Maths Final Exam, wish me good luck heh
 
11:02 AM
welp g2g
 
11:12 AM
@thecoshman it is a terrible thing because it is not clear what it means to "manage" other data
It's not that the class necessarily is bad, but its name is. And the fact that you couldn't think of a descriptive name often implies that you don't really have a well defined responsibility for it either, and then the actual class typically ends up being bad as well.
 
@ThePet good luck
 
@thecoshman I dunno, at face value that would imply that classes without 'manager' in their name do not manage or organise data.
 
Xeo
@thecoshman What does "managing data" entail? :)
 
void foo_that_gets_an_int(int i); // duh?
 
In my experience it's actually a fairly productive exercise to ask yourself "if the name 'manager' is bad, then what should this manager class be called?" Because it forces you to consider what the actually managing it does entails
 
11:16 AM
struct foo_that_manages_bars { something_or_the_other<bar> lotsa_bars; }; // ah?
 
Xeo
@jalf yep
 
Even if you don't have to change the class (other than renaming it), it gives you a better idea of what it is for (and when you have that, you might decide to change the class as well)
 
time to check out the grill party
I want meat.
 
so pragmatically speaking, I wouldn't mind the odd "manager" class (it's not as universally bad as, say, a singleton, because sometimes you do have a class whose responsibility is basically "managing" a bunch of objects), but I find it more productive to completely ban the name in order to force myself to come up with more descriptive names
(inb4 someone "reminds" me that I have a manager class in my STM lib)
 
Xeo
Wasn't that one also a singleton?
 
11:25 AM
haha
 
nah
not IIRC, anyway
 
Xeo
I'm pretty sure somebody found a singleton in your STM codebase
 
I'm pretty sure they didn't. They found a manager class, not a singleton
and I think, by default, there was only one instance of the manager class too, but it wasn't a singleton. Nothing stops you from creating more instances
 
Xeo
Jan 4 at 14:21, by StackedCrooked
Lol, I found this in jalfs code: auto& mgr = stm::frontend::get_manager();
Ah, this was it
Yeah, it looks like a singleton.
 
well, it isn't. :)
it has public constructors
and actually, I think one instance exists per thread
SO THERE!
 
11:29 AM
Does that mean we put down the pitchforks and torches?
 
Totally not a singleton :D
 
Man, I sharpened my pitchfork for naught?
 
@R.MartinhoFernandes I'm sure you can find someone to stab with it
 
Do you weight as much as a duck?
 
user142019
Can I forward-declare a using?
 
11:31 AM
No.
 
user142019
Meh. :(
 
Xeo
You can forward-declare the parts of the using :P
 
@MartinJames You know I saw a car on the street pull over and go from just a little smoke to engulfed in flames in a few minutes and it was pretty amazing how fast it went up
 
@R.MartinhoFernandes Only when on the breadline.
 
If those parts are not in std.
 
Xeo
11:32 AM
Also, there was some discussion about @Luc disliking member function syntax?
 
Not as such, no.
 
Xeo
@StackedCrooked Right
 
@MartinJames So if you don't eat, you turn into wood.
 
@ShafikYaghmour Worst I saw was a new Merc on fire by the side of the motorway. From the plates, I could tell that it had only been on the road for a couple days. The driver was sitting on the grass, at a safe distance, wondering whether to commit suicide.
 
(first time I heard "breadline" was in the anagram round, last Quiz Night)
 
Xeo
11:35 AM
@LucDanton Wait, is it that you dislike a.b() or pa->b()?
Or both?
 
Both.
 
> why is this still up? mods on here suck my fat cock – user2392205 8 hours ago
Because we were too busy sucking his cock?
 
@R.MartinhoFernandes Yeah - it's not often used today. Nobody queues for bread - they're stuck in the queues at the Apple store instead :)
 
@BoltClock Sigh.
Obesity is a serious problem these days.
 
user142019
@MartinJames Did they release something new?
 
11:39 AM
@rightfold Not recently, no. Just poking at the fanbois :)
 
user142019
Oh. :P
 
Xeo
@LucDanton Hm. I kinda have to agree with the puppy that I dislike this nested foo(bar(baz(t))), although Haskell is slowly taking this dislike away... maybe I simply dislike the parenthesis.
 
I'm pretty sure that I've never bought an Apple product. I used a Mac once - one of those funny clamshell ones with a translucent case. Never gonna touch one again.
 
The iBook is a line of laptop computers sold by Apple Computer from 1999 to 2006. The line targeted entry level, consumer and education markets, with lower specifications and prices than the PowerBook, Apple's higher-end line of laptop computers. Three distinct designs of the iBook were introduced during its lifetime. The first, known as the "Clamshell", was influenced by the design of Apple's popular iMac line at the time. It was a significant departure from previous portable computer designs due to its shape, bright colors, incorporation of a handle into the casing, lack of a hinged...
Eurgh, onebox fail
 
@BoltClock Why fail? Seems ok to me.
 
Xeo
11:44 AM
@R.MartinhoFernandes The image
 
Wait, you were expecting it to pic a relevant picture?
 
Aaarrgghhh!! Take it away!
 
Haha, how gullible.
 
Looks like clam
 
Xeo
@R.MartinhoFernandes Was that typo on purpose?
 
11:45 AM
I'm going with "yes".
 
Xeo
heh
 
Ugh, just fixed some UB in my code hides in shame
 
user142019
Huh.
 
those things were strange looking
 
11:48 AM
..and fucking horrible to use. Half the time, it would not turn on at all because of some power switch/supply issue.
 
@TonyTheLion I wonder if you'll say that about iphones in 10 years
 
caught on camera
@Pubby probably not
 
@TonyTheLion She looks young.
 
Maybe just scale. Lionesses quite large, IME.
 
11:51 AM
1
Q: Aquire Singleton class Instance Multithread

Matheus FreitasTo get the instance of the class with Singleton pattern, I want use the following function: This is a sketch var InstanceNumber : Integer; function getInstance: TObject begin //I Want somehow use InterlockedCompareExchange instead of CriticalSession, for example if InterlockedCompareE...

I'm crying
 
NO.. I'm not opening that.
 
Delphi... singleton... multithread...
 
I can do it too!
 
> Is this design Thread Safe?
 
Delphi OK, multithread OK, singleton.....
 
11:55 AM
211
Q: What can I do when getting "Sorry, we are no longer accepting questions/answers from this account"?

ArjanDo not repost the question you were about to ask until you have READ EVERYTHING WE ARE ABOUT TO TELL YOU. While trying to ask a question, one could get: Oops! Your question couldn't be submitted because: Sorry, we are no longer accepting questions from this account. See http://go...

The fact that this is listed as Frequently Asked on meta with says a lot about That Programming Q&A Site
 
Oh, sod it, I opened it anyway. Wasn't a good idea :(
 
@TonyTheLion This is necessary, in my case, this will serve as cache, i'm using COM and for each thread, the server was doing the same huge select, i want to avoid this, putting the result in an object, the result is always the same. — Matheus Freitas 39 secs ago
ahahahahah
 
I know some of those words
 
11:58 AM
Me too, but not necessarily in that order.
 
@MatheusFreitas that still doesn't justify the singleton. Store the result of your SQL statement in the cache, and pass it around where you need it. No need for a singleton. Solved — Tony The Lion 9 secs ago
 

« first day (944 days earlier)      last day (4012 days later) »