« first day (887 days earlier)      last day (4070 days later) » 

4:00 PM
Try very hard to get the 'rm' and 'ls' the right way round.
 
@R.MartinhoFernandes That explains it.
 
lolwut sudo ls doesn't segfault
 
@Fanael Also what if you have a file and an alias both named "\ " ?
 
user784668
@ereOn TIAS, I have no clue.
 
fuck this shit i am going home
 
4:01 PM
I feel bad... I want by a camera, a lizard, and a fair few computer screens so I can make a silly 'xzibit' stlye image...
 
What's TIAS ?
 
user784668
@ereOn Try It And See.
 
Try It ... ?
 
'Then I Am Stuffed' :)
 
I know someone that has a domestic python in his house.
 
4:02 PM
Answer : you can't
 
Can I haz sum luv?
 
alias won't let you create a space-named alias
@Jueecy Which kind ? Is it a 2.7 or a 3 ?
 
@Jueecy snake or language?
 
user784668
@Jueecy I have four seven pythons.
 
@thecoshman, the snake...
 
4:03 PM
@Jueecy sweet
 
I'm not convinced that Python can be domesticated.
4
 
user784668
@MartinJames I've heard rubies can be.
 
@Fanael did they just give birth or something?
 
@Fanael Only if you have rails around your house.
 
Shit, mount segfaults too, so I can't mount everything back up and chroot. And shutdown doesn't work either.
 
4:04 PM
Terrible puns around here...
 
user784668
@thecoshman 2.7 and 3.3, each in 32 and 64-bit variant on Windows, 2.7 and 3.3 on one of the Linuxes and 2.7 on the other Linux.
 
Help, I cannot turn off my machien.
 
@Fanael ¬_¬
 
user784668
@R.MartinhoFernandes pull the plug
 
7 mins ago, by R. Martinho Fernandes
@EtiennedeMartel I'm sshing.
 
4:05 PM
@R.MartinhoFernandes le shutdown -r now?
 
53 secs ago, by R. Martinho Fernandes
Shit, mount segfaults too, so I can't mount everything back up and chroot. And shutdown doesn't work either.
 
I just need to show who's the boss to my professors in this exams and then I promise I'll learn some python.
 
user784668
@R.MartinhoFernandes pull the plug through ssh
 
@R.MartinhoFernandes hm... perhaps I should read next time
 
@thecoshman Shit - they're multiplying faster than the robot's disappearing files.
 
user142019
4:06 PM
 $ plug pull
 
user784668
@R.MartinhoFernandes init 0?
 
That does nothing. Gentoo doesn't work that way.
Wait, there we go.
---------------------------
PuTTY Fatal Error
---------------------------
Network error: Connection refused
---------------------------
OK
---------------------------
 
@R.MartinhoFernandes SSH to a nearby robot and use it to pull the plug.
 
@R.MartinhoFernandes ┬──┬◡ノ(° -°ノ)
 
user142019
4:07 PM
I spilled coke over my machine!
 
user784668
@R.MartinhoFernandes So it worked?
 
@Zoidberg snort it up then
 
@Zoidberg It'll be OK. Just vacuum up the coke.
 
user142019
@thecoshman lol
 
@Zoidberg seriously :P
 
user142019
4:08 PM
I spilled it over the fan's output.
 
user142019
And the keyboard.
 
user142019
I'll not use it till tomorrow.
 
What? You missed the mobo? Try harder.
 
@Zoidberg it'll be fine
 
user142019
I know.
 
4:09 PM
it's only coke
 
user142019
This thing is mostly waterproof and nothing is leaking out.
 
@Zoidberg yeah, let it dry.
 
nah, fire that puppy up, get some heat on it
 
Not sure. The coke will have damaged the tracks by then. Maybe wash now, then let dry.
 
woof woof
 
user142019
4:10 PM
lol
 
lul
 
user142019
@MartinJames what tracks?
 
@Zoidberg on the PCB
 
user142019
Oh that.
 
You never cleaned copper coins with coke?
 
user142019
4:12 PM
 
user142019
I spilled it on the outlined area.
 
user784668
Is there a unit test library that doesn't suck too much?
 
@MartinJames coins tend not to have a coating on them
 
user784668
@Zoidberg so snort it
 
user142019
@Fanael snorting Coca-Cola is a terrible idea.
 
4:12 PM
@Zoidberg ¬_¬ thats.... a craptop?
 
user142019
@thecoshman no it's fine.
 
Lemme guess - that's the corner where the power supply is.
 
@Zoidberg hint: laptop => craptop
 
user784668
@ScottW Whoa, it sucks so much it suddenly doesn't suck anymore?
 
user142019
@thecoshman I know that it was a pun.
 
4:13 PM
@Zoidberg You were drinking coke while operating on an open laptop?
 
user142019
@R.MartinhoFernandes no.
 
user142019
The laptop was closed but I just highlighted the area I spilled coke on, except I spilled it on the top side instead of the bottom side.
 
Right, you were not quite drinking it. If you were it would not be all over the laptop.
 
@Zoidberg not sure if it was. It's more a malapropism, but 'craptop' is not a real word
 
user142019
No shit Sherlock.
 
user142019
4:15 PM
A craptop is a computer you place on a pile of poo.
 
I've got one.
 
@MooingDuck : Hiya moo! Hows it goin. @Zoidberg : Whats up? Been busy lately?
 
@R.MartinhoFernandes filtered
 
@ScottW ..was your work computer.
 
4:16 PM
well, if craptop is being considered a real word, it's still only going to have been a malapropism
 
@ScottW Sorry - misdirected. Should'a gone to the cokehead.
 
> The latest batch of screenshots for Final Fantasy XIII Sequel Two: I Guess You Guys Wanted to Play as Lightning shows off the Dead Dunes, a land of dunes and deadness in the world of Nova Chrysalia.
 
=[
 
lol a land of dunes and deadness
 
Square makes me sad.
So does Nintendo.
Rare died.
Capcom is just rehashing old shit endlessly.
 
4:18 PM
I gues the guys at Kotaku don't have high hopes for the next FF.
 
Square have been endlessly cocking it up since FFVIII
 
Hey, FFIX was great.
It went downhill at FFX.
 
It went downhill with FFVII.
 
wasn't FFIX only ever released in Japan?
 
When the series shifted from "games" to "interactive films with too many lens flares".
 
4:19 PM
Sega is only flopping around, publishing stuff while the Sonic Team wonders what the hell it is doing in a drunken stupor after the DreamCast died.
 
Xeo
@DeadMG Wut? No
I have it at home
 
huh
 
Same here.
You gotta go play it man!
 
The only FF game I played was the beta for FFXI (or wtv one was the MMO for xbox) and then my Xbox died and it took forever to get it back at which point the beta was over
 
I never played FFIX and never heard of anybody else who wasn't in Japan who has
 
4:20 PM
It's probably the last best Final Fantasy.
 
Xeo
Well now you have
 
Game Arts died too...
R.I.P., Grandia.
Best game series I've ever played, hands-down.
Best battle system, best characters.
 
Xeo
I saw a friend play that one, looked nice
Grandia 2, that is
 
IT'S AMAZING
Grandia II is where I started.
 
Xeo
I never got to play it, though - I don't own any consoles
(Anymore)
 
4:21 PM
Grandia III is fuckin' awesome too.
 
hmm
 
Grandia XTreme is... meh.
 
Xeo
3
Q: Is this a safe way of throwing an exception from a destructor?

sbabbiI know that throwing from a destructor is in general a bad idea, but I was wondering if i could use std::uncaught_exception() to safely throw from a destructor. Consider the following RAII type: struct RAIIType { ... ~RAIIType() { //do stuff.. if (SomethingBadHappened()) { ...

 
I never realized all of the annoying little details that come with implementing RAII.
 
Xeo
Oh gawd again...
@DeadMG ?
 
4:22 PM
@Xeo Use your XBox Controller and get a PS2 Emulator and play Grandia III. Then get a Dreamcast Emulator and play GRandia II.
Trust me, it it well worth your wait.
The game's battle system is unique, engaging, and just fuckin' awesome.
It's probably what ATB should have evolved into, but Square never had the balls to do it like GameArts did.
 
any hoops, home time for me :D
see y'all
 
@Xeo For example, the Itanium ABI specifies a bunch of constructing objects which are nominally in one stack frame, in another.
 
Soon or until tomorrow?
 
Xeo
@ThePhD Oh, wait, maybe it was Grandia 3 I saw him playing
 
@Xeo II was Dreamcast, III was PS2. There was also XTreme, for PS2 as well I believe.
II had a fantastic storyline.
XTreme had a weirdo with a strange hairdo but still a good storyline.
III had a great storyline, improved battle system, it was all around just sexy.
 
4:25 PM
plus of course, when returning objects, you can't just do the whole "Delete at end of statement" thing, since, y'know, the destructors won't get called.
 
I thought you should never ever throw exceptions in the destructor.
 
user142019
@GamesBrainiac no I'm never busy.
 
What's the sense of exceptions in the destructors anyway?
 
@Jueecy you were correct
@Jueecy none
 
As usual it's one of those "if you have to ask, you shouldn't do it" things
 
4:27 PM
@Zoidberg What you up to?
 
user142019
@GamesBrainiac My laptop got colafied.
 
-1
Q: C++: Another "unresolved exernal symbol" error

JakobsonI'm currently developing an OpenGL framework for video games. This framework contains a specific program that loads shaders. In the class of said program I have these three functions: InitShaderProgram(...); CreateShader(...); CreateProgram(...); The InitShaderProgram calls CreateShader and Cr...

 
user142019
So I'm waiting for it to dry.
 
@Zoidberg da fuq?
 
Can I get dupe votes?
 
4:27 PM
@MooingDuck Well there is at least one usecase
 
user142019
@GamesBrainiac like this
 
@Zoidberg Hope its all good now, hows ZoidLang coming along?
 
user142019
lololol Zoidlang.
 
It's dead
 
What a joke
 
user142019
4:29 PM
I began working on it a week ago or something but I reabandoned it while making a higher level wrapper around LLVM.
 
It's deader than his coketop.
 
user142019
lol coketop
 
@CatPlusPlus which is...?
 
dayyum Zoidberg
 
user142019
whatsup
 
4:30 PM
you abandoned Zoidlang again?
 
user142019
Yes! :D
 
@DeadMG You're surprised?
 
I'm patiently waiting to make my cleaned-up personal language.
 
aren't you sick of me lording it over you with my actual implementation of at least a small fraction of Wide?
 
4:30 PM
Then, I'm going to make my own Shading Language as well
 
Hmm. I wonder where I heard this before.
 
I'll start with the Shading Language because it's constructs and concepts are much simpler.
The cleaned-up personal language is a much bigger endeavor, and I'm still sponging language ideas from this chat. :P
 
@ThePhD Only if you make it so.
You seem to not get this thing about designing a programming language: you draw the limits.
 
@R.MartinhoFernandes Well, I don't have direct access to NVidia or Ati bytecode, so in the end I'm always going to be compiling down to GLSL or HLSL.
 
I doubt that makes a big change.
 
4:32 PM
LLVM can have a GPU-based backend.
 
So my runtime will probably be affected by what the shader languages support and what they do currently.
 
user142019
OS X uses LLVM for OpenGL.
 
@ThePhD So, you're designing a huge pile of nothing?
 
in fact, that was one of LLVM's first applications
 
@R.MartinhoFernandes I'm just saying that's what will influence the final core features. I'm not saying it's going to be what I end up making the end-all constraints of my shading language.
 
4:35 PM
GLSL++
 
GLSL++?
Ah
 
Wait a second.
 
Good luck with that! You'll find that GPUs have quite a lot of constraints that CPU systems don't have
 
Yeah he's quite aware of that I think
 
How are C file parsed? With an assembly written program?
 
4:37 PM
@IDWMaster I have no idea what it is you are assuming, but I know it is too much.
 
C and C++ these days is parsed by C and C++.
 
I tried to write a C# to HLSL compiler. Was terrible!
 
@ThePhD, what?
 
How's that related to designing a language based off of GLSL?
 
@Jueecy C and C++ - since versions of the language are in existence and compialable - can make a program that parses / compiles / links C++ and C code.
 
4:39 PM
@Jueecy With a parser for the C language, written in whatever language its author preferred.
 
GCC itself was written in C, and then recently semi-ported to C++.
You could write a Lisp C compiler if you wanted to.
 
I think I'm out of edible food
 
Maybe even a Haskell C++ Compiler.
 
@ThePhD Amazing
 
4:40 PM
^ ^ That.
 
@R.MartinhoFernandes, no I mean. When gcc compiles a .c file, is the file parser written in Assembly?
 
This sorcery of languages is just mind boggling
 
@Jueecy No, it's written in C or C++.
 
@Jueecy Then why didn't you ask about GCC?
 
I just answered that question. ._.
 
4:41 PM
21
Q: Is gcc C compiler written in C itself?

euphoria83Is gcc C compiler written in C itself ? Or is it written in Assembly ? If the compiler is written in C, then what is the compiler used to compile the compiler code ?

 
user142019
@Jueecy sane people won't do that.
 
@R.MartinhoFernandes I did now. :)
 
user142019
(Sane people wouldn't implement C++ either but whatever.)
 
@DeadMG Isn't that a paradox?
 
4:42 PM
@Jueecy No.
 
It's all so incestuous. There again, incest is preferable to assembler.
 
let's say that you have a C compiler written in assembly. It can compile any C program. So why can't that program be ... another C compiler?
 
Fact: there exists a compiler for the C language. Therefore one can write a compiler for the C language in C and compile it with a compiler for the C language.
 
once a compiler for Language X exists, you can write any program in Language X- including another compiler for Language X.
it's common for language compilers to be written in the language they themselves compile.
 
user142019
4:44 PM
@R.MartinhoFernandes insane
 
Clang is written in C++ and it compiles C, C++, Objective-C and Objective-C++.
 
@R.MartinhoFernandes any idea what was in that second link?
 
Visual Studio's C++ compiler is also written in C++.
 
@LuchianGrigore Hmm, which link?
 
@DeadMG, yeah right. But there had to be one first compiler that couldn't be written in C because that goal was not yet achieved, right?
 
4:45 PM
@Jueecy Yes.
 
@Jueecy Right. But usually, such bootstrapping compilers are almost immediately discarded in favour of a new compiler written in the new language.
 
Xeo
> Awib is itself polyglot in brainfuck, C, bash and Tcl.
Haha, wow
 
@MartinJames fasm compiler (and IDE) is written in fasm.
 
Madman.
 
"I have no life and I must scream"
 
4:46 PM
@LuchianGrigore Oh, I see. It was the classic Reflections on Trusting Trust
 
user142019
PyPy is written in Python.
 
@DeadMG, and what language are these bootstrapping compilers built on?
 
Any language it doesn't matter
 
user142019
There are also JavaScript interpreters written in JavaScript.
 
@Abyx fasm isn't a compiler; it's an assembler.
 
user142019
4:47 PM
The language you write a compiler or interpreter in is irrelevant.
 
@Zoidberg Oh FFS!
 
user142019
As long as it's Turing complete and can do I/O.
 
@JerryCoffin huh? it takes text and produces binary. also it's linker.
 
user142019
@MartinJames well, ES6 interpreter to be exact but whatever.
 
@JerryCoffin At what point does it gain sentience it start counting as a compiler?
 
4:48 PM
@R.MartinhoFernandes cool cool thanks
 
I fixed the broken link btw.
 
newbie made good answer to my question!
 
@Zoidberg Yeah - it has javascript in it, so fuck it.
 
1
A: Manually using multiple types is faster than polymorphism?

DavidI ran the following code to compare the two. As I expected the virtual functions were slightly faster (I will explain why below). #include <stdio.h> #include <sys/time.h> #include <stdio.h> #include <unistd.h> class Object { public: enum Type { ...

 
@Jueecy Doesn't really matter.
 
4:49 PM
18
A: Is gcc C compiler written in C itself?

Daniel A. WhiteOriginally it was written in some assembly language then it began to dog food itself.

Found my answer.
 
@R.MartinhoFernandes Basically, when the input no longer corresponds directly to the structure of the CPU being programmed.
 
> So you’ve now got a C compiler that inserts back-door code when it compiles itself – and that code appears nowhere in the source code of the compiler.
It's really cool.
 
nah
 
@JerryCoffin How do macros factor into that?
 
it's cool, but I don't think it would work that well today
 
4:50 PM
Aaargghhhhh!
 
@R.MartinhoFernandes Fairly well.
 
I mean, I might choose to compile my Wide compiler with Clang, MinGW and VS.
 
Xeo
@R.MartinhoFernandes Wait, what
 
@R.MartinhoFernandes Seriously, you can do some fairly high-level things in macros, but at some point you still have source code that corresponds directly to the CPU's structure.
 
user142019
@Jueecy you can also write them in bash if you want.
 
user142019
4:51 PM
It's irrelevant.
 
Xeo
How does that work. To insert some code, that code has to exist somewhere in some form
 
user784668
@Xeo you're too young to remember that
 
user142019
@Xeo or be generated.
 
Xeo
@Zoidberg counts as "some form"
 
4:51 PM
@Xeo The source code doesn't have to exist.
 
@Xeo It exists exclusively in the compiled form.
 
the point is that the security of a binary depends on the security of the compiler.
and if the compiler compiles itself, then it depends on the security of all previous iterations.
 
@Xeo The compiled form injects the injecting code into every binary of itself it builds.
 
Xeo
So, how did it get into the binary in the first place? :P
 
user784668
Is there a unit test library for C++ that doesn't suck too much?
 
4:53 PM
@Xeo It was put there and then deleted from the source code.
 
user142019
 
Xeo
Guessed as much
 
@Xeo Ken or Dennis (or both) put it there.
 
user784668
@JerryCoffin Ken
 
According to legend, it was ken.
 
4:54 PM
@ThePhD fyi apple used LLVM for shader compilation years ago
 
@BartekBanachewicz Sounds like fun.
 
It was a fallback backend
 
Sounds like not what I'd want to do.
 
Yes
Thats why I am afraid
 
CHAT Y U NO SCROLL FFS
 
4:55 PM
@Xeo It's more or less the compiler cousin of a quine.
 
user784668
GCC contains that backdoor. Its code is just very well optimized and compiles down to 0 bytes.
 
@LightnessRacesinOrbit ??
 
@Abyx It's not a linker
 
user784668
@CatPlusPlus it can be a linker IIRC
 
user784668
4:58 PM
Just a very slow one.
 
user784668
Written in FASMs compile-time language.
 
yep =)
 
@Xeo It was put into the source code. Then, the untainted compiler compiles itself to produce a tainted binary. Then, the source code for that specific bug is removed- but the binary is tainted, so when it compiles another binary from untainted source, the new binary is tainted too.
 
Yeah obviously when you write a linker then you'll have a linker
 
you can parse .obj and produce .exe with fasm
 
4:59 PM
@CatPlusPlus Astounding.
 
@R.MartinhoFernandes Yeah, shit's just pure magic
 
user784668
I have an idea.
 

« first day (887 days earlier)      last day (4070 days later) »