« first day (1075 days earlier)      last day (3870 days later) » 

2:00 PM
@BartekBanachewicz One of their features is "Does not require C++11"
 
@JerryCoffin It was about an old server being cooled down and then freezing (oh the puns) on the BIOS section. I was intrigued, because the person who said that supposingly was rather sure that it will happen.
 
Another thing that's a little more likely would be a server that's in steady state, and running entirely in RAM, but the hard disk has died, which would obviously be needed to reboot.
 
> Simple, light, and nothing else needed (like Boost).
lol
 
> Convenient, type-safe access to the Lua stack.
my ass.
 
2:02 PM
@BartekBanachewicz There are certainly a lot of people with a lot more experience running lots of servers than me, but it doesn't sound all that likely to me.
 
@DeadMG should lecture them on the usefullness of C++ wrapper over the stack that gives you typesafe access to the said stack
 
should lecture on removing the stack entirely.
 
@JerryCoffin I see. Hm, I might investigate that further.
@DeadMG thing is they are wrapping it, but still keeping the terribleness.
 
lolwot.
 
I think I agree with the puppy btw. A C++ engine would be bestest option.
 
2:03 PM
what's the point in wrapping it if you still have the terribles?
 
@DeadMG ask the authors of LuaBridge
 
Xeo
@R.MartinhoFernandes for what?
 
@Xeo Lua C++ API
 
Xeo
I think they mean s/API/Engine/
 
@R.MartinhoFernandes bestest ~= possible within effort.
@Xeo no, it's about making a new engine to be able to provide good API
Puppy stated that it's impossible or at least very hard to provide good C++ API without kicking the stack out, which implies VM modifications
 
2:05 PM
I also think you're overestimating the effort.
 
@BartekBanachewicz Compared to Wide, implementing Lua won't be a big deal. The only thing there I don't know how to handle would be coroutines, and I'm starting to get an idea for that.
hell, I might do it just to take a break from Wide for fun.
 
If anything, you don't have to start from scratch.
Lua's source is under the MIT license.
 
@DeadMG Marginally more convenient access to marginally less terribleness perhaps? (I haven't used LuaBridge, so I can't say much about it, but I'm pretty sure we've all seen wrappers that improved tiny bits, but were still pretty awful).
 
lol
 
Lundi has an additional advantage of being compatible with LuaJIT though
now LuaJIT is not a toy VM you can hack together in a weekend
 
2:06 PM
@R.MartinhoFernandes Lua source is written in unreadable C.
 
@BartekBanachewicz You're right, I could use LLVM if I wanted to.
 
@DeadMG Language being savagely simple certainly helps.
@DeadMG now you've got my attention, actually
Well and there's still Terra.
 
fuck Terra.
 
It's a decent language.
 
if you implement Lua -> LLVM IR, then you can link any LLVM language.
Wide, C++, C, whatever you want.
 
2:08 PM
Terra uses LLVM, and is able to precompile Lua, no?
 
dunno
I don't know anything about Terra.
 
but that's totally not the point of embeddable VM anyway
1 min ago, by DeadMG
fuck Terra.
 
I tend to agree.
replacing the Lua VM would mean replacing the default APIs.
other people could alter it to make JITs or whatever they want.
 
I wouldn't leave JIT for whenever it might happen
 
LLVM it would be then
 
2:09 PM
that's why I think Lundi still has a fair chance to be proper.
 
user1804599
Hey puppy, have you ever used LLVM with a segmented stack?
 
besides, to be frank, my previous attempt at an interpreter was blazing fast.
@not-rightfold What's a segmented stack?
 
A stack with segments.
 
@DeadMG again, Lua was actually designed
 
Like a caterpillar.
Except instead of a pillar, it's a stack.
 
2:11 PM
@R.MartinhoFernandes yummy
 
stack<deque<T>> or whatever it's called
 
So a caterstack.
 
user1804599
A stack that's not a large block of contiguous memory but it allocates more once you call functions.
 
That was terrible.
 
also my package is already waiting for me at home
 
2:11 PM
@R.MartinhoFernandes absolute stackmented
 
and I am sitting here
 
@not-rightfold You mean, how Windows implements a stack?
 
What's the default type for enum class?
 
int, of course.
 
user1804599
@DeadMG Well, I have no idea what Windows does.
 
2:12 PM
@DeadMG Doesn't it mmap it all sequentially?
 
user1804599
So you can't get a stack overflow in Windows?
 
@R.MartinhoFernandes No.
@not-rightfold Yes, you can.
 
@not-rightfold you can.
 
user1804599
Ah, so a max number of segments?
 
it reserves some space, and then when you attempt to access them, it throws a structured exception.
 
2:13 PM
meh, there are no segments in Windows HW stack
 
the operating system catches the exception, commits the space, and moves on.
 
@DeadMG Oh, it's not contiguous? Interesting.
 
@R.MartinhoFernandes It is contiguous. It's just not mmapped.
 
@DeadMG Meh, that's what I said.
 
they have an elaborate mechanism involving structured exceptions for when you try to use a stack page you haven't used before.
 
2:14 PM
I should buy Intel stock
 
interfering with that mechanism is one of the primary problems of IsBadWritePtr and friends.
 
4 mins ago, by not-rightfold
A stack that's not a large block of contiguous memory but it allocates more once you call functions.
 
Can recursive functions that would overflow go forever due to some sort of optimization?
 
I think rightfold meant a non-contiguous one.
 
@R.MartinhoFernandes It commits a page at a time, so you get contiguous virtual addresses, but not (usually) contiguous physical addresses.
 
user1804599
2:15 PM
Basically.
 
anyways, I'm pretty sure that LLVM is not set up to deal with that.
 
@Pawnguy7 yep, tail calls
 
and you would have to implement your own handling.
 
@Pawnguy7 Compilers can do tail-call optimization, but the OS doesn't try to do anything to support infinite recursion.
 
OS just doesn't know anything about function calls
 
user1804599
2:17 PM
Basically, some function calls would do stack pointer = malloc(stack segment size) with some extra stuff.
 
@DeadMG Not particularly elaborate -- just a "guard page" that's mapped but inaccessible.
 
user1804599
@DeadMG LLVM allows it.
 
@Pawnguy7 in Lua yes
 
@JerryCoffin That's quite... simple, actually. I wouldn't really use "elaborate" to describe it.
 
user1804599
2:18 PM
Though the documentation is rather sparse.
 
@not-rightfold That page has fantastically little information. I haven't seen anything in the IR about how it would work.
@R.MartinhoFernandes Well, I think the whole "Throw a totally redundant exception" is an elaborate implementation.
 
@R.MartinhoFernandes I wouldn't either, but I was trying something new for me: being diplomatic.
 
user1804599
The TOC links to missing headings. :V
 
@DeadMG Isn't it an hardware exception?
 
@not-rightfold The 3.3 page is identical, but with a different style sheet.
you'll have to ask in #llvm what the current status really is, but my guess is unusably unimplemented.
 
2:19 PM
@DeadMG The exception isn't redundant at all. In fact, it's pretty much how all virtual memory is handled.
 
(I implemented something like that in OS class)
 
@R.MartinhoFernandes Yes, it is.
 
user1804599
I wonder how difficult it is to implement.
 
The hardware throws an exception, and you have an interrupt handler that maps the page before returning.
 
@JerryCoffin To save a few physical pages from having to be contiguous? I think it's quite overkill. It would be a lot simpler to just allocate the stack as a normal chunk of memory and be done with it.
 
2:20 PM
@not-rightfold In Windows? Fairly trivial. On bare hardware, not quite so trivial, but still not exactly rocket science.
 
user1804599
@JerryCoffin With LLVM.
 
@JerryCoffin In fact, it's pretty much the same thing as an access violation, no?
 
@not-rightfold I've never tried it, so I can't comment. Shouldn't be all that difficult, but who knows?
 
@R.MartinhoFernandes IIRC it's page fault
 
2:21 PM
The difference being that the OS is expecting this one on this particular address.
 
@JerryCoffin The core issue is that LLVM does not expose the stack pointer, which I think you would need to mutate to get the correct effect.
 
@R.MartinhoFernandes Yeah -- there is a tiny bit that might be described as elaborate. If memory serves, the fiddle with the protection bits so it generates a different exception, so that exception handler doesn't need to deal with anything else, but that's about it.
 
actually in Windows it could be a user-mode library solution based on VEH. Just reserve memory, catch exceptions and allocate (commit) blocks in that memory.
 
2 hours and a half to the next Steam thinghy.
 
2:28 PM
I'm afraid of stackoverflow, may I ask a question that would normally be mercilessly shot down on the main site here?
 
No.
2
 
I'd be impressed if it isn't Steambox.
 
Xeo
It will highly likely be shot down even more mercilessly
 
@Hobbyist we are even more merciless
 
stays silent
 
2:29 PM
oh wait @Xeo was first
 
@Hobbyist Good girl.
 
How silly is the question?
 
100/10
 
@Hobbyist You may ask any questions except "may I ask" questions.
 
ping Cat++, he loves silly questions
 
2:31 PM
@Borgleader that looks like a Dell screen :)
 
@Hobbyist If it's that silly, ask it.
 
@Hobbyist eh just ask it already.
 
~I successfully impressed my IT professor today~
 
ok here goes..
 
Xeo
@MohammadAliBaydoun Judging by the general opinion of how skilled IT professors are, that doesn't necessarily amount to much.
 
2:32 PM
inb4code pasting
 
@Xeo Pretty much
 
what is the \ character called in a char*, and what does it do in this sqlite statement
 
omg
 
unnecessary
 
JBL
Hahaha !
 
2:33 PM
@Hobbyist cheescape character ... trust me it is
 
Two adjacent string literals get concatenated.
 
user1804599
@Hobbyist Use R.
 
Xeo
It's outside of the string literal, and it's just line-continuation.
 
JBL
@Telkitty猫咪咪 Nope.
 
@Hobbyist The author used it to invalidate the linebreaks, which as Rapptz said, is redundant here.
 
2:34 PM
@Hobbyist it means "threat it like I am still on one line"
 
It's unnecessary though.
 
Xeo
fuck you Puppy.
15
 
JBL
...
 
2:34 PM
@DeadMG Why?
 
That's the same as sql = "CREATE TABLE COMPANY(" "ID INT PRIMARY KEY NOT NULL," "NAME TEXT NOT NULL," "AGE INT NOT NULL," "ADDRESS CHAR(50)," "SALARY REAL );";, which is the same as sql = "CREATE TABLE COMPANY(ID INT PRIMARY KEY NOT NULL,NAME TEXT NOT NULL,AGE INT NOT NULL,ADDRESS CHAR(50),SALARY REAL );";.
 
@Rapptz do you have to ask?
 
because puppy.
 
where is Cat++ when you need her
 
@Hobbyist in particular, "abc" "def" evaluates to "abcdef", regardless if they are on the same line of code or not
 
2:35 PM
@Telkitty猫咪咪 use @
 
thanks for your support everyone
 
\ \\ is used in multiline macros
 
Xeo
don't try to codify \
 
\\\
 
Xeo
I told you not to try.
 
2:36 PM
waaait
 
` \\ `
 
Codifying operator/ on the other hand,
 
That looks funny I'm keeping it
 
I never knew Boost.FileSystem had that feature.
 
2:37 PM
@BartekBanachewicz Edited 11 times huh
 
FUCK YES
 
@Rapptz machine vs human
 
Xeo
Huh, I was under the impression that leading and trailing whitespace don't trigger codification
test , ` test`
turns out trailing space does
 
\ ?
Neat.
 
2:41 PM
\
 
;_;
 
| is superior~
 
user1804599
\ oh god wtf.
 
@not-rightfold lmao
 
Xeo
`\ ` -> \
 
2:42 PM
C++ needs an operator==>~~.
 
user1804599
Eww double space.
 
Xeo
single space
 
user1804599
\ oh god wtf.
 
user1804599
\ oh god wtf.
 
user1804599
2:42 PM
That's different.
 
user1804599
Both are not correct.
 
user1804599
I want <code>\</code> oh god wtf., not <code>\ </code>oh god wtf. or <code>\ </code> oh god wtf..
 
Xeo
can't have codified \ without space, AFAICT
 
user1804599
In Lounge<Chat>, Markdown won't suck. :P
 
room topic changed to Lounge<C++>: Backslashes on sale [c++] [c++11] [c++-faq] [no-questions]
5
 
2:44 PM
"Ambient Obscurance Baking on the GPU", #SIGGRAPHAsia Technical Brief: http://www.ppsloan.org/publications/ – the AO system developed for Bungie's Destiny
 
@Borgleader no voxels, no fun :(
 
you and your voxels
 
\
 
@BartekBanachewicz Last night, in bed, I had the urge to attempt to make a physics engine that uses Energy
I don't know how this is going to work, but it's an interesting thought to entertain
 
\hello
 
Xeo
2:50 PM
All this backslashing reminds me of (La)TeX
 
@BartekBanachewicz I can relate to that, except that I was never angry about it. :)
 
@Borgleader they are beautiful in their regularity
as if you could quantize reality
@MohammadAliBaydoun Energy is mv^2. Anything more sophisticated here?
 
@MohammadAliBaydoun it's the signature feature IYAM
 
\ did it. Bieatches.
 
2:54 PM
inb4 slowpoke
 
@BartekBanachewicz theyre kind of a performance hog though (based on the demos i saw anyway)
 
JBL
@Hobbyist I read that as "Black Slash". WTF brain !
 
and by kind of i mean, the demos framerates were low as hell considering it was mostly static geometry and no ai/particles/... going on
 
@BartekBanachewicz It seems trivial, but I said that about a lot of things in the past and ended up being wrong :P
Also, I'm an incompetent fuck, so yeah
 
Physics systems are by definition not trivial
 
2:57 PM
FFS
user image
5
it's everywhere
 
@sehe :D ^^^^
 
JBL
TIL @sehe taking over.
 
the title is even better
 
if youre polish maybe
 
"10 facts about Poland - what foreigners know about us"
the small one is "Actually there are no polar bears in Poland"
 
3:00 PM
poland bear
 
I wish I had enough computing power to simulate 10^30 atoms in a system :<
 
Why would that be useful?
 
It would be cool.
 
It's not, it would just be cool
 
@BartekBanachewicz Sehe should file a copyright claim. They took his polar bear away :(
 
3:02 PM
You do not have invent an artificial reason. You can just say directly that you want a faster PC. :)
 
@MohammadAliBaydoun You undoubtedly already do -- just (perhaps) not as fast as you'd like.
 
@JerryCoffin That's true~
Though if we take into account space, I can probably support a couple billion in memory only :<
A little under a trillion if we use disk space
And if I somehow had access to all cloud storage out there, I would probably be in the 10^18 - 10^20s range ;_;
 
@MohammadAliBaydoun Wait 20 years :P
 
@MohammadAliBaydoun Yes -- and while a slower CPU just slows things down, insufficient storage leaves you dead in the water.
 
If I have a Derived* stored as a Base*, is it possible for boost to serialize it as a Derived object rather than a Base object?
 
3:21 PM
I want a mac. They're so cool :(
 
Hm?
 
@GamesBrainiac Are they cool enough to supercool the CPU in a real computer so it could run at 5 GHz or so?
 
I wish gravity would become better understood during my lifetime. Imagine a physics system where everything is a side-effect of a trivial set of rules ;_;
 
@JerryCoffin No, silly, they're shiny :P
 
how does one access flags in assembly language?
 
3:28 PM
@Crowz You said the a word.
 
SAM
OMG!! Boring exams... :( and ugly submissions... :(
Getting no time to chat :( :( :(
 
@Crowz Mostly conditional jumps. There are also conditional moves, SetCC, etc. But most often jumps.
 
Is there a simple way to compute a log2 of a value that is a known power of 2? (i.e. does knowing it is a power of 2 allow a simple algorithm that wouldn't be allowed otherwise?)
 
explain yourself sorcerer... this class is confusing
 
JBL
yesterday, by FredOverflow
@Crowz There are jump instructions.
 
3:29 PM
I don't even get this book, isn't assembly language different for different machines and architectures or am I mistaken?
 
@R.MartinhoFernandes On an Intel, BSR (since we're talking assembly language now).
 
JBL
Basically, someone answered yesterday already to your question :/
 
@Crowz Yes, it is.
 
I guess it only worries about IA32 Architecture... hmm... seems pretty pointless
 
@JerryCoffin Hmm, I'd rather avoid using intrinsics.
I don't really care about speed here. Was just wondering if I could do something simple that didn't involve floats.
 
3:32 PM
I really miss my time here. I wish I could be here more.
 
Xeo
@R.MartinhoFernandes flounder.com/log2.htm
seems to have some comparisions of what you could do
(warning: the colors are terrible)
 
Oooh, Geocities PTSD.
 
Oo Geocities is bought by yahoo
 
lol Geocities
 
Ancient times
way before myspace and way way before facebook
 
3:47 PM
@BartekBanachewicz That's the same image that I based my avatar on yes. Now you can see what I edited
@Xeo The twiddling hacks has a whole array of approaches: graphics.stanford.edu/~seander/bithacks.html#IntegerLogObvious /cc @R.MartinhoFernandes
@JBL Yes. Right now, for example: Jump!
 
@R.MartinhoFernandes If it's a power of two, then just count the number of bits. Or alternatively, find the highest bit, whose position would equal the number of bits. For which you could use a lookup table. Or, just use a lookup table, since there are only so many powers of two available. Also, plink. Plink.
 
Meh, log2 it is.
 
JBL
@sehe Meh.
 
Hai guys
 
I changed my avatar to something cute :) Yay :D
 
3:56 PM
@GamesBrainiac not sure what it was before.
 
in Anime and Manga on The Stack Exchange Network Chat, 4 hours ago, by Madara Uchiha
Someone had too much free time: https://github.com/turkishdelighthorse?tab=contributions&from=2012-11-06
10
 
@Mysticial hahahahaha
github's Rock - Hard Place gets a second interpretation
 
ahaha
That didn't even cross my mind.
 
what's on the right hand side?
Time to plonk xeo again, I am pissed off @ the moment, I am plonking whoever has not replied to me for 14 consective days. No reply is rude & I sure don't mind seeing less people on this chat.
reminded me feeds on my plonk too
 
4:10 PM
@R.MartinhoFernandes In that case, the obvious is to just right-shift until bit 0 is a 1.
The number of shifts is the log of the number.
int log = 0; while (number & 1 == 0) { number >>= 1; ++log; }
 
Ell
@Telkitty猫咪咪 hi!
 
I think the best kind of job is the job that pays you a lot for doing whatever the hell you want to do :P
@ScottW I know but that takes money and skill. I'm afraid I'm lacking on both
 
Good evening ;)
 
Ell
woo!
 
4:25 PM
nice
 
Ell
where the hell is everyone :o
 
hrm, sanity check: can we all agree that remove_if existed in C++98? :|
ah never mind, found the problem
parentheses are tricky :D
 
In case anyone wants to give their two cents:
or euros
0
Q: Version Control Third-Party Dependencies

Code-GuruI maintain a OSS Java project which depends on a third-party JAR file. My understanding is that such files should not be kept under version control. However, this JAR is only 1.4MB and putting it in the git repo is a convenient way to ensure that developers who join the project have the correct c...

 
So your opinion is worth more if your country has the euro?
 
well, I don't know the euro equivalent of cents.
 
Ell
4:31 PM
The GBP is worth the most
 
out of all the world's currencies?
 
@Code-Guru Apparently my technicalities aren't funny, sorry. I don't know the equivalent either.
 
=p
 
@Code-Guru cents? As in parts of a hundred.
 
@Code-Guru it's... cents...
 
4:36 PM
There are eight euro coin denominations, ranging from one cent to two euros (the euro is divided into a hundred cents). The coins first came into use in 2002. They have a common reverse, portraying a map of Europe, but each country in the eurozone has its own design on the obverse, which means that each coin has a variety of different designs in circulation at once. Three European microstates which use the euro as their currency also have the right to mint coins with their own designs on the obverse side. The coins, and various commemorative coins, are minted at numerous national mints a...
 
@CaptainGiraffe In my world, cents is specifically 1/100 of a dollar. Didn't know the word applied to Euros, too.
 
why hello stack overflow friends
 
Sometimes the US find the metric decimal system convenient. This is one of those times.
 
@CaptainGiraffe and when you deal drugs
 
@Code-Guru compare, century. It is the same base
 
4:38 PM
@Crowz Well, hello.
 
@CaptainGiraffe sure, I'm familiar with the latin root
 
Long time no hear.
 
@Code-Guru When I dealt drugs I only used furlongs, to get the better conversion rate.
 
Jerry Coffin have I professed my love to you?
 
wow that's much. I wonder, if you plant those in a big enough area, effectively reducing the amount of heat the sun gives to the soil by 40%, would it affect the local climate?
 
4:38 PM
@CaptainGiraffe Did provide delivery service? =p
 
@Code-Guru By the furlong.
 
"Delivery charges $100.00 per furlong"
lol
 
Yep that was it.
 
furlong is a unit of length...other than that, I don't know either
 
Furlong (unit): Longer than a beard-second, shorter than a parsec.
 
4:41 PM
What's a beard-second?
 
@Code-Guru The distance your beard grows in a second?
@Crowz I think I'm the only one you haven't. :-)
Unless you mean professing your love for others while I happened to be present.
 
@JerryCoffin ding-ding. It's an atomic scale unit. @Code-Guru(edit) Is it not very troublesome to package two jar-files with your app? I'd put it in the repo and build for no other reason.
 
@CaptainGiraffe Hmm...jar file would mean JVM. Based on that alone, I feel confident saying "complete PITA".
 
@JerryCoffin Apologies, my comment was related to @Code-G's stackoverflow.com/questions/19010422/…
 
@CaptainGiraffe Yeah, I figured, thought I'd put in my 2 cents worth anyway.
 
4:49 PM
Thought I would pop in to the Java room and ask if they fixed the jar containing jars as a resource. All I found was upload.wikimedia.org/wikipedia/commons/thumb/f/fa/…
 
If you are a Twitter user, pay attention: There is a user who is attacking the SE people. Please flag him! Report any Tweet where is attacking your partners. And if you want to, report as SPAM. Also you can Tweet any though that you want to :P Collaborate with SE community on Twitter!!
 
hi all!! I had question for you guys. I recently made a static lib on Red Hat Enterprise Linux Server release 5.8 (Tikanga) kernel 2.6.18-308.el5 #1 using gcc version 4.1.2 20080704
 
@Lucio Just an idiot. Please ignore. Thank you.
 
if i moved to my library to Red Hat Enterprise Linux Server release 6.4 (Santiago)
 
4:51 PM
@CaptainGiraffe Can't you do something?
 
user1804599
Don't feed the troll.
 
kernel 2.6.32-358.2.1.el6.x86_64 #1 gcc version 4.4.7 20120313 would i need to recompile it for that? or would my static lib be able to work inspite of that?
 
@Lucio You, we and I can rest in our comfy chairs knowing this bugle has no impact.
 
sorry the question was broken out as i was trying to format it I hit enter and it just printed it out. once again sorry for that.
 
@CaptainGiraffe It could help to other folks if you flag him..
 
4:53 PM
@DavePowell Maybe. Maybe not. It depends on what you did with it. The only way to know for sure is to try it.
 
@Lucio No. Stop this stop it now.
 
I can't. He will continuously writing those SPAM post.
 
@Lucio Given the general idiocy of Twitter, being called an idiot there is a high compliment to your intelligence.
 
ok. instead of just rebuilding my code with that I can first ask the customer to try it out if there are issues then I will have to rebuild that lib. thanks for your answer R. Martinho
 
@Lucio And now you are spamming here. Huge success.
 
4:55 PM
@not-rightfold Hows the django project going?
 
@JerryCoffin Agree. But that is not the case of SE folks.
@CaptainGiraffe I'm not.
 
I am confused...
 
@Lucio If they're too stupid to recognize reality, they probably deserve it.
 
Link to this question?
 
user1804599
4:57 PM
@GamesBrainiac It’s going great. :D
 
user1804599
I’m going to write a registration page and a layout template tonight.
 
@Pawnguy7 Hi Confused. I'm Jerry. I just have to wonder: if you're really confused, why do you claim to be "PawnGuy"? Are you feeling lonely and trying to confuse us too?
 
user1804599
Then I’m putting it on my VPS.
 
@not-rightfold Shouldn't be too hard, just piggy back off of a nice design somewhere.
 
user1804599
I know what design I want.
 
user1804599
4:59 PM
It's trivial.
 
user1804599
 
@JerryCoffin Have you ever flaged a post here?
 

« first day (1075 days earlier)      last day (3870 days later) »