« first day (1597 days earlier)      last day (3344 days later) » 

2:00 AM
@Borgleader that one works!
 
Windows 98 and XP are the operating systems of my childhood.
 
that "can you believe this guy" bit is totally LRiO
 
is LRiO a female?
 
I got my first PC when I was 18 (in 1999). I initially used Windows 95 for a year or two.
 
 
2:02 AM
@edition Somewhere in between.
 
Then 98, ME (briefly), followed by XP which I used for 9 years or so.
 
So what's funny about that video
Is it ANIME
 
@StackedCrooked Oh my... ME? You're still alive?
 
@StackedCrooked got mine at 2. don't remember what OS but i remember my dad dualbooting a newer OS (Windows 2000) and not letting me touch that one.
 
ME looked very good initially. It booted very fast.
 
2:05 AM
I used win 98 until my ISP told me to fucking upgrade to win XP
 
ME was the OS where I realized that it was bad and not because I did something wrong.
 
@StackedCrooked 'initially', ie.. for 2 mins until the first BSOD.
 
Nothing was ever as bad as ME (except for linux desktops of course).
 
.net is microsoft java.
 
@MartinJames I think it worked fine for a day or two in my case.
 
2:07 AM
@StackedCrooked Mac OS 8. Okay, it wasn't as bad as ME--amazingly enough, it was actually worse (an amazing accomplishment).
 
@StackedCrooked I programmed my first computer 6808 asm and basic just about the time you were born. I feel ok with my age =)
 
But back then I always thought that if something went wrong that it was my fault somehow.
 
95, 98, ME were all apalling shite. W2k was the first mass-market Windows that was actually useable for development.
 
this was the nicest thing ever vgmpf.com/Wiki/images/e/e9/…
 
@CaptainGiraffe I'm from 1980 btw, not 1981 :P
 
2:08 AM
whoa the link is not parsed properly
 
@StackedCrooked I was 9 not 8 when I started, so that's a fair adjustment.
 
@CaptainGiraffe I did program my first Motorola 68000 program a year later (on an emulator). It was a practicum at uni.
 
@MartinJames Only because they didn't push NT 4 for mass market. It actually worked quite nicely. For that matter, NT 3.5 and 3.51 were fine too.
 
@CaptainGiraffe I guess we're even then :)
 
@JerryCoffin Sure - NT was fine.
 
2:10 AM
@MartinJames It was OK if you rebooted every few hours.
;)
 
@StackedCrooked Emulating a 68000 sounds very sophisticated. That beast ran at 8 MHz!
 
@StackedCrooked I had a logger W2k that stayed up for 6 months. Even then, it only failed because the lab power was disconnected after an A/C duct collapsed and sprayed snow/water over the box.
 
Is this UB?
It sure does act like so.
 
@Nooble *pointer != NULL
 
yup
 
2:15 AM
That stop condition doesn't seem right.
Arrays.. are not null-terminated, are they?
 
I thought they were...
 
I think you are relying on the zeroing of stack on program startup.
 
It is UB to read the past-the-end element of the array.
 
if you turn off optimizations, they don't seem to be null terminated
 
lol why would arrays be null terminated
 
2:17 AM
1
2
3
4
5
32767
924637464
32767
 
@AlexM. They never are.
 
with -O2 it's always 0 after 5 but that's probably coincidence
 
It's UB, it can be anything
 
yup
 
2:19 AM
So is there a difference between auto pointer = array and auto pointer = std::begin(array)?
 
@Nooble No.
 
@Nooble yes
 
UB is does not lead to "anything". The computer is still a deterministic machine, dammit!
 
the 2nd version doesn't raise questions
 
2:20 AM
My UB is fine!
 
@CaptainGiraffe That looks so much better.
Btw, the cool kids omit the return 0;
 
@StackedCrooked DS9K.
 
So somehow I thought arrays were null-terminated. It worked for me until a few minutes ago. UB so sneaky.
 
@Nooble That is only for old school bare metal char arrays posing as strings.
 
2:22 AM
-1
Q: PROBLEMS MAKING IT WORK

CPlusPlusUSERim having trouble making it work. im taking class on cpp and this is my assignment. im wodnering why it doesnt work #include using namespace std; Class thing ( integer argu(flt float) ) { static auto integer FLOAT____ = * 4; return this -> std::iostream; // default destructor ...

 
@CaptainGiraffe Right, I've been using it to print out arguments received from main, which I certainly hope isn't UB too.
 
@CaptainGiraffe ...plus a few others (e.g., argv).
 
So, I'm assuming a const char** is null-terminated?
 
FFS.
 
2:24 AM
@Pris viagra
 
I like how someone felt the need to fix tiny typos in that question, like it substantially improved the quality
 
@Nooble why the fixation on null termination
 
@Pris definitely a troll
float main?
 
@Nooble Only if somebody does it that way. argv is; most others aren't.
 
@JerryCoffin Ahh...
@AlexM. Because that's the way I detect the end of argv.
 
2:27 AM
@Nooble Um, argc?
 
@StackedCrooked Mine was better still (though, admittedly, the difference is minor in this case).
 
@CaptainGiraffe I have no clue why I didn't use this.
 
I'm using the lastest version of Visual Studio 2015. I can't switch the compiler — Fabian 33 mins ago
can one of you muppets test?
@AlexM. pfft
 
Why would people troll on SO?
 
@Pris probably not trying to troll, just to be funny
 
2:30 AM
@Pris Same reasons they troll elsewhere.
 
@LightnessRacesinOrbit Who in their right mind would download that gigabyte blob, start up their windows vm, install stuff for hours, just to see some elementary code fail?
 
@LightnessRacesinOrbit Not me. I've made the switch to coding on Unix. God it's so much easier.
 
'\n' can lead to surprises (buffering). std::endl never does.
 
@CaptainGiraffe Someone who already has it installed, duh
 
I always use std::endl. Maybe once I opted for '\n' because performance mattered.
 
2:31 AM
"\n" is less typing
although a bit more shifting positions
 
"\n"? blashemy! it should be '\n'!
 
there should be a line ending thing that doesn't force a buffer flush
 
@StackedCrooked I never use endl, and you shouldn't either. If you don't want a flush, it wastes time. If you do want a flush, use std::flush to do it explicitly. std::endl is never the right choice.
 
@Borgleader I wonder which one that would be....?
 
#define ENDL '\n'
 
2:33 AM
@Pris Quite funny obvious troll.
 
separation of concerns says std::endl is over-engineered
 
trying to figure out why that 0 always appeared there w/ -O2 by reading the assembly but man is this shit annoying to read
 
return this -> std::iostream;  // default destructor
 
I think I'll just go to sleep
 
@StackedCrooked because endl afaik forces a buffer flush, so it would be nice to have a thing like python's os.linesep
or wtv it is
 
2:33 AM
You don't need it
Just use \n
 
std::endl breaks the 80 char line.
 
@JerryCoffin I should mention I only use std::cout as a quick debugging tool. If I were to write to a file I would agree 100%. (But some reason I almost never need to write to files in my C++ program.)
 
\r\n is needed mostly for protocols
 
Like HTTP.
But HTTP also accepts '\n'.
 
IRC :|
 
2:35 AM
No it doesn't
 
:21839204 Headers should be separated by '\r\n' or \n'.
 
No, \r\n
Always
Can't recall a protocol that would use line separators and wouldn't require \r\n
 
I had to implement parts of HTTP at work. I'm certain the RFC mandated that the server should accept both.
 
For protocols yes, but any web server accepts \13 \13 as end of header.
 
But maybe it does require senders to use '\r\n'.
 
2:37 AM
@AlexM. Good night :)
 
Those are compat recommendations
If you ever emit anything other than \r\n your implementation is broken
 
3:08 AM
All protocols I've seen require \r\n.
 
^ I'm having a hard time deciding if that cover is good or not; can anyone help me decide?
 
@StackedCrooked Cat's right. It's CRLF.
@Borgleader Why on earth?
 
@LightnessRacesinOrbit Servers must also accept LF.
 
@StackedCrooked That's not actually true
 
@Xeo Dang Aldnoah is stiil going strong.
 
3:14 AM
guys i just sorta finished D++ v1
 
> 3.7.1 Canonicalization and Text Defaults
> Internet media types are registered with a canonical form. An entity-body transferred via HTTP messages MUST be represented in the appropriate canonical form prior to its transmission except for "text" types, as defined in the next paragraph.
> When in canonical form, media subtypes of the "text" type use CRLF as the text line break. HTTP relaxes this requirement and allows the transport of text media with plain CR or LF alone representing a line break when it is done consistently for an entire entity-body.
> HTTP applications MUST accept CRLF, bare CR, and bare LF as being representative of a line break in text media received via HTTP. In addition, if the text is represented in a character set that does not use octets 13 and 10 for CR and LF respectively, as is the case for some multi-byte character sets, HTTP allows the use of whatever octet sequences are defined by that character set to represent the equivalent of CR and LF for line breaks.
> This flexibility regarding line breaks applies only to text media in the entity-body; a bare CR or LF MUST NOT be substituted for CRLF within any of the HTTP control structures (such as header fields and multipart boundaries).
Cheers & hth.
 
user3010322
Ah.
 
user3010322
Headers must be CRLF
 
user3010322
But why make the HTTP bodies optionally LF or optionally CR all the way down?
 
user3010322
Why not keep it consistently CRLF?
 
3:17 AM
I guess Stacked is thinking of this:
> 19.3 Tolerant Applications
> [..] The line terminator for message-header fields is the sequence CRLF. However, we recommend that applications, when parsing such headers, recognize a single LF as a line terminator and ignore the leading CR. [..]
That's still a far cry from what he claimed, though.
@ThePhD That's not really what it says. What it says is that HTTP abstracts away the platform-specific line ending convention from the source platform, allowing newline conversion at either endpoint within text payloads. This is no different than in, say, FTP or SCP.
So to "keep it consistently CRLF" you would basically either be saying "all your documents must use Windows line endings", or you'd be saying "HTTP shall never translate line endings in text playloads".
...either of which would be a bit shit.
 
Dammit I want to resume watching my anime but now you got me scouring the rfcs.
 
user3010322
@StackedCrooked :D
 
user3010322
@LightnessRacesinOrbit I see, that makes sense.
 
@ThePhD Yep :)
 
user3010322
All this fuckery because of typewriters and printing devices. :(
 
3:23 AM
I'll be back.
(resuming watching anime)
 
user3010322
@Rapptz lua 5.3.0 is out! Gonna check out sol with it.
 
user3010322
Wonder if there's been any changes to the lua bundle...
 
user3010322
> integers (64-bit by default)
official support for 32-bit numbers
bitwise operators
basic utf-8 support
functions for packing and unpacking values
 
user3010322
> simpler API for continuation functions in C
lua_gettable and similar functions return type of resulted value
strip option in lua_dump
new function: lua_geti
new function: lua_seti
new function: lua_isyieldable
new function: lua_numbertointeger
new function: lua_rotate
new function: lua_stringtonumber
 
user3010322
 
3:28 AM
Woah INTEGERS
 
user3010322
YEAH
 
user3010322
> Functions to inject/project unsigned integers (lua_pushunsigned, lua_tounsigned, lua_tounsignedx, luaL_checkunsigned, luaL_optunsigned) were deprecated. Use their signed equivalents with a type cast.
 
user3010322
So they kind of throw unsigned out the window.
 
user3010322
Oh well.
 
user3010322
If all integers are 64-bit anyhow, it can't be that bad.
 
3:32 AM
65-bit would be better
 
Lua's weird.
Open source but not openly developed.
 
user3010322
Bleh.
 
user3010322
lua-jit is locked in Lua 5.1
 
user3010322
Too many large companies with huge codebases and big investments in lua 5.1 never going to upgrade, and since that's how that guy makes his money...
 
user3010322
I might consider writing a lua compatibility layer for sol so that lua jit can be used with it.
 
user3010322
3:37 AM
Apparentlt 5.2 is mostly emulatable with 5.1, with the exception of some __index and metamethod stuff, but lua-jit covers that stuff.
 
-2
Q: Multi-core Processors : How Does the Amount of Cores Used to Control a Program Affect its Performance?

SuperGoABefore I expand more on my question I would just like to say to anyone responding that I don't want you to leave out any possible information because you're afraid I might not understand it. Thanks to all replies :) Expansion on Question: Example - If I am running a program that takes up 1.5GB o...

^^ whhaaa
I like that first sentence.
 
@Rapptz The cathedral model?
Is it that secretive? I would have thought there’s some discussion going on the lists.
e.g. I remember some cross-pollination with LuaJIT dev feedback.
 
You can suggest things in the mailing list and talk about it but everything goes according to what the main developer does at the end of the day.
 
Well, yeah.
 
user3010322
LuaJIT 1.0.x had some things merged into the Lua 5.1.5 devel branch.
 
3:44 AM
There is no public repository.
 
The Cathedral and the Bazaar: Musings on Linux and Open Source by an Accidental Revolutionary (abbreviated CatB) is an essay, and later a book, by Eric S. Raymond on software engineering methods, based on his observations of the Linux kernel development process and his experiences managing an open source project, fetchmail. It examines the struggle between top-down and bottom-up design. The essay was first presented by the author at the Linux Kongress on May 27, 1997 in Würzburg and was published as part of the book in 1999. The illustration on the cover of the book is a 1913 painting by Liubov...
 
The GCC and Emacs tidbit isn't true anymore though right?
 
Yes for GCC, because we’re using a different GCC from the cathedral one.
No clue about Emacs dev.
 
This is what overengineering looks like
 
3:49 AM
wtf is that?
 
@CatPlusPlus This game really needs red stripes.
 
An old medieval machine known as "buncha spinning flamethrowers"
 
@CatPlusPlus that game looks ridiculously fun
 
Can someone help me with a question on structs?
 
@FatalSleep Try Stack Overflow. You're much more likely to get a useful answer there than here.
 
3:50 AM
SUCCESS
 
@Mysticial Looking for a more discussion than Q&A.
 
@FatalSleep You're in the right place.
@FatalSleep You'll have to be quick, though. I'm sleepy.
 
@CatPlusPlus nice
 
Also catapults are fuckin hard
 
I've got a struct -> struct{short, int, short, short, int, short} by definition should be 14 bytes long. However using sizeof( structname ) defines the struct as being 16 bytes. Why?
 
3:52 AM
@FatalSleep The members of a struct put a minimal size on it, but that’s about it. You get no guarantee beyond that.
 
Ah.
 
@Pris It's early access but extremely cheapo
 
The extra room is often called 'padding', in case you run across the term.
 
Ah, padding, of course.
 
@FatalSleep The compiler can (and often will) insert "padding" between/after elements of a struct (to get items to aligned addresses so they're faster/easier to access). To minimize padding, you usually want to arrange the items in descending order by size.
 
3:53 AM
@CatPlusPlus I don't really play games, but yeah. I would have bought it if I still did
 
That would explain the issue then.
 
243
Q: Why isn't sizeof for a struct equal to the sum of sizeof of each member?

KevinWhy does the 'sizeof' operator return a size larger for a structure than the total sizes of the structure's members?

 
People have made some pretty crazy stuff in Beseige
 
@Rapptz Dammit, too fast.
 
that's a good answer
 
3:54 AM
@JerryCoffin @LucDanton Thank you for the answers. I didn't think padding would take an affect here.
 
Step it up, sempai.
 
@Rapptz Thank you for the link.
 
Oh @LucDanton I finished Sherlock.
Season 3 was kinda weak except for the last episode.
 
@Mysticial That's what she said
 
mmmyeah if you don’t think too much about it that is… although that’s something that really can be said about the series as a whole
 
3:57 AM
I liked all episodes in Season 1. Season 2 only had episode 2 being kinda mediocre. Season 3 only had the last episode being good.
I sense a pattern. Maybe Season 4 will be a massive disappointment :)
 
heh, I wouldn’t be surprised
@Rapptz Season 1 has the yellow peril stuff, I found it a little bit too silly and campy
 

« first day (1597 days earlier)      last day (3344 days later) »