« first day (977 days earlier)      last day (3971 days later) » 

user142019
12:00 AM
The VM is in vm.d if you are interested. It's completely untested and not much is implemented yet.
 
he doesn't compile to native code
 
Native code is bytecode.
Bytecode is the final form you distribute.
Bytecode is used, because running bytecode on VM is faster and much simpler than executing source straight.
Think of VM as a CPU.
 
@DeadMG yeah, that was hypothetical...
 
you can actually get pretty decent execution speeds from a VM
 
@CatPlusPlus Lars Bak is a fucking genius.
 
12:01 AM
The final form compiler/linker outputs is a bytecode.
 
if you tighten it, anyway
fun fact: Wide started as an interpreted language.
 
Whether that's x86 bytecode or some VM bytecode is less important.
 
@CatPlusPlus the only example I know about it Java. And Java is not faster than compiled C++ code. Is it?
 
Ugh, sorry, I'm not going into that discussion again. You can search the archives.
 
@Jeffrey Nope, but executing source straight != executing compiled native code. He means "interpreting the AST directly".
 
user142019
12:03 AM
I don't really care about performance.
 
user142019
This isn't a serious project.
 
user142019
I just want to know more about how stuff works.
 
@DeadMG AST?
 
@Jeffrey Abstract syntax tree...
 
user142019
If I cared about performance I would write it in C# and use Reflection.Emit so it will be JIT-compiled.
 
user142019
12:04 AM
Or perhaps LLVM.
 
There are some books about compiler design if you're interested in the topic.
 
Dragon book = awesome.
 
user142019
The logo of LLVM was inspired by the Dragon Book. (Y)
 
@Jeffrey If you don't know what that is, you are so incredibly out of your depth that I wouldn't bother trying to follow.
 
I never actually read any of them, because I fall asleep on title page of programming books.
 
12:05 AM
At the end of this month I'll check them out then (the books)
 
But supposedly they're good.
 
@BenjaminGruenbaum I heard that it doesn't mention much about semantic analysis. I would suggest that this is the primary burden of a programming language right now.
 
I can tell you stuff, but I'm not discussing ~performance~.
 
lexing and parsing are both not only very easy, but easily accomplished with free tools like lex and yacc
and you can codegen with LLVM
analysis is really the only difficult component
 
@DeadMG Indeed.
 
user142019
12:06 AM
I barely have any analysis.
 
user142019
There is no compile-time type checking at all.
 
Wide has stuff like overload resolution and implicit type conversions :P
 
user142019
Only some stuff regarding scoping.
 
@CatPlusPlus Nevermind. I'll read about them when I'll find the time. :)
 
I've been thinking about eliminating implicit conversions.
 
12:07 AM
Yesss
Dooo it.
 
well
 
You know you want to.
 
it would sure simplify the analyzer to not have them
and overload resolution would be VASTLY simpler
 
user142019
Gear has no implicit conversions.
 
room topic changed to Lounge<Type Systems>: No implicit conversions. [c++] [c++11] [c++-faq] [no-helpdesk]
 
12:08 AM
would be kinda annoying through to have to do f(std.string("hello, world")) every time.
 
@DeadMG No, it doesn't go into depth of semantic analysis (does talk about it though). However, I don't think it's the primary burden of the compiler. I think that for what @rightfold is doing a pretty straightforward recursive descent parser should work when building the AST, then again I'm not really sure what his language really looks like.
 
user142019
f(cast "hello, world!")
 
@rightfold does your language have generics?
 
"hello, world".cpp
 
user142019
@BenjaminGruenbaum no.
 
user142019
12:09 AM
@BenjaminGruenbaum Parsing it will be very easy.
 
user142019
It's the simplest grammar you can possibly imagine.
 
@BenjaminGruenbaum well, codegen, lexing, and parsing are both pretty simple to get right.
 
@rightfold Can you throw throw throw?
 
lexing and parsing were both especially easy
 
user142019
@CatPlusPlus no.
 
12:09 AM
Parsing can be annoying.
 
@Jeffrey Awww
 
:)
 
user142019
throw is a statement, not an expression. It's of the form throw; or throw <expression>;.
 
You guys should stop masturbating and go to bed
 
@DeadMG I don't think making a compiler is really that hard for the most part, I think the hard part is stuff like type-checks sometimes but mainly optimizations. Writing a compiler that outputs fast code is really hard (and very interesting).
 
user142019
12:10 AM
I am not sure how I will do try/catch/finally in my bytecode, though.
 
user142019
Might look at how Java and .NET do it. Or Python.
 
For example, the sun Java compiler is broken and uses heuristics for generics at times (Java generics are broken). Then again a broken compiler for a broken language is not very surprising.
 
user142019
@BenjaminGruenbaum It also depends on the complexity of the language.
 
user142019
Writing a compiler for C++ is much more difficult than one for, say, Go.
 
Java generics are pretty useless.
 
12:12 AM
@rightfold Yeah it does. I think C++ is probably one of the hardest languages to write a compiler for.
 
user142019
I think D isn't too easy either. :v
 
s/generics are/is/
 
C++ is insanely hard to parse.
 
user142019
Java is broken, obsolete and terrible.
 
The grammar is a gate to hell.
 
user142019
12:13 AM
C++ is impossible to implement.
 
ITT We have found the gates to Hell.
C++ grammar <---- The gate to hell. Welcome in Hell!
lol
 
You start implementing C++ and before you know it you're in a white fluffy room muttering to voices in your head.
8
 
user142019
Gear has a pretty trivial grammar.
 
ahahahahah
 
user142019
Brainfuck is easy to parse.
 
12:14 AM
SSsstatement you sssay.
 
user142019
I once wrote a Lisp parser in Python.
 
user142019
Was also very easy.
 
user142019
Not even monadic.
 
Lounge<Type Systems>? Does that mean a C-tag without pluses will be added to this room soon too?
 
user142019
@Will Lounge<Type Systems>, not Lounge<Lack of Type Systems>.
 
12:16 AM
not a chance in hell
 
@BenjaminGruenbaum That's what LLVM is for.
 
Even C++ doesn't have a very good type system.
 
@DeadMG LLVM is awesome.
 
user142019
Rename the room to Java and see how many fucking idiots people instantly post terrible questions written in Engrish.
 
12:17 AM
@rightfold I don't understand.. :s
 
user142019
@Will reply to message.
 
@rightfold This is a terrible idea.
 
user142019
Because now I don't understand you either.
 
@rightfold fine
 
@BenjaminGruenbaum I might have to hand-roll some opts soon, though
 
user142019
12:18 AM
@CatPlusPlus Those morons even ask Java questions in the Java Sucks room.
 
user142019
Apparently they can't read.
 
also, holy shit I am currently pretty sick
 
user142019
@DeadMG Me too. :(
 
excuse me whilst I retire to the bathroom for the next thousand hours
 
user142019
Lounge<Sick>
 
12:19 AM
I doubt that you are as sick as me
 
user142019
I have no idea.
 
user142019
I'm in doubt.
 
user142019
We're all weaklings.
 
@rightfold so waddayamean "not Lounge<Lack of Type Systems>"?
 
user142019
I have no idea what the hell you're talking about.
 
12:20 AM
@rightfold I was in the Java room once, it was horrible. I got there by clicking on a moved message in the Java Sucks room. I got pinged by a bunch of idiots people asking me how to raise satan do stuff in Java but all their problems were a result of them being idiots not knowing how to google and not knowing trig.
 
@Will C has a shitty type system that might as well not be there.
Articles, important.
 
@CatPlusPlus but it's there regardless of your opinion on it
 
And it's shitty, so?
 
I think C++ as a whole is a shitty language, so?
 
It's not ~my opinion~ it's ~my evaluation~ in context of everything I know about type systems.
 
user142019
12:23 AM
FYI, "Lack of" was a joke referring to C's type system allowing you to do everything you want so it basically could've just not been there at all and it would be just as bad.
 
Aww, you think I like C++. :shobon:
(Or that you saying mean things about language I might like means something, I don't know)
 
user142019
Do you still like/use Haskell?
 
C has primitive, unhelpful, weak type system.
It guarantees nothing, it helps with nothing.
@rightfold Sure, it's still a great language.
And if you think C's type system is good, then you never used a real type system.
 
user142019
C brings you all the power of assembly with all the expressiveness and readability of assembly.
 
I mean, holy shit, it has implicit conversions that completely lose type information.
 
12:25 AM
sure it does.... C's types let the compiler to warn the coder of blatant mistakes, if nothing else
 
Oh?
int* x = malloc(sizeof(float)); // WELP
 
Pop quiz: which C++ celebrity made the following bold statement in an interview? #cpp #loungecpp [will post solution with link in a day]
 
user142019
I think clang warns there.
 
All of them.
 
Or better, int x = 42; int* a = &x; void* b = a; some_unrelated_type *c = b;
 
12:26 AM
if you're going to go out of your way to do stupid stuff, no language will save you...
 
:lol:
You never used a real language.
With a real, helpful, expressive type system.
And no, it's not "going out of your way".
It can happen accidentally, and you're shit out of luck.
 
a "real language"? you sound like a 12 year old...
 
printf("%d", string_variable); // woops
 
user142019
Error.
 
@Will Oh fuck off.
 
12:27 AM
@Will Meet the cat :)
 
lol
 
Jesus fanboys of broken tools are perplexing.
C is not a good language by any metric.
 
This includes C++ programmers in most ways :)
 
user142019
@CatPlusPlus I haven't used it in a while. Are there any interesting libraries/concepts you've discovered lately?
 
user142019
12:29 AM
I really like lenses but I want to try something new.
 
user142019
I like playing with Haskell.
 
Anyways, I was just dropping by on my way to bed. It's late :/ Have a good time (try not to kill any C++ pagans)
 
@rightfold Last month-two I was doing uni shit.
 
user142019
OIC.
 
Play with arrows.
 
12:29 AM
And knees
 
user142019
Speaking of that, I need to make an Android app. ;_;
 
And FRP.
 
user142019
Stupid terrible retarded SDK I cannot even pass an object to a new activity.
 
user142019
Maybe I can subclass Intent.
 
Uh use extras.
 
12:30 AM
@TonyTheLion (aye aye, sir)
 
user142019
Need to be Serializable or Parcelable. :v
 
user142019
It's retarded and primitive.
 
Like entire thing, gotta work with what you have.
 
user142019
It's something that PHP programmers would do.
 
Serializable is zero-effort.
Just don't try to persist that crap.
 
user142019
12:31 AM
lol :P
 
For transient serialisation it's, eh, good enough.
I tried to write Parcelable implementations for communication classes, but fuuuuck that.
 
user142019
deep_clone() {
    return self.serialize().deserialize();
}
 
user142019
:D
 
@rightfold Many languages do that.
 
user142019
I think I'll just avoid writing the Android app.
 
user142019
12:32 AM
I'm quitting anyway.
 
That's always the best solution.
Well, not quitting.
Ugh it's 2:30 and 22 degrees outside.
I need to get that fan bad.
 
user142019
I can spend my time more wisely by learning more about Haskell and D, and by going back to work and earning money.
 
And a haircut.
 
user142019
I've never seen you.
 
user142019
Do you have nice hair?
 
12:34 AM
I don't have nice things.
 
user142019
Stop posting pictures of disgusting animals. You look like Telkitty.
 
Sorry :(
 
@CatPlusPlus I'm here!
 
bint
 
I had a joke, but it'd be really awkward.
 
user142019
12:39 AM
Tell us anyway.
 
user142019
Jokes are always fine.
 
user142019
No matter what they're about.
 
@Kate Why would you ask that in a C++ room?
 
user142019
@Kate Nobody here is familiar with that.
 
user142019
12:40 AM
I can tell with 99% certainty.
 
Feel free to get lost.
 
user142019
@Jeffrey This is not a C++ room.
 
@Jeffrey @rightfold - because the chatroom's description was "Lounge<Type Systems> No implicit conversions."
 
user142019
This is a room for general discussion about type systems, as you can read in the title.
 
@Kate Email systems are not type systems.
 
12:42 AM
Right
 
@rightfold, thanks
 
user142019
Backtickfail.
 
damn, backticking code such a habit
 
okay, my appologies
 
user142019
12:42 AM
Thank you. Have a nice day in here or wherever you go.
 
?
 
user142019
My legs are muscular.
 
user142019
From all the cycling.
 
user142019
I should cycle less and take the bus more øften.
 
Chatroom title is "type systems", perfect place to ask about SPF.
PROGRAMMERS REALLY GOOD AT LOGIC.
 
12:44 AM
@DeadMG "no-helpdesk", it was a simple question
 
@rightfold People usually wish the other way around
 
user142019
s/LOGIC/PROPOSITIONAL CALCULUS/
 
there is no need for being snarky
 
I'm employed by Lounge Inc. to be snarky.
 
howdy pipples
 
user142019
12:45 AM
It's time for a new room title and description.
 
Just doin' my job.
 
@CaptainObvlious How's your sister?
 
user142019
Lounge!Wide
 
room topic changed to Lounge<HODOR>: HODOR HODOR HODOR HODOR HODOR HODOR HODOR HODOR HODOR HODOR HODOR [c++] [c++11] [c++-faq] [no-helpdesk]
 
@Jeffrey Very good thanks. She was discharged earlier today
 
12:46 AM
What a good news. :)
 
@CatPlusPlus lol
 
user142019
Do I see a GoT reference there?
 
Hodor.
 
You don't say?
 
user142019
12:47 AM
More like Lounge<HORROR>.
 
@Jeffrey indeed it is. Will be a while before we know the extent of any damage though but she's for a pretty good outlook
 
@CaptainObvlious What happened to her?
 
@DeadMG she fell and ended up with concussion. was unconscious for an undetermined about of time with a BP of around 30
 
@DeadMG, my gosh, I apologized, WTF do you guys have to be such asses about this
 
@Kate I love ass!
 
12:49 AM
@CaptainObvlious Oh =/ I hope she recovers with minimal damage!
 
@Kate Why are you still here?
 
Some people don't know when to stop posting.
Lurk more.
 
@Kate Just explicating unto you that I don't give a shit about the simplicity of your question. In case you thought I cared. I don't. Have a nice day!
@CaptainObvlious That's not amusing (unless you're a horrible person, I guess).
 
@rightfold What Android app is that?
 
@Borgleader Thanks. Things look good so far but she has some existing problems that were agitated by the low BP. I'm hoping to get down to see her in a couple of days
 
user142019
12:52 AM
Note-taking application that stores the notes on a server.
 
Sounds fun ;-)
 
user142019
I want to write the server in Haskell with acid-state as storage.
 
@DeadMG What's not amusing? not sure I'm following you
 
Bed time. See ya tomorrow.
 
Public notes?
 
user142019
12:52 AM
No, it's not fun.
 
user142019
It's a fucking terrible nightmare.
 
lol
 
@CaptainObvlious People being seriously injured.
 
user142019
Only the server part is fun because I can do it in Haskell.
 
Java Rocks!
 
12:53 AM
@DeadMG I don't recall making a joke about anyone being injured. not something I would do at least not intentionally
 
or you could do the app in C and use the Android NDK
 
that's not what I meant.
I meant, "I am taking this matter seriously and do not find it amusing.".
 
or I've heard there's a Python runtime for Android...
 
unlike how I take the piss out of virtually everyone and everything else
 
@rightfold Anyway...good luck with that ;-)
 
12:54 AM
@DeadMG oh. sorry I'm not entirely with it at the moment
 
user142019
> comparison is done when lesser and greater are created, with <, >=Ord is a typeclass restricting a to be orderable — if it wasn't used, you could use < or >=.
 
user142019
@CatPlusPlus shouldn't that be "couldn't" instead of "could"?
 
I did have an OtterPop today
 
What where
 
user142019
23
A: How does quicksort in Haskell work?

Cat Plus Plus There is no swap, because this is not the (almost-)in-place version of QS. Instead, new lists are built and then concatenated — comparison is done when lesser and greater are created, with <, >= — Ord is a typeclass restricting a to be orderable — if it wasn't used, you could use < or >=. No, be...

 
12:56 AM
Oh no, that crappy post.
 
Better delete it
 
Yeah it probably should be couldn't.
 
user142019
lol
 
0
Q: Need sameoutput for different inputs

user2125827I have two inputs "input1" and "input2" for which i need the same output(expected output shown below)..am able to get the expected output below for input2..however for input1..the out is not the same as expected output..actual output for input1 is shown below...can anyone provide inputs on what ...

 
I've edited.
 
12:57 AM
@ThePhD Watttt how? UE3 or UE4?
 
> ZOIDBERG IS STALKING MY OLD POSTS BETTER FIX THEM
lol
well...I'm out. All have a nice day
 

« first day (977 days earlier)      last day (3971 days later) »