« first day (855 days earlier)      last day (4076 days later) » 

user142019
10:00 PM
Hi.
 
hi
how is Zoidlang coming along?
 
user142019
Fairly well.
 
Does it work yet?
 
I thought you were working on a C# parser.
Not that it means much in your case.
 
10:01 PM
@R.MartinhoFernandes He's working on everything.
:P
 
top gear calls
 
user142019
Currently completing the AST structure.
 
@R.MartinhoFernandes Do you know this one? In Haskell, what does the following yield? reverse "foo()bar"
 

Tỏmȧlǎk impersỏnâtes trỏlls

9 mins ago, 6 minutes total – 32 messages, 5 users, 1 star

Bookmarked 3 secs ago by sehe

 
user142019
As in, all the data types.
 
10:02 PM
@FredOverflow "rab)(oof"?
 
@R.MartinhoFernandes Damn you're good. Most people fall for the ().
 
@R.MartinhoFernandes On there, your sample for use_replacement_character uses discard_errors.
 
Ooops.
Thanks, btw.
 
user142019
Does .NET support multiple base classes?
 
@FredOverflow Hah, I have been reading about the Unicode bidi algorithm recently, and () are one case that requires particular attention, so I am kind of trained to care for it now.
 
user142019
10:03 PM
As in, IL.
 
@Zoidberg No.
 
@Zoidberg No.
 
user142019
FUCK.
 
Yes.
 
user142019
10:04 PM
Yes?
 
yes, you're fucked.
 
But its support is poor.
Don't bother with it.
It's only meant for C++/CLI.
 
I thought they decided it wasn't worth the effort.
 
Why do you need multiple base classes?
 
@R.MartinhoFernandes Oh. That page? I can't read it. @R.MartinhoFernandes the font is just a little to thin. Zooming doesn't help: it's that thin. Also, it looks like the code is in proportional font?
FTR: It is beautiful. Just a shame it's hard to read
 
user142019
10:04 PM
Zoidlang shall support multiple base classes.
 
user142019
And for some reason I'm implementing it for .NET.
 
nyaha
go go Captain LLVM.
 
^ chrome
 
user142019
And inline assembly but that shouldn't really be a problem.
 
 
10:06 PM
On a similar subject, I can't remember when I needed multiple base classes.
 
@sehe Holy shit, what the fuck did you do to the colours?
 
@sehe High brightness, low contrast. Awesome.
 
@Zoidberg Are you designing a language with implementation inheritance? That's so 90s.
 
-1
Q: How to use lineBuffer in C++?

Nitesh SethiaWhen doing hand ons and challenges in CodeEval.com. I came to know about lineBuffer. I just know it takes something from file. Code that i came accross.... int main(int argv,char**argc) { ifstream file; file.open(argv[1]) while (!file.eof()) { getline(file, lineBuffe...

 
@DeadMG To be honest, it looks a little less whit on my monitor. However, I did nothing to the screen shot. Mmm
 
10:07 PM
-3
Q: lineBuffer in C++

user2081362I was just browsing some coding stuff and noticed this code: int main(int argc,char** argv) { ifstream file; string lineBuffer; file.open(argv[1]) ; while (!file.eof()) { getline(file, lineBuffer); if (lineBuffer.length() == 0) continue; //ignore all empty lines ...

 
@sehe Woah woah.
 
the black is like, "Fuck being black, Michael Jackson had it right! Time for some cosmetic surgery."
 
Look, my screen can actually render black.
 
@R.MartinhoFernandes I was only looking in chrome to rule out Opera mispresenting the page
@R.MartinhoFernandes Well, that page is still exceptionally hard to read for me. Here's opera with it:
 
10:10 PM
Use Verdana and be done with it
 
That's totally fucked up :(
How the heck did you end up with proportional font code.
 
are you still discussing ogonek's page?
 
Not still, again.
 
Add generic monospace family at the end
For pre/code
 
@R.MartinhoFernandes I dunno. It just ... browse :)
 
user142019
10:12 PM
public GetterDefinition Getter { get; set; }
public SetterDefinition Setter { get; set; }
 
user142019
How meta.
 
What is that
abomination
 
@Zoidberg It's bad that "Getter" returns a definition, not a Getter
 
@CatPlusPlus just zoidberg being zoidberg
 
public Getter Getter { get; set; }
?
 
user142019
10:13 PM
It's the AST.
 
IMO the ogonek page is too white
 
Also my raycasts just almost work
 
user142019
I could be pedantic but I'm not.
 
just nearly always just minimal fixes
 
^ funny how I read "racists" in that context... again
 
10:14 PM
@Rapptz IMO, it shouldn't set the background color at all. I have my browser set to the background color I want, and it shouldn't futz with it.
 
@JerryCoffin I can set High Contrast W/B but... it's even uglier
 
user142019
Hmm.
 
user142019
To RAII or not to RAII. :P
 
I should have used the word "bright"
ah well.
 
10:15 PM
I think only the first voxel traversion is bad
 
user142019
Seen the fact that there are no statements it seems a bit silly.
 
@Zoidberg Absolutely do.
 
@Rapptz It's a Whiter Shade of Pale than I prefer.
 
I have a problem.
 
user142019
10:20 PM
if (foo is Bar) {
    // foo is automatically cast to Bar. :L
}
 
user142019
I WANT THIS. xD
 
Xeo
@BartekBanachewicz You mean the plants?
 
@Xeo no. I have blending turned on right now. I have a problem with voxel traversal during raycasting
 
Xeo
Mhm
 
@BartekBanachewicz Looks like Minecraft.
 
10:22 PM
Hmm, is u8"\x80" valid in C++?
 
@EtiennedeMartel it's Minicraft!
the point is, the algorithm leaves the first voxel, but it shouldn't
it should first find the exit point
and I don't know how to do it without terrible code repeat or ugly flag
next steps are okey, because they always "jump" from one plane to another
but in the first case, start point doesn't lay on any integer plane
 
@Zoidberg you mean "interpreted as" (not: cast to)
 
right!
 
user142019
@sehe yes.
 
in theory, I now have functions.
time to see how hideously badly this is going to go wrong.
 
user142019
10:25 PM
Or at least some statement like this:
 
user142019
foo is a Bar in this scope;
 
oh goddamn it puppy you'd know how to solve it why did you have to plonk me when I need you :( <headdesk>
 
it is all about karma
 
am I a bad person?
 
user142019
Also nothing is nullable by default.
 
10:27 PM
@BartekBanachewicz Definitely (though probably not any worse than the rest of us).
 
user142019
And if you call a .NET function that returns null you need to explicitly state that it can do so and otherwise UB.
 
what the fuck!
it worked first time.
that shit should be illegal.
 
Apparently it is.
 
user142019
haha
 
user142019
I should work too.
 
10:30 PM
Main() {
    Help();
}
Help() {
    cpp("<cstdio>").printf("Hello, World!");
}
 
So C++ allows you to explicitly create invalid UTF-8 strings like u8"\x80". That will be useful for my examples.
 
@R.MartinhoFernandes Much in the spirit of C++, yese
> A string literal that begins with u8, such as u8"asdf", is a UTF-8 string literal and is initialized with the given characters as encoded in UTF-8.
 
compiles and executes without flaw.
 
lol
 
@DeadMG It's a trap.
 
10:32 PM
yeah
 
@R.MartinhoFernandes you're joking right? wouldn't it UTF8 encode the 0x80?
 
I wasn't actively aware of this jungle that is C++ string literals:
> A string literal is a sequence of characters (as defined in 2.14.3) surrounded by double quotes, optionally prefixed by R, u8, u8R, u, uR, U, UR, L, or LR, as in "...", R"(...)", u8"...", u8R"(...)", u"...", uR"*˜(...)*˜", U"...", UR"zzz(...)zzz", L"...", or LR"(...)", respectively
@doug65536 why. and how? You mean, it should assume a source charset/encoding in the source?
 
u8 has no effect?
 
@doug65536 it tells you the element type. That's effect
 
@doug65536 Oh, of course. Dammit.
I need to find a workaround then.
 
10:34 PM
How would it trancode to UTF8? Assuming iso8559-x?
 
What is '0x80', so what would it be in UTF8?
 
0x80 is 0x80.
UTF-8 makes that 0xC2 0x80.
 
Yeah, but that could be... anything depending on charset/encoding
 
11000010 10000000 I think
 
10:36 PM
@sehe It is 0x80.
You don't have to give it meaning. UTF-8 only deals with numbers.
(it's a control character)
 
It's codepoint 0x80
At least it should be
 
@R.MartinhoFernandes But in UTF8, it "has" meaning? Or does UNICODE not assign any meaning to low codepoints?
 
@sehe UTF-8 encodes numbers.
 
@R.MartinhoFernandes Thats meaning.
@R.MartinhoFernandes Mmm. TIL
 
I want a 3D display
too see this goddamn ray.
 
10:37 PM
So, you're saying, basically, you could do latin1 in a YTF8 encoding? Mind blown
 
It's undebuggable
 
@BartekBanachewicz Unit tests
 
oops
 
@BartekBanachewicz Draw a block with a certain thickness.
 
@sehe Latin-1 is a set of meanings attached to numbers between 0-255.
 
10:38 PM
Thatw ay it'll get smaller as it goes into the distance.
 
@ThePhD what?
@sehe it's just not working goddamn it
How am I supposed to test something that's not working
 
@R.MartinhoFernandes Inorite. So, you could encode them in UTF8 and end up with gratuitous MB char representation for latin1?
 
turns out I accidentally destroyed the original AST.
 
@BartekBanachewicz How would you test something that is?
 
so when completely needlessly and buggily generating the same code twice (oops), it had nothing left.
 
10:39 PM
@sehe Tests would ensure that I won't break it
 
@BartekBanachewicz In the absense of unit test, you always have the option of creating one.
 
@sehe Stuff like that happens sometimes. Then you get mojibake.
 
Especially when things are "undebuggable"
 
huh.
 
Unit test for that would take 3 times the code size
 
10:40 PM
@DeadMG lol
 
when calling printf("Hello World!") once, I got an object file of 461 bytes.
 
@R.MartinhoFernandes I mean, it's useless, but could be valid (if you're a masochist), right?
 
when calling it three times, I got ... 461 bytes.
 
@BartekBanachewicz Start with 1 instance. See if and why it works
 
user142019
Hmm.
 
10:40 PM
was so convinced the Wide compiler had bugged out, but actually, it executes exactly as expected.
 
@DeadMG Ultra-efficient compression, automatically present in Wide ?
 
@sehe Sure. You just need to have an established agreement upon that meaning. Please don't.
 
@ThePhD I didn't even enable optimizations.
 
Design so good, it confuses the creator!
 
except for those really general optimizations where the compiler bugs out if you don't optimize the output...
 
10:41 PM
(Also, latin-1 matches the [0, 0xFF] range of Unicode perfectly)
 
but I think I fixed that.
 
@R.MartinhoFernandes No I won't. Just making sure I got the "UTF8 encodes numbers" statement right. That's actually quite nice. I could use that for un-text-related stuff, one day
@R.MartinhoFernandes I knew that too.
 
I haven't written a Latin1 or any Codepage encoding...
Really, I'm just waiting for ogonek to be MSVC usable, e.g. when MSVC gets the sand out of their vaginas and gets to work.
 
@sehe I don't have reference implementation. Right now I'm calculating the results by hand and look at the screen. Whilst most of the time ray hits the correct cube (and it dissapears), sometimes it's a bit off, and I just don't know why. I've been very creative with debug output, as to (shown on previous image) reverse ray, i.e. creating cubes on its way
 
just left a comment for my future self
    // Currently DESTROYS the original AST! FIX
 
10:42 PM
@ThePhD never?
 
@Rapptz I figured: M icrosoft S andy V agina C unts. =[
5
 
@BartekBanachewicz You don't need a reference implementation?! That's ... hilarious. You just need expectations :) You should know what behaviour you expect. Of course, I'm not aware of what exactly it is you're doing. (E.g. I guess, CUDA and Unit Tests won't naturally mix.)
 
Sand is part of the implementation.
 
Wait.
auto x = u8"\x100";
> main.cpp:4:14: error: hex escape sequence out of range
 
LOLWOT
 
10:44 PM
WTF.
 
@R.MartinhoFernandes ... Nice.
 
@R.MartinhoFernandes 0xff should be maximum for u8
 
@BartekBanachewicz It handles \u0100 just fine.
 
@sehe I'm not using CUDA atm. It's just raycast through normal table of cubes.
 
@R.MartinhoFernandes That's with -Werr
 
10:45 PM
@R.MartinhoFernandes hmm is 0100 equal to x100?
 
@ThePhD should work fine with my Sandy Bitch CPU then :)
 
@BartekBanachewicz Then, your expectations are more than enough to write unit tests. If you have them
 
@BartekBanachewicz Yes.
 
@R.MartinhoFernandes because last time I've checked 0number was octal
 
I think I forgot about the null-terminator.
@BartekBanachewicz There's \u first!
static_assert(sizeof(u8"\x80") == 2, "");
Of course this is 2. I suck.
static_assert(sizeof(u8"\u0080") == 3, "");
Time to check if GCC is correct.
 
10:47 PM
hmmm
 
Hmm, seems so. Only universal-character-names are to be encoded.
 
curious fact of life: global.global = global.
 
So \x80 does put me a literal 0x80 in the string.
Haha! I can make invalid sequences for my examples after all.
Awesome.
Also, this sucks.
 
that sucks horribly!
 
10:49 PM
@DeadMG is that assignment?
 
@sehe No, it's analyzer internal magic.
 
what good is u8, can someone enlighten me?
 
@doug65536 Little.
 
I have never gotten u8 to work
 
@R.MartinhoFernandes not really. It is C++ after all? Assume the programmer knows what he's doing. Don't pay for anything you don't need. All that jazz
 
10:49 PM
On the note of octal literals, octal literals should die in fire
 
Yes please
 
they removed the old 'auto' semantics so they balanced the universe and made u8 utterly useless? :)
 
@sehe Not quite. u8"\u0041"? Ill-formed (that's a capital A btw; go figure). u8"\uD800"? Ill-formed (it's a surrogate).
 
Main() {
    global.Help();
    global.Main();
}
Help() {
    cpp("<cstdio>").printf("Hello, World!");
}
teehee
 
10:53 PM
why do you call global.Main()
 
U"\U00110000"? Ill-formed (it's outside the Unicode range). u"\uFFFF"? Well-formed (it's not a legal Unicode character!).
 
@Rapptz Infinite loopin'
 
@FredOverflow I have heard he's mixing things up badly
 
@Rapptz Checking my mutual recursion.
I also did
 
@sehe In this video, or in general?
 
10:54 PM
Main() {
    Help();
}
Help() {
    cpp("<cstdio>").printf("Hello, World!");
    Main();
}
 
@FredOverflow In a video. I might be able to find the quote
 
@Rapptz MSVC?
 
@R.MartinhoFernandes on GCC and MSVC
I kind of assumed it just wasn't implemented by anyone
 
It works on GCC.
 
OKAY
I've had enough coding.
 
10:56 PM
@FredOverflow I think this refers to that vid you linke
 
I'm gonna draw something.
Any requests?
 
a microsoft sandy vagina cunt
 
That just sounds gross. :c
 
so?
 
So, I don't want to draw it.
 
10:59 PM
how about a doorknob? :D
 

« first day (855 days earlier)      last day (4076 days later) »