« first day (1608 days earlier)      last day (3355 days later) » 

11:00 AM
@ParkYoung-Bae Why is that a problem, btw?
 
@R.MartinhoFernandes I found that quote on Wikipedia.
> Go deliberately omits certain features common in other languages, including generic programming, assertions, pointer arithmetic, and inheritance.
this too
 
@Rapptz They need to be standalone
@R.MartinhoFernandes I guess it's not too big of a deal but it does feel like waste
Also I'm unsure how to build this stuff if the submodule versions differ
argh
 
@thecoshman sparse voxel octress are cool
 
@LightnessRacesinOrbit haha how did I not notice this
 
@LucDanton well, pqueue too!
 
user3010322
11:07 AM
@melak47 Das good to know.
 
@LightnessRacesinOrbit Very good one..Thank you for sharing
 
@Rapptz :)
@SmartDev You're welcome sweetie
 
lol
 
@Rapptz to be fair, it does look like they have an awesome tool
@ParkYoung-Bae a lot.
 
Probably. I just don't like those implications.
 
11:09 AM
Me neither. It's all marketing lingo
 
I was required to take a 'computer learning' course at work and one of the questions implied that open source software has malware or adware in it all the time.
 
@StackedCrooked on one of those heavy mechanical keyboards from the age of Smalltalk
 
I knew what answer they were fishing for :(
So I had to go for it so I wouldn't have to take the stupid test again
 
@Rapptz hehehe. Somehow I feel that "computer learning" is apt there. I mean, it certainly doesn't stimulate "student learning"
> I accept Paypal.
Heretic
 
11:12 AM
the course was basically teaching you how to use Microsoft Office 2007 and keyboard shortcuts like Ctrl+C etc.
Was pretty bad.
 
@BartekBanachewicz they are yes...
 
@LightnessRacesinOrbit I like how "with the () executing the function." is still ambiguous in the end :)
? wut. Why. When.
I was thinking of machine learning
 
it was required to take for all employees when we switched to Windows 7
why? I don't know
waste of time and resources if you ask me
 
> Machine Learning
> Office 2007
 
@LightnessRacesinOrbit Jeebus. JavaScript really sucks. :D
 
11:14 AM
what
 
It is worse than Perl in this regard.
 
@wilx Oh God..Perl is worst? I am learning Perl now
 
> closed as too localized
> never forget
@SmartDev yes
@wilx um what?
 
@BartekBanachewicz what about python?
 
@ParkYoung-Bae Well. Obviously Office wasn't mentioned when the assumption formed
@Rapptz erfff
 
11:16 AM
you mean Whython
 
@LightnessRacesinOrbit lol
 
RIP
Perl is worse than most things.
Perl has a lot of good things crusted on a rotten core
 
@sehe Thanks for letting me know..I probably need to switch this work
 
There's things it's good for. I'd say any perl script <40 lines could be sane
@Rapptz that's a bit like saying "assuming gravity is negligible" :)
 
All in the good name of science!
 
11:20 AM
What are the ideas about python? I heard that google's internal products are now converted to python...Python is very fast and easy.
 
'very fast'
 
@SmartDev a bit better
 
Python is nice though.
 
@SmartDev no, it's quite slow in practice
 
11:21 AM
@Rapptz I do explain things like this to my kids, though. I explain that a large part of why cats can walk the ledge of the staircase fence is not just their feet are smaller, also, they can fall because they don't weigh as much
 
it's easy alright
 
And then I explain that the same might be true of themselves to an extent, but things are rapidly changing to their disadvantage.
 
however, I am not sure if "it's easy" should be a very compelling selling point if it's your 3rd or 4th language
vim isn't easy
 
Vimscript is certainly not easy. It's hard even on your shrink
 
Just tpope it.
 
11:22 AM
fuck
I lost a big plastic food tub.
 
Btw, things.
 
Lots of them
 
@R.MartinhoFernandes lol
 
vimscript? vim.rc?
 
how dare you verbify people
 
11:23 AM
@BartekBanachewicz vim..here all use vim..but i dont know i seriously dont like to work in vim while coding..i just use IDEs
 
So, I'm again thinking of options for some header-only image generation.
 
@SmartDev vim can be turned into an IDE alright
most of the modern editors can
 
If I didn't want header-only I'd just grab cairo, but yeah.
 
@R.MartinhoFernandes output to BMP vOv
 
git stratus
 
11:24 AM
I really don't want to do the brunt of the work myself. What are my options for header-only png writing?
 
@BartekBanachewicz Yes...but navigation to declaration/definition and searching all is much faster in other IDEs
 
@R.MartinhoFernandes don't think it's possible without zlib.
 
@SmartDev that depends on your vim configuration. Most of the IDEs are sluggish and unresponsive in practice
 
@BartekBanachewicz Well, that's only half of it. There are two important parts involved: drawing the stuffs, and actually outputting the stuffs. Though I really want png output.
 
@chmod711telkitty vimscript. You know, Zimbu before inception
 
11:25 AM
@Rapptz :S
 
@R.MartinhoFernandes well once you have BMP you can use widely-available third-party tools
 
@R.MartinhoFernandes Uh there’s Boost.GIL sort of (e.g. linking to system libpng acceptable?), sort of the wrong abstraction though no?
 
@BartekBanachewicz twitter handles are not people!
Also, verbing is not an -ification
 
@R.MartinhoFernandes It is honestly easier to just generate .bmp.
 
@LucDanton Yeah, I want it header-only in the sense that it requires no changes to the build.
@Rapptz Lame.
(Cue joke about WAV)
 
11:28 AM
@R.MartinhoFernandes 'Yeah' as in acceptable?
 
I think I have 3 internet stalkers, from different sources (none from this lounge though). I could not, but asking the question - if someone is your online stalker, then it's morally okay for you to violate them?
 
Nah, as in "ACK, but"
 
you’ll be drawing pixels
 
also, that time of the month ...
 
Boost.GIL has 'interesting' compile-times, too, since you write generic programs that you then instantiate for each format you want to support :s
 
11:29 AM
What's wrong with .bmp anyway?
 
@Rapptz Not png :P
 
@chmod711telkitty you don't have three online stalkers.
 
Is file size an issue?
 
I do, unfortunately fortunately
 
@Rapptz Not really. BMP is lame and merely the last resort. PNG and SVG are my primary goals.
 
11:30 AM
Found on chrony-users list:
> > The problem probably was UTC vs local time. Where do you live?
> East coast, USA.
That's how to do it, folks!
 
I get personal messages from them every now and then
 
I mean yeah BMP is lame but it works.
 
@sehe Why do you feed her?
 
I do wonder
 
user3010322
Morbid Curiosity is a powerful drug.
 
11:31 AM
@sehe better than feed other trolls in denial
 
It's okay telkitty I like you in your own odd way.
 
I remember using some public domain single-file PNG reader once, but I can't quite remember the name. :/
 
@ThePhD For me, it's a condition
 
wait you need a reader?
I thought you needed to write
 
@R.MartinhoFernandes is derpstorm's not in PD? <ducks/>
 
11:32 AM
though even reading needs zlib
 
@Rapptz Nah, but I remember the same guy had made other image-y stuff in a similar style (pure C89, single-file, public domain).
 
Oh. Wait.
I know this library.
 
user3010322
@R.MartinhoFernandes Oh I know this guy
 
Ah found it.
 
lol
 
I didn't find it!
 
those 2 lightbulbs
 
(just breaking the mold here)
 
user3010322
Oh, you found it.
 
@SmartDev Perl is awesome. But you can write pretty impenetrable line noise in it. Though you usually have to use some letters, unlike the linked JavaScript.
 
11:34 AM
Yeah I have him starred on github.
 
Are double underscores allowed in C?
 
6326 lines
 
@wilx I think Javascript objectively has a lower interpunction to "letters" ratio than perl
 
It's public domain so I can just rip everything apart, anyway.
 
Wow no zlib.
Truly the most amazing part of all of this.
 
user3010322
11:35 AM
He does the zlibbing himself.
 
@R.MartinhoFernandes what about merging upstream fixes or updates :)
 
@ThePhD Too hardcore for me.
 
user3010322
My readers do everything but the zlibbing.
 
@ThePhD a.k.a. compression/decompression
 
The zlibbing
 
11:36 AM
@R.MartinhoFernandes I don't think x__y is illegal in C++?
 
@ThePhD Good subtitle for a blog
 
@ParkYoung-Bae It's a single file, no dependencies, with simple loading of jpg, png, psd, tga, gif, hdr, pic, and pnm. 6kLOC seems quite ok for all that.
 
@Rapptz it is, or do you imply it's okay with lowercase? (I didn't think so)
 
@Rapptz No double underscores anywhere.
 
user3010322
The amazing thing is, he got PSD in there.
 
11:37 AM
@R.MartinhoFernandes not as a prefix
 
@FredOverflow But yes in the middle?
 
user3010322
PSD is a file format forged from blood most foul. How he managed to do it is beyond me.
 
@wilx perl, driving developers to be come managers so they don't have to try to fix shitty perl scripts
 
Because they are not at all in C++.
 
I'm 50% sure of it ;)
 
11:37 AM
@ThePhD Post Stress Disorder
 
@ThePhD It is very limited.
 
@ThePhD He probably wrote some code
 
nowei
 
@Mgetz Dunno about that. :)
 
user3010322
Also what is this PIC file format? I haven't actually heard of that one.. PIX, yes, but not PIC...
 
11:38 AM
@ThePhD It only supports a specific set of PSD options.
 
@wilx yet
 
user3010322
I also need to finish my HDR loader. ;~;
 
double underscores are fine in C
 
@sehe Well, I do not write Perl for money, so it is unlikely it will ever happen. :)
 
The entire thing is meant for people that have full control over the input and so can be picky about the formats used. Primarily game developers.
 
11:38 AM
@ThePhD ancient mac format, I haven't heard of that since I left my last job
 
fuck I just forgot what time I put my food in the oven.
 
@Rapptz Ugh.
 
You can write some pretty bad code in Perl. But it is true for pretty much anything.
 
@wilx You can be an unpaid manager!
 
@sehe Awesome!
 
11:39 AM
@Puppy You can use carbon dating /Zing
 
@R.MartinhoFernandes that source is hard to read tbh
 
lol
 
LOVE
this photographer is great and this model is my dream wife
all his work is beautiful and all her work is beautiful
 
11:40 AM
stbi_zlib_compress
a true champion
 
74
A: Why do people use __(double underscore) so much in C++

macculltFrom Programming in C++, Rules and Recommendations : The use of two underscores (`__') in identifiers is reserved for the compiler's internal use according to the ANSI-C standard. Underscores (`_') are often used in names of library functions (such as "_main" and "_exit"). In order to av...

 
user3010322
My thing outputs to just Stream, and you can create a MemoryStream for that stuff.
 
@R.MartinhoFernandes doesn't look very reentrant though. Unless const correctness is "not in" C89
 
user3010322
WHICH REMINDS ME
 
user3010322
I need to completely overhaul my Stream implementation.
 
11:41 AM
@LightnessRacesinOrbit She is disturbingly thin.
 
@FredOverflow C not C++
 
@Rapptz Have you read the answer? ANSI-C standard
 
@LightnessRacesinOrbit nice sky
 
@FredOverflow Not normative.
 
@LightnessRacesinOrbit Nah. I'd rather a woman that wants me rather than one that just looks pretty. :)
 
11:41 AM
I couldn't find anything banning it in C99.
 
@R.MartinhoFernandes oh, interesting sounding lib(s)...
 
@sehe It more or less isn't.
@sehe Wait, what do you mean by reentrant? I see no global variables or anything of the sort.
 
I don't see what re-entrancy and const-correctness have to do with each other.
 
@wilx Well, ideally my dream wife would want me as well as looking pretty
 
> Note that the double-underscore is reserved for
use by the compiler, but (1) there is nothing
reserved for "middleware", i.e. libraries
desiring to avoid conflicts with user symbols
have no other good options, and (2) in practice
no compilers use double-underscore in the middle
rather than the beginning/end. (Unfortunately,
there is at least one videogame-console compiler that
will warn about double-underscores by default.)
The guy seems to be aware of this but ignores it.
 
11:46 AM
@R.MartinhoFernandes it's littered with function local statics
 
user3010322
@Rapptz namespaces are hard, apparently.
 
@Puppy ^^ as long as the statics are immutable, there is no issue
 
@sehe Static buffers?
 
@LightnessRacesinOrbit Ideally? Will you be content with wife that does not fit this part of your ideal? :)
 
user3010322
@Rapptz Why would it? Everything has to be in the global namespace and there's fucktons of legacy code. You're basically tell everyone "hey all your old code is absolutely invalid."
 
11:46 AM
As, unchanging lookup tables.
 
@ThePhD stb_ vOv done...
 
@Rapptz I have looked at all occurrences of the word "underscore" in the C89 standard, and I could not find anything about two successive underscores, except at the beginning of an identifier.
 
@R.MartinhoFernandes unclear. At least they're not marked const
 
@R.MartinhoFernandes I take it back, you article about namespaces really is required :(
 
awkward pose, unbalanced composition (why the void, why the heavy clouding on the back side). Very very pretty face. Distracting noise here though: http://i.imgur.com/R9qNOV4.png
(Assuming ugly-ass border some unwarranted screenshot cropping?)
 
11:47 AM
You need those for compression and CRCs and stuff.
 
@FredOverflow Yep.
 
Xeo
@sehe "littered"? There's two.
 
@R.MartinhoFernandes I do realize. Not having them marked const makes me nervous (I would look through the code before deciding)
 
@Rapptz You mean you did the same thing?
 
11:47 AM
Yeah except for C99.
 
@Xeo I think 3 caught my eye within the first 11s of looking.
 
@LightnessRacesinOrbit Hmm. Which one are you OK without? Not pretty or not wanting you? :D
 
@R.MartinhoFernandes They're all immutable, except for one which is technically mutated in a C-style rolled-my-own-nontrivial-initializer way.
 
@Rapptz I don't have that standard at hand. What does it say on the issue?
 
@Xeo seven in the file
 
11:48 AM
doesn't disallow double underscores except in the beginning
 
@Xeo and frankly even one is "littering"
 
ok cool
 
@Xeo There's more than that in the writer- more like 6 or 7. But none of them actually pose a re-entrancy problem. One of them poses a concurrency issue but that's it.
 
@wilx you know
 
11:49 AM
magic statics!
 
anyway time to go
 
@LightnessRacesinOrbit No, I do not. I can only assume based on what I want/know. :)
 
@sehe I haven't seen the code in years (which is why I struggled to find it again), but when I first found it I looked over the code and it seemed quite good, even if full of C-isms (like 'fuck const')
 
Xeo
@LightnessRacesinOrbit Robot linked to one specific function, and I only see two statics in that function.
 
11:50 AM
@R.MartinhoFernandes Ah that helps. First time I encountered this. Didn't look at it long
 
@Rapptz Do you know the reason why C++ disallows double underscore in the middle?
 
Not sure. I find it a bit odd too.
 
Well, that solves the PNGing.
 
@BartekBanachewicz I doubt you care, but I feel I should ask any way; MIT licence for gldr?
 
Now it's just the actual painting of the pixels, and maybe SVGing.
@thecoshman goo long; didn't read
 
11:55 AM
how do I delegate constructors in virtual inheritance? coliru.stacked-crooked.com/a/1a606e2c68fa5b2e
 
@R.MartinhoFernandes vOv use to the logic and port to C++
 
(the real world issue in an exception hierarchy)
 
@thecoshman y
 
user3010322
I'm writing my own C standard library!
 
I thought it's taking me forever to build my tiny secondary house, but according to this, I am right on the dot. (Wrong country, but ...)
Houses built on owner’s land take longer – about 8 months if built by a contractor and more than 11 months if they are owner-built (i.e., where the owner of the land serves as a general contractor). Single-family homes built for rent take, on average, between 8 and 9 months from permits to completion.
 
user3010322
11:56 AM
It's so great. +_+
 
@ThePhD just copy the implementation from libc
 
@BartekBanachewicz GPL
 
user3010322
@BartekBanachewicz Professor will probably know in a heartbeat if I did that.
 
@ThePhD yyyyyyy
 
5
A: MIT/BSD licensed (fairly) portable C Standard Library with sources

duskwuffClang is just a C compiler -- it doesn't include a libc (other than a couple of functions it'll optimize, but the definitions of those will be extremely clang-specific). If you're after a MIT/BSD-licensed libc, bionic libc (as used in Android) is a decent bet. newlib may also be of interest.

 
11:57 AM
@ThePhD don't forget restrict
 
user3010322
@thecoshman ~~~University~~~
 
user3010322
@Mgetz The hell is restrict ?
 
@ThePhD it tells the compiler that pointers can't alias
 
extern "C" char* __strchr_chk(const char* p, int ch, size_t s_len) {
  for (;; ++p, s_len--) {
    if (__predict_false(s_len == 0)) {
      __fortify_chk_fail("strchr: prevented read past end of buffer", 0);
    }
    if (*p == static_cast<char>(ch)) {
      return const_cast<char*>(p);
    }
    if (*p == '\0') {
      return NULL;
    }
  }
  /* NOTREACHED */
}
oh man
 
@ThePhD how the hell can you write a libc and not know about restrict? I prevents pointer aliasing
 
11:57 AM
MY SCREEN REAL ESTATE
 
user3010322
Lel.
 
@Mgetz no it doesn't prevent pointer aliasing
 
user3010322
Get rekt.
 
@Mgetz it allows the compiler to generate code that assumes pointer aliasing doesn't exist
 
11:58 AM
29
Q: Why is Default constructor called in virtual inheritance?

Simon DesfargesI don't understand why in the following code, when I instanciate an object of type daughter, the default grandmother() constructor is called ? I thought that either the grandmother(int) constructor should be called (to follow the specification of my mother class constructor), or this code should...

 
@BartekBanachewicz stop with the code dumps man
 
@orlp from that question it sounds like you have the prototypical good SO question (although I admit I don't know what you mean - yet)
 
@thecoshman mispaste
@ThePhD still, you can just clean up that code i s'pose
 
@BartekBanachewicz you're a miss paste!
 
@ThePhD same professor who insists on dumbing you down? Un. Fucking. Likely
 
11:59 AM
everything is better than writing code
 

« first day (1608 days earlier)      last day (3355 days later) »