« first day (1931 days earlier)      last day (3019 days later) » 

user1804599
9:05 PM
wait, what
 
user1804599
the mayor who censored journalists was not instantly fired and sued
 
user1804599
WTF
 
user1804599
Rather, he was praised for it by the relevant commissioner of the king.
 
Xeo
Welp, restart seems to have fixed that problem
Now VsHub.exe is crashing every five seconds, though. FFS.
 
user1804599
Also lol North Korea-like: mayors are still chosen by the king and not by the people.
 
Ell
9:13 PM
Hmm
amixer is unusually slow o.O
 
user1804599
@fredoverflow On USA ones they certainly are.
 
I'm brack.
 
user1804599
I'm brick.
 
Hello brick.
 
@MadameElyse as if the people would choose wisely
@MadameElyse what happened?
 
9:20 PM
> TIL the state of Ohio gives out different colored license plates for those convicted of DUI
lol that's a good idea
 
user1804599
@sehe classic D66
 
@AlexM. so it’s like a reward
 
Ell
elliot@funbox ~ $ time amixer get Master
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 28 [44%] [-36.00dB] [on]

real	0m2.098s
user	0m0.010s
sys	0m0.002s
 
I'd be ashamed if I had to use one
 
@MadameElyse I'm pretty sure you got that reversed. Anyhoops, what was the censorship about?
 
Ell
9:22 PM
wat on earth is taking it so long
 
user1804599
 
user1804599
@Ell Poorly written code.
 
Woah. That's not a biased site by any chance
 
user1804599
Never overestimate the quality of software.
 
Ell
usually it updates quick enough for me not to notice
 
user1804599
9:23 PM
@sehe All news sites are biased.
 
Ell
I think some recent update did it
 
@MadameElyse Nice cop out you got there, son
 
user1804599
there is also metronieuws.nl/nieuws/binnenland/2016/01/… and state-funded propaganda channel nos.nl/nieuwsuur/artikel/…
 
@sehe I'm afraid I don't have an answer to that?
 
user1804599
Also KeinStil but you hate that.
 
9:27 PM
@Borgleader I was merely explaining why I think the question is relevant :)
@MadameElyse Wie wissen Sie das?
 
user1804599
Geheugen.
 
Oh weet je. Steen Geil is ook verandered.
 
52 mins ago, by Puppy
I sneezed
@Puppy such useful information
 
user1804599
GeenStijl is great if you ignore all posts by Matthijs van den Beukel.
 
Puppy reports about any bodily output.
 
9:29 PM
@Nooble mumble?
 
@MadameElyse I don't follow closely enough.
 
@EtiennedeMartel I'm breathing out carbon dioxide right now.
 
@EtiennedeMartel I wonder if he feels some obligation?
@Puppy Amazing :P
 
@TonyTheLion Well, knowing he's still alive is useful.
 
@EtiennedeMartel True, but wouldn't the mere fact that he's chatting indicate that he's still alive?
 
9:30 PM
@TonyTheLion Maybe.
 
I have yet to see a dead body chat here.
I guess on the internet nobody knows you're dead
 
but then again, on the Internet, nobody knows you're a zombie
 
...And I just referenced 'DeepMind' as 'DeepThought'
 
Guize.
 
@EtiennedeMartel For what, precisely?
 
9:32 PM
@Puppy BECAUSE I CARE ABOUT YOU
 
lua["a"] = lua.create_table();
I have to do that thingy
 
@ThePhD How production-ready is Sol, by the way?
 
to... uh. Make tables.
@EtiennedeMartel Immediately production ready.
I just finished pushing the latest in a number of API fixes.
 
@EtiennedeMartel He's going around micro-optimizing everything so it's probably tremendously broken.
@EtiennedeMartel For any particular reason?
 
What? It compiles on all three major compilers!
And I've fixed everything, thank you very much!
 
9:33 PM
Wide compiles on all three major compilers
 
We have the unit tests to prove it. >:C
 
that doesn't make it production-ready
 
@EtiennedeMartel I'm still working on the docs.
Still, though. Creating a table isn't as... intuitive, as I'd like it to be.
 
lua_table l;?
 
@KhaledKhnifer awarded
 
9:36 PM
sol::table (as with sol::function, sol::...) all are meant to reference existing stuff.
 
@Magisch looking now livecoding.tv/sehe
 
I could... change the meaning of the default constructor, specifically in the case of table, to make a new table, but... that's kinda blechy?
For example, sol::function s; is just a thing that doesn't reference anything... it doesn't create a lua function.
I dunno of sol::table l; is proper?
 
@ThePhD There's nothing in that that makes me think that it's a reference.
 
vOv
Also, if you did lua_table l;, it still wouldn't be able to create anything (you didn't pass it the current lua_State*).
I wonder if there's a way to get the current thread's lua_State*...
 
er, the current thread?
 
9:39 PM
lua_State* is thread-specific. (Or rather, it's not MEANT to be shared between threads.)
 
@ThePhD You mean you can have only one state per thread?
 
@EtiennedeMartel Yeah, that.
 
@ThePhD That's a completely different thing to associating a state with a thread.
@EtiennedeMartel No, it's the other way around. A lua_State can only be operated on by one thread at a time. Threads can have a bajillion states. It's a plain completely unsynchronized jobby, nothing special.
 
What puppy said.
Don't judge me, I need to sleep. u.u;
 
9:40 PM
I don't think it should be the library's responsibility to manage synchronization, though.
 
Yeah, me neither. So... vOv
 
Ell
@ThePhD wat no. I'd expect the default ctor of sol::table to create an empty table
what else does it do?
@ThePhD that sounds icky to me
 
@EtiennedeMartel I could see it explicitly permitting concurrent operation on a state, but if not, then it should definitely not manage it.
 
Ell
I would rather there not be a default constructor in that case
same for table
 
9:41 PM
@Ell Nothing. It's a null reference to a table that doesn't exist.
 
@ThePhD If someone wants to associate a thread with a state, just put the state as a thread-local variable or something.
 
Ell
See I would much rather not have null references :3
but then lua has null references doesn't it. Hmm. idk. I had this problem with my JNI wrapper
 
I know nobody would, but in order to make a table you need the lua_State*, which is why Rapptz wrote it to be lua.create_table(); to actually make a table.
 
@Puppy I don't think that's an issue if every type in the library is a handle to another object.
 
Ell
@ThePhD yeah that's fair actually
 
9:43 PM
Problems arise if some types are handles or references and others are not.
 
Ell
that's true. Of course.
the table wouldn't know which lua_state to use
 
It just feels icky, because at some point, you'd like to do lua["a"] = sol::table(); or something.
 
@EtiennedeMartel So does the standard library :P
 
yeah, so in lua["a"] you have the lua right there.
 
I'd have to special-case it. Check if sol::table is a null reference and then create one if it doesn't exist?
 
9:44 PM
no
just treat it like a plain value.
 
Xeo
sol::make_table() -> return proxy object -> create actual table in operator=(make_table_proxy)
 
Ell
you could overload lua so assigning to newtable (of which sol::table() is an instance of) it will create a new table
 
Xeo
Would be another way
 
Ell
like nullptr_t :V
 
@EtiennedeMartel Thread-safe things are easier to use
@ThePhD Eh, you don't have to make things default-constructible if they don't have sensible default value
 
9:45 PM
There's a safer way to do the modifiable version listed here... should I post it as a separate answer or edit the accepted answer?
13
A: convert vector<string> into char** C++

GalikIt is possible to solve the problem without copying out all the std::strings as long as the function does not modify the passed in char**. Otherwise I can see no alternative but to copy out everything into a new char**` structure (see second example). void old_func(char** carray, size_t size) { ...

 
If you don't post it you don't get ~~~internet points~~~~
 
@CatPlusPlus In lua script, tables are kinda "default constructible" (with t = {})... honestly, this is more just trying to make the API easier to use.
 
Ell
@ThePhD it just sounds like a bad idea
 
I was talking about function
 
Ell
FEZ is great
 
9:47 PM
I don't see why you wouldn't make an empty table in default ctor
 
@CatPlusPlus Yeah, but all I did was swap out new and deletes with a std::vector and .front(). I do want the internet points a little, but... like you said, they're just internet points.
 
@CatPlusPlus Because that would require sensibly treating the table as a value.
 
Not really, it can be non-copyable but still default-constructible
And moving shouldn't be an issue
 
Ell
@CatPlusPlus it requires having a lua_State I think is the issue
 
@Ell Not really.
 
9:48 PM
Lua needs objects to be registered or what
 
Lua tables can't express any especially interesting semantics
you could get away in most cases by just storing a std::map and sticking shit in there.
 
@Magisch focusing
 
@CatPlusPlus Yeah, the idea is that sol doesn't really store data on its own, just references what already exists in lua or stuffs it in there.
 
Ell
but then the other lua stuff couldn't access that
 
9:51 PM
sol::table, sol::function, are essentially handles.
 
Xeo
@ThePhD so what about empty_table_tag sol::empty_table(){ return {}; } and operator=(empty_table_tag) then?
 
@Xeo That sounds like it'd work! But I think some people might think that auto table = sol::empty_table(); might be legit or something.
 
Ell
empty_table_tag is much better than newtable
@ThePhD that's true actually
 
Eh, whatever. It'll have no member functions or anything so it's not like people will use it. They'll just be disappointed.
 
Xeo
Or a proper table proxy that stores a std::(unordered_)map and the operator= transfers that to the lua state
 
9:54 PM
 
@Magisch yeah just voted to delete this. The answer doesn't add anything at all and the initial answer completely missed the point.
 
Buh. Design is hard.
Still, @Xeo brings up a good point in that there's no way to smoothly and cleanly make a table from a bunch of C++ values.
Also awjhdawkdawdjhwkd wtb tuple literals
For, e.g.
 
@fredoverflow yes
when you press shift on it it gives you the pipe |
 
-1
Q: How to learn mac coding by ourselves?

user5859110What's the best way to learn python, c++ and java in MAC by OURSELVES. Please recommend some books and tutorials.

shift key hiccups
 
How many of you are there? — Alex M. just now
 
user406009
9:58 PM
@ThePhD alias std::make_tuple as something short, and you can have something that's almost a literal.
 
@ThePhD You should be designing stuff for your audio library.
 
Xeo
|¦|
 
@Xeo :|
 
Xeo
it's a street!
 
Ell
|¬|
I don't know how to use that key :(
| | |
 
user406009
10:00 PM
@Shoe your commit has already been merged. I just need to republish to the Google store thingy.
 
template <typename... Tn>
sol::table_proxy make_table ( Tn&&... argn ) {
    table_proxy tp;
    make_table( tp, std::forward<Tn>( argn )... );
    return tp;
};

template <typename K, typename V, typename... Tn>
sol::table_proxy make_table ( table_proxy& tp, std::pair<K, V> x, Tn&&... ) {
     // Append and recurse
}

// WON'T WORK BECAUSE NO TUPLE LITERALS q___q
sol::make_table( { "a", "b" }, { 1, "c" }, { my_other_table, 1998 } );
 
Xeo
The most interesting part of the German keyboard layout is still µ
 
I need to update the tutorials and the documentation again before I'm allowed to push T_____T
 
Alternatively I could throw out the std::pair stuff and just take the arguments raw.
 
Xeo
@ThePhD just go with sol::empty_table()
 
10:01 PM
hang on why can I input ⌨
 
Xeo
It should be the most common case, and users can add stuff afterwards
 
how did this get in here
 
Xeo
sol::table table = lua["a"] = sol::empty_table()
table["a"] = "b";
etc
 
what is this
 
Weird. What do you do to lose exactly 2 rep?
 
Xeo
10:03 PM
get downvoted?
 
@AlexM. my keyboard layout lets me input a keyboard, and I’m not sure why
 
@caps Get downvoted.
 
Hmm, on a question or an answer?
 
@LucDanton quine easter egg
 
1
Q: C++ register pattern with static member works "sometimes"

matpenI am trying to implement automatic class registration at runtime (I think this technique goes under the name of "register pattern"). In the following example I am storing an int in a static member vector, but the goal would be to store function pointers that can be called later. My understanding ...

 
Xeo
10:04 PM
@ThePhD Or if you want to completely overhaul sol and treat the sol types as actual values and not handles, as per puppy's suggestion, make them behave a bit like shared_ptrs. You can create fresh ones or reference the ones in the lua state (and transfer them in and out). Dunno how hard this one is, since I don't know how the underlying lua bindings work
Just a few ideas to think about
 
I'm hesitant to do that because it'd introduce a massive overhead to do that kind of storage and checking. It wouldn't be hard, but it'd come with a LOT of implementation baggage... I think I'll stick to just having an idiom for this stuff.
 
@caps Just look at the list
 
hah
you've caught Committee Disease
"I don't want to implement actual features because the features may not be instantaneous, regardless of the fact that if my users need the feature they'll just have to implement it themselves with more bugs and higher overhead. I'll just lump them with basically no features instead."
 
FUCKING MIDDLE CLICKS REGISTERING TWICe
It's not the mouse
It's something broken in this goddamn OS
 
> I hear they’re hiring down at McDonalds. Enjoy your new job flipping burgers.
They really put that line in the official C++ FAQ.
 
10:14 PM
what kind of name is Flipping Burgers
 
Did they incorporate bits from the FQA?
 
No, FQA laughs at this line, so it must've been way earlier there
BTW. it's my birthday today
 
ok
(happy birthday)
(:P)
 
(thanks)
 
lol hen doesn't give a shit i.imgur.com/uPNwsqQ.gifv
 
10:20 PM
telkitty
 
yea
that's basically telkitty
and the cat is basically every lounger who ever had an argument with her
 
@milleniumbug Happy birthday, mate
 
thanks nabijacz
 
@Puppy The best I can do is provide a good way to make a table using lua.create_table(), where the syntax takes a variable number of paired arguments and constructs the table appropriate. I think that's a good way of handling it, giving people the ability to make tables as they please with the factory function (or just an empty one) while not having to taint sol::table or sol::function is bogus default constructors.
 
> Times Square with Adblock i.imgur.com/KWkLfac.png
I wonder if we ever get to have full google glasses & such
how would people react if IRL adblockers existed
 
10:33 PM
Well, no. I suck
 
Ell
I still don't see the advantage to a default ctor for sol::table
 
What are the features a Lounge<C++> IRC bot should have?
 
Xeo
@Ell sol::table is a handle, a raw pointer.
what is a default-initialised raw pointer? right, nullptr. Useless to do anything with
That's just how sol currently works
 
@набиячлэвэлиь one that makes everyone here use the IRC lounge
 
Stars!
@AlexM. That's not gonna happen.
 
10:44 PM
Okay, I think this looks.... decent.
Wait
Arrrrgh
Fuckin'
shitty
shit fuck damnit
wtb std::reserve_tag
Why isn't reserve_tag a thing for constructors by now?
... Yep, I need variadic set too.
 
Have fun :D
 
Xeo
@ThePhD ... why, again?
 
@Xeo Efficiency.
 
Efficiency or performance?
 
Current framework with, e.g., 4 items:
set - push table, push key, push value, pop table
set - push table, push key, push value, pop table
set- push table, push key, push value, pop table
set- push table, push key, push value, pop table
4 minus 1 extra push table / pop tables than necessary.
@Morwenn I guess performance
 
10:53 PM
Just because a constraint is a restriction, does that make every restriction a constraint? — Columbo Oct 29 '15 at 9:15
@Columbo what are you doing there meddling with :)
 
11:05 PM
I.... think I need help naming this.
Humour me for a minute with the weird syntax, but there's 2 kinds of gets I have
The first is just called get. It gets 1, 2, 3, 4, ..., n items from a table, with the syntax
std::tuple<int, int, int, int> quad = table.get( "a", "b", "c", "d" );
Then, there's another kind of get, a "tunneling" get:
 
user1804599
y u no auto
 
To demonstrate.
int single = table.get("e").get("f").get("g").get("h");
Obviously, that's non-ideal syntax.
 
user1804599
No, it's fine.
 
Xeo
@MadameElyse cuz a table can contain anything, I think he uses a proxy to get the right type at the end?
 
Is there a short name I can give this?
@Xeo Thaaat too.
 
user1804599
11:08 PM
Design minimal APIs first.
 
The minimal API is done.
 
user1804599
Design convenience APIs on top of them.
 
This is performance and tweaking.
 
user1804599
Don't make convenience APIs replace them.
 
user1804599
You'll get massive problems if you do.
 
11:09 PM
Maybe I'll call it table.tunnel( "e", "f", "g" ); or something.
 
Xeo
@ThePhD Lua table keys can legally contain dots or similar, right?
 
@Xeo Yeah, any string.
 
Xeo
Might try it like Boost.PropertyTree - by default the subobject delimiter is ., but you can change it at call-site to whatevs (if a key happens to include that delimiter)
table["e.f.g"] or table.get("e:f:g", ":")
 
@Lorant You should replace the teacher. :) — unwind Oct 23 '15 at 12:04
spot on
 
Tutorials, example and documentation: done.
Fuck, I should stop being so productive.
 
11:16 PM
@Morwenn No, don't stop!
Do it more.
 
Wat.
 
Being productive!
 
Still 15 issues to go.
 
I'd help but CMake ruins my mood to program.
I'm still in withdrawal from OpenEXR.
 
Haha :D
 
user1804599
11:19 PM
Thermodynamics is really rad.
 
9 issues are marked with so 6 immediate issues to go.
 
@Xeo That is genuinely awful
 
Xeo
vOv
 
because you're taking program semantics and then randomly encoding them in strings and then randomly trying to guess what the original semantic was.
just write the damn code that expresses the semantics you need - job done.
 
11:25 PM
@Morwenn nice!
 
I love you guys!
 
@CaptainGiraffe <3
 
bah
I'm actually tempted to purchase this laptop.
it's the stupids.
 
what happened to make you profess your love for Lounge so suddenly?
 
11:28 PM
he came in and saw me chatting
 
@jaggedSpire Not really: I'm clueless about how to solve two of them, one might as well be tagged , one is booooring, and another one required me to come with a design idea.
 
@Puppy understandable then
 
It's in the transcripts.
 
@Morwenn awh
 
Which leaves one issue: how to make ubsan work on Travis with clang++.
Actually, I didn't think I could already solved the latest issue I closed.
 
11:30 PM
@Borgleader Lets go live here <3
 
TonyTheLion is the seed. sehe is the viral instigator. I'm merely the vessel.
 
@TonyTheLion Wow! Nice. Except getting drunk and drowning in your own "garden" hazzard.
 
The windows aren't big enough to fully enjoy the sun.
 
Nice though.
 
11:32 PM
Seems nice enough
 
So, what am the do naw...
Eh, I guess I'll just go to sleep.
 
good night <3
 
@Morwenn night <3
 
@TonyTheLion @jaggedSpire See you another day <3
 
I really like this sandwich
@Morwenn see you <3
 
11:35 PM
I'm not a sandwich :(
 
@Morwenn no but I like you anyway
 
 
it's multigrain with hummus, avocado, baby kale and slices of mushroom
and a touch of salt and olive oil
 
sounds nice :)
 
11:38 PM
5g peak data rate: Peak data rate 10 Gbps This is faster than my 6 Gbit hard drive cable. radio-electronics.com/info/cellulartelecomms/5g-mobile-cellular/…
 
in Room for sehe and Magisch, 36 secs ago, by sehe
.
Well that concludes the list of downvoted questions. Nothing spectacular at all. Not seen any exceptional cases. The good news is: you're basically a boring contributor :)
 
Soon my cpu will have wireless ethernet to my GPU because copper is too slow.
 
So much time...
 
11:40 PM
Its extremely annoying when someone without a disabled badge parks in a place for disabled people
 
I always forget to disable my badge when parking...
 
dat pun
 
So, you don't need to disable your badge.
You get a disabled badge for a limited brain function :)
 
@sehe kek
 
11:44 PM
@CaptainGiraffe Thanks for allowing me to finally bookmark the gif again. I have been looking for that one for ... considerable time at least twice now
 
@sehe wait did resolving that seriously take all day?
 
Of course not. And nothing was there to be resolved.
 
@JerryCoffin lol
@jaggedSpire I'm melting
 
@jaggedSpire Just some not terrific answers on badly chosen questions (either entirely drivel questions, hence people downvoting answerers, or OP's looking for language lawyering and getting a pseudo-bullshitty prose thing). For the rest, just regular contributions. I have only looked at posts with downvotes, so I assume he's just a regular contributor with nothing to worry about.
 
11:47 PM
eh, I'd call proving there's nothing wrong so the other party can no longer logically remain unhappy over nothing resolving. Probably shades of meaning, though
@sehe ah
@TonyTheLion <3 weasels and ferrets
@sehe thanks for elaborating
 
I farm my rep where nobody looks, so I get no downvotes. Best strats
 
@TonyTheLion <3
 
@TonyTheLion Lower core body temperature
 
@jaggedSpire Its sooooo cute
 
@TonyTheLion Had ferrets as class pets for two years in school. They'd just curl up in your arms and go to sleep like a fuzzy little bundle of warmth.
 
11:51 PM
@jaggedSpire yea ferrets are cool. I had a ferret as a pet for a few years. Was immensely cute and playful.
 
What are the Constraints in Standard C? http://stackoverflow.com/a/35096052/85371?stw=2 Awesome #StackOverflow, where residents remember defect reports from 1992!
/cc @JerryCoffin
 
Ell
@jaggedSpire this is just hilarious
 
My ferret would walk on a leash. I would walk it like you walk a dog
 
@sehe Oh geeze. Now I feel old...
 
It was quite hilarious seeing people's reactions as you walked the street with a little sausage like thing on a leash.
 
11:55 PM
@TonyTheLion It's a catsnaek
 
Ell
ferrets smell I heard
I think weasels don't smell as much
 
Yes they do smell
 
Ell
@TonyTheLion oh you actually had one
that's funny xD
 
@Ell Both have acute senses of smell.
 
@Ell I wouldn't call it a bad smell, just different. Then again, I have extremely positive memories associated with that smell, sooooo
 
11:56 PM
@Ell but if you get them spayed or neutered, the smell is less, but it still requires regular cleaning of the cage and washing the ferret every few months to keep the smell out
if you put a lot of attention and work into them, ferrets can be really nice pets
 
Ell
Can one buy odourless weasels? :P
 
mine would sleep in my lap regularly while I watched TV
 
@TonyTheLion d'awww
 
@JerryCoffin I didn't say you were born at the time.
 
@jaggedSpire it was one of my favorite pets I ever had <3
 

« first day (1931 days earlier)      last day (3019 days later) »