« first day (1153 days earlier)      last day (3788 days later) » 

4:00 AM
man
here I am, wishing for std::cin based scanf again. :(
 
Or at least, type-safe stand-alone versions of them.
 
@MarkGarcia lol
 
user3010322
@Rapptz As much as people knock on it, C stdio is was ez as pie.
 
user3010322
Also, the fuck is dlsym and dlcreate and shit in Linux
 
user3010322
Is this some kind of special library that GCC's trying to link in, but can't?
 
4:04 AM
yeah, disregarding the whole type safe issue it was pretty neat
 
user3010322
When I design bus, I'm going to take the ideas of C Std IO, minus locale formatting.
 
user3010322
I'm going to use free functions to do reading, so that it's specializable
 
user3010322
I'm going to have each stream class be implemented WITHOUT an inheritance tree AT all.
 
user3010322
And then to unite the interfaces, you can request a RuntimeStream<CompileTimeStreamTypeHere> and use that wrapper to make it work.
 
user3010322
The only inheritance will be compile-time inheritance, such as CRTP and other things.
 
4:07 AM
@ThePhD look at python's new-style formatting
 
user3010322
@nightcracker new-style formatting?
 
user3010322
I'm not interested in string formatting or locale formatting or any of that. If you want that, make a Reader with your specific poisons.
 
"{} type-safe too, because {} is the answer to ...".format("it's", 42)
 
@ThePhD "{}".format(...)
 
user3010322
How do you repeat items?
 
4:09 AM
"{0} it's done like this! cool huh, {0}?".format("ThePhD")
 
"{0}, {0}, {1}"?
 
user3010322
So {} just defaults to "increment and next" ?
 
yes
 
user3010322
So its' C#'s syntax with shortcuts?
 
yeah
 
4:09 AM
you can't mix {} with {0} though
 
user3010322
Works for me. I like shortcuts.
 
yeah it'll error
 
user3010322
Boring!
 
so you can't say {0} and {}
well you could make it have sane behaviour
"increment and next"
but I can understand disallowing it too
 
user3010322
"{0} {} {2}".format("This", "should", "work");
 
4:11 AM
>>> "{0} {} {2}".format("This", "should", "work")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: cannot switch from manual field specification to automatic field numbering
 
stop being lazy
 
user3010322
"{0} {} {2} as {1} {0} kind {}".format("this", "should", "work", "of thing");
 
that's probably why it doesn't work, it becomes unmanageable and retarded
 
This should work as should should kind work?
see?
you're already fucking up
 
user3010322
"This should work as should this kind of thing."
 
4:12 AM
on an arguably very simple example
prime example of why it's not allowed ;)
 
user3010322
I want to be able to back-reference, though.
 
anyway, I have that in gears sorta :v
 
@ThePhD backreference as in how?
in python it's very poweful though
 
user3010322
"Go {} in time to the {0}slidden ways of the past!".format( "back" );
 
"{0[0]} element, {0[1]} element".format(["first", "second"])
 
4:15 AM
yeah Python's format is a bit imba
 
"it even has key:{[key]} support".format({"key": "value"})
 
"{0}, {1}, {0}".format(*my_tuple) where my_tuple = (10, "hello") is neat too.
 
"get {get}".format(get="funky")
IMO the way python does print is pretty optimal as well
by default it appends a newline
print("hello world\n", end="") works too if you insist on doing newlines yourself ;)
 
user3010322
Fucking dl library
 
#define CRITICAL_ERROR(x) throw critical_error(dynamic_cast<std::ostringstream &>(std::ostringstream() << std::dec << x).str())
usage: CRITICAL_ERROR("Window creation failed: " << SDL_GetError());
 
user3010322
4:24 AM
critical_error err( "Window creation failed: ");
err += lexical_cast( SDL_GetError() );
 
so that's one line for each argument, space seperator, etc
and then you still have to throw it
 
user3010322
template <typename T>
void ThrowSDL( T&& arg ) { critical_error err( std::forward<T>(arg) ); err += lexical_cast( SDL_GetError() ); throw err; }
 
@nightcracker Why on earth would that be a macro?
 
@DeadMG so you can call it with formatting straight in the call
 
er, tried "return"?
 
4:27 AM
I mean
@DeadMG CRITICAL_ERROR(1 << 2 << " lol that's 12");
can't do that with a function
 
SB.
how would you guys convince someone that unit testing by means of diffing a test program's output against known good output is incorrect? Basically the test program generates output, a human determines if it's correct, and then future tests are compared against it. It's just wrong to me. Instead of writing asserts in the test, it's basically a bunch of freakin sprintfs
 
void critical_error(T&&... args) { std::ostringstream str; swallow { str << args..., 0 }; throw critical_error(str.str()); }.
critical_error(1, 2, " lol that's 12");.
 
that works?
 
of course it works.
er, I might have fudged the whole swallow thing.
 
user3010322
Oh. That stupid swallow trick.
 
4:29 AM
needs a little bit of modification but the basic idea does
 
what exactly is swallow
 
I almost certainly did fudge the swallow thing.
but else, it works.
 
user3010322
@nightcracker You define it as a using, usually.
 
user3010322
using swallow = char[]
 
user3010322
Then, you're playing with the idea that C++ can have statements that have no return comma-grouped with something like 0
 
4:30 AM
@nightcracker Basically, it's a variadic expansion hack that guarantees LTR expansion and expand as a statement.
 
user3010322
using swallow = char[];
swallow{ 0, ( std << args..., 0 ) };
 
user3010322
Something like that, IIRC.
 
why using?
 
user3010322
brace-init-lists evluate left to right, and it's a char aray
 
user3010322
Um
 
user3010322
4:32 AM
You can use typedef, but it's a bit harder?
 
why typedef?
 
Better have a class with a templated variadic constructor.
 
user3010322
If you REALLY want it, char[]{ } go crazy
 
@nightcracker Because the grammar doesn't really permit char[] { ... }.
 
user3010322
I'm not even sure that compiles
 
4:32 AM
doesn't char swallow[] = {...} work?
 
yeah but that's more effort than just swallow { ... }.
 
no
because you'd still need the using declaration thingy
 
true
 
user3010322
You can top-level declare swallow.
 
4:33 AM
but you can just put that at global namespace or something.
 
user3010322
using swallow = char[];

...

#include <swallow> // 4lyfe
 
#include <420swallowit_fgt>
 
so basically
yes, you totally can do that shit as a function.
 
ok thanks
didn't know that
 
in C++11
 
4:34 AM
in particular that blabla << args... would expand the <<'s
 
in C++03 it's messier but still doable.
 
@DeadMG ok now I'm wondering
 
@nightcracker You throw from the destructor.
 
I don't get it. How does char swallow[] { expressions with various types... } work?
 
because you're making an array of '\0'
 
4:35 AM
@MarkGarcia Comma operator. They all have the same type (and value)- 0.
 
comma operator remember?
 
why is it needed though?
 
it's just a bunch of zeroes.
 
what would be wrong with str << args...;?
 
@nightcracker Firstly, regular pack expansion doesn't guarantee order of evaluation. Array initialization like that, however, does.
 
4:36 AM
when did we add ?
 
You mean the expressions are converted to zeros?
 
and secondly, pack expansion is seriously limited.
 
@nightcracker Secondly, that doesn't work :)
 
@DeadMG I should really look into the semantics of pack expansion
never used it
 
so you have to do a work around
 
user3010322
4:36 AM
You can't nest expression in pack expansion.
 
@MarkGarcia No, they're evaluated, the result is thrown away, and then the comma returns zero.
 
user3010322
type_get<Ts>( std::forward<Ts>( args ) )....
 
user3010322
NOT ALLOWED.
 
@DeadMG Oh. Another awkwardness for me with the comma operator.
 
ultimately
the mechanism behind the swallow trick isn't really important.
 
user3010322
4:38 AM
Just that it works
 
I made swallow into a macro
 
user3010322
Also FUCK DL
 
hmmm, why doesn't C++ allow C's initialization syntax: { ['A'] = 1, ['B'] = 2,… };
 
what's important is that it guarantees LTR ordering, the optimizing compiler can trivially remove any run-time code generated, and it permits arbitrary expressions.
 
@Rapptz is that std::forward necessary
 
4:38 AM
@GlennTeitelbaum No compelling reason to add it.
 
@nightcracker perfect forwarding.
 
user3010322
Without it, you could make copies of arguments
 
user3010322
which... isn't really a good idea when you're passing around solid char[n] arrays
 
well, let's face it
the semantics of << in this scenario pretty much involves a copy.
 
user3010322
Pretty much.
 
4:40 AM
it's highly unlikely that you'll get a performance gain from a move into a stream.
the only case I can imagine is if you had a small stream buffer and you tried to use a large string, the stream might take the string's buffer.
 
Gravity is such a bad movie
Why did I watch this
 
user3010322
Id ont' know what this fuckign dl library is lua keeps asking for
 
user3010322
Because you're a dirty masochist.
 
@Rapptz You won't know if it's bad until you watch it. I don't trust reviews until I see it myself.
 
Well it's horrible.
Don't watch it.
 
4:41 AM
@Rapptz You were doing a takeoff on "Operation Enduring Freedom", doing "Operation Enduring Boredom".
 
@ThePhD Unix dladdr and similar APIs.
 
I'm starting to think @Rapptz has been afflicted by the Curse of Endless Boredom ;)
 
it's for require that can load C functions from a DLL.
 
@DeadMG Still, argument/parameter passing would be more optimal.
 
user3010322
@DeadMG Well that explains a lot. APparently I have to link it in manually, which is bollox.
 
4:42 AM
@MarkGarcia I agree that it's strictly more optimal to perfect forward.
@ThePhD Wat? I linked LLVM which uses it with just -ldl linker flag no problem.
 
user3010322
@DeadMG That's what I mean. I need to actually give the- ldl flag.
 
user3010322
If it's a lua dependency it should have been grafted into lua, is what I'm getting at.
 
eh, IDK
oh, no.
no no no
it's a fucking OS API.
the only insane thing about dl is that it's not linked by gcc by default.
but Unix is like that with pthreads and stuff as well, so it's not exactly inconsistent here.
 
When is the homework due? — Borgleader 11 secs ago
This is my new favorite response
(until SO ban's it of course)
 
user3010322
@DeadMG Bleh. :c
 
4:46 AM
@Borgleader You should make a site like that game cost calculator but for homeworks. :)
 
user3010322
@Rapptz Lua builds now with all tests, including the ones we developed based around getting and setting table-based functions:
 
user3010322
/cc @BartekBanachewicz @kbok
 
user3010322
With that, I think we've covered all of Lundi's currently present functionality and all of sol's functionality. Now we just need to introduce a strong sol::object (e.g., one that uses variant on the inside or something like it) so we can have useful operator[]
 
@ThePhD Wait. Rapptz's Projects > Gears https://flamingdangerzone.com/ogonek/?
 
4:48 AM
I'm telling you
reimplement the VM
 
user3010322
@MarkGarcia Shrug.
 
user3010322
@DeadMG What's the point of doing that?
 
user3010322
The LUA API is already there. We have wrapped all the important parts as thinly as possible.
 
hi, I create a new Repository and build one master branch. There are something for test. And then I build another branch called gh-pages behind master branch. what I'm wanna to do is remove all the items in master branch first and then shift items in gh-pages to master. then, I will remove gh-pages branch by the end. how to do it?
 
user3010322
The only thing we could possibly use now is full-class-binding, but that's kind of overkill and somewhat of a waste.
 
4:50 AM
@MarkGarcia Cat copy pasted ogonek's config to mine
 
> I read this book and was blown away. I would never have believed that not eating was possible. I tried the technique and, sure enough, I don't have to eat! Now, she does say that people who have achieved the technique can still eat if they want to, for pleasure. So that's what I do. I eat three square meals a day plus snacks, every day, just for fun. But I think it's great that I am finally free of food. Hooray!
Amazon review for this book.
 
@EtiennedeMartel lol
 
@EtiennedeMartel Enjoy
 
> with liquefied dark matter, of course
 
5:01 AM
@EtiennedeMartel Is she dead?
 
@Rapptz I don't think so.
 
user3010322
She saves herself with some occasionally cheesecake and chocolate.
 
user3010322
Like a bum.
 
Jasmuheen (born Ellen Greve; 1957) is a proponent of "pranic nourishment" or breatharianism, defined as the practice of living without food or fluid of any sort. She makes appearances at New Age conferences worldwide, has hosted spiritual retreats in Thailand, and sells many self-penned books and audio recordings on her website. Early life Jasmuheen was born in 1957 in New South Wales, Australia of post-war Norwegian migrant parents. Breatharianism Jasmuheen developed her financial and business management skills, working full-time in the finance industry. From 1992, she began to combine...
> Four deaths have been directly linked to breatharianism and Jasmuheen's publications.
 
@MarkGarcia Bahaha xD That is just awesome
 
@EtiennedeMartel darwin award pls
 
@MarkGarcia UnitedNuclear has all sorts of fun stuff.
 
> This has been a total lifesaver. It allows me to prop my sheet music against the wheel, allowing me to play the guitar with both hands while driving.
lol
 
5:18 AM
@JerryCoffin Hmm wonder if they have shipping restrictions for some countries
 
@GlennTeitelbaum Yes--at least the radioactive isotopes can only be shipped inside the US.
 
Hi all! :D
 
How to Avoid Huge Ships is a 1982 book by Captain John W Trimmer, an experienced small boat captain. The first edition was self-published from Trimmer's home in Seattle, and carried the subtitle Or: I Never Met a Ship I Liked. It is a maritime operations guidance book, but also attracted some attention due to its title, which some found to be unusual, incongruous, and humorous. Intended for a specialized audience (the captains or operators of small private boats such as yachts and trawlers), the book gives advice on appropriate avoidance actions when confronted by the near presence of a ...
I can't...
 
then dont
where could I find clang for windows builds again?
 
Hmmm - so I rewrote this, anyone thinks it now deserves a downvote?
2
A: How do you convert char numbers to decimal and back or convert ASCII 'A'-'Z'/'a'-'z' to letter offsets 0 for 'A'/'a' ...?

Glenn TeitelbaumThere are two main ways to do this conversion: Lookup and Mathmatically All ASCII values are denoted in decimal notion in this answer Note that in ASCII: '0' is 48, 'A' is 65, and 'a' is 97 Lookup: In the lookup version you have an array of char, and then place the mapped values in the array...

 
5:26 AM
@nightcracker llvm.org/builds
 
thnx
 
And I typed that, meaning I often open it.
 
Yes, I know - I shouldn't let downvotes bother me, but, well I do
 
5:54 AM
I cracked my knuckles
 
all so busy these a few days, no time 2 troll ...
 
6:11 AM
> In both the source and execution basic character sets, the value of each character after 0 in the above list of decimal digits shall be one greater than the value of the previous.
huh, TIL that's required supposedly.
 
no rubber boat in the sea today, way to busy for leisure :'(
 
6:49 AM
Hello, nice to meet you
 
@user1920482 hello, and welcome
 
thank @GlennTeitelbaum, seem like a bit quiet here
:)
 
7:13 AM
@ThePhD ^ Yup, job still running
 
user3010322
@sehe Exponentially harder, huh?
 
@ThePhD That's what she said.
 
@ThePhD mmm. I don't think so. Just dog slow after the initial n merges :) It's now at 70/87 progress
 
user3010322
@Mysticial Haha
 
If it's (converging to) linear time I'd expect it to complete in an hour and ~5 minutes
Algorithmically It should really be linear, algorithmically, although random-access on large memory mapped files has the capability to dominate the runtimes by paging...
 
7:34 AM
@BartekBanachewicz Thought you might be interested in this: vimeo.com/75698788 + source: github.com/domme/VoxelConeTracing
 
@EtiennedeMartel I imagine this would be real funny if she was also really fat. Picturing a 170 kg woman delivering this speech at some convention.
"No I never eat."
 
She works in the finance industry, but is devoted to not eating and makes money from selling work shops ... sounds "interesting"
"Four deaths have been directly linked to breatharianism and Jasmuheen's publications.[8][9] Jasmuheen has denied any moral responsibility for this"
 
chello
 
@ScarletAmaranth hello
 
7:50 AM
@GlennTeitelbaum ello
 
@StackedCrooked llo
 
sad Scarlet is sad, getting not a single explicit hello
 
we don't like you enough
 
@StackedCrooked clearly
 
Yay screens
Also, holy fuck, my desk is a mess.
 
8:03 AM
@R.MartinhoFernandes photoshop desk - supports layers?
 
So I'm curious, are there any (public) statistics about the breakdown of the average SO users? Like browsers, OS, etc? Be interested to know how the "average" user stacks up
 
They publish some stuff every year in the blpg
 
@ScarletAmaranth Scarlet apparently still has me on ignore :(
 
@Scarlet what?
haha
One person you ignored did say 'hello', haha
 
the glenn guy :D?
 
8:05 AM
Yeah
 
my life is sad :)
 
@ScarletAmaranth It's very nice to see you here - your very presense lightens up my day
 
lol
So desk cleaning and screen setup after work. I don't have a box that can handle all yet, anyway.
 
@R.MartinhoFernandes 6 monitors have arrived?
 
Hey @R.MartinhoFernandes, I'll be in paris starting from the 26th, if you want to grab a beer
 
8:10 AM
@kbok cool. Email me so we can exchange contact information, then.
@Scarlet yeah. The machine will take a while more.
 
@R.MartinhoFernandes But strangely I know his email address
 
@R.MartinhoFernandes feel encouraged to send a screen when it's set-up :)
 
user1804599
> Uranium Ore
 
user1804599
> Ordering for Christmas?
 
JBL
Morning !
 
8:24 AM
@JBL Morning
 
@Borgleader Aaaaaa!!!
@R.MartinhoFernandes aaaaaaa
@R.MartinhoFernandes was the package big? That's what she said.
 
user1804599
Dammit.
 
user3010322
@Xeo I died next to 20 diamond, after getting through a magma layer and ice layer of the largest planet in the Solar System /cc @CatPlusPlus
 
user1804599
Because they get load after the onload event has been triggered. vOv
 
8:30 AM
@Avery and C++ room is the right place to ask that?
 
@Avery Welcome to the best chatroom on Stack Overflow! New here? Please read our rules before posting.
 
you should link to the rules dummy.
 
Yeah, totally thought I was in a different room. My bad. Sorry about that..
4
 
@BartekBanachewicz I don't know how that's done, only been here for ~2 years.
 
@ScarletAmaranth one would think that two years is plenty -.-
[name](url)
 
8:32 AM
@BartekBanachewicz you think ^^?
 
@Bartek I have to say that the packaging is quite compact.
1.3m x 0.8m x 0.5m perhaps
Nice thing is that I can daisy-chain power, so there's no mess of power cords
Need to ask my flatmates if anyone has a screwdriver around.
Why all the silence? JavaScript is a great language.
 
user1804599
8:52 AM
Because almost nobody talks.
 
@R.MartinhoFernandes If you want to stir up a brouhaha, try with PHP instead.
 
I think I can start taking German seriously.
I.e. I can get in the habit of saying 'genau' all the time.
 
Or date German girls
 
user1804599
Better than “GNU.”
 
I would love to see a tall muscular German girl vs robor ... would be fun match to watch ...
 
8:59 AM
I'd run. Knowing when to lose is a feature.
 

« first day (1153 days earlier)      last day (3788 days later) »