« first day (810 days earlier)      last day (4154 days later) » 

12:02 AM
Oh hi
 
Ell
I wonder when well have artificial stomachs
 
user142019
lol
 
user142019
One you manually have to refill with H+ (aq) + Cl- (aq).
 
user142019
Through a stoma.
 
Ell
How do humans make stomache acid?
 
user142019
12:05 AM
Through chemical processes.
 
user142019
Hydrogen you get from like all food you eat, and chlorine I really don't know.
 
user142019
Nuclear fusion. xD
 
Yeah, occasionally I explode and wipe a town.
 
user142019
@DeadMG when you traverse your AST, do you use dynamic_cast to find out e.g. what kind of statement (if-statement, while-statement, expression-statement) a node is? Or do you do it differently?
 
user142019
12:09 AM
I once went to a nuclear fusion centre in France with high school.
 
user142019
It was pretty impressive.
 
user142019
They are trying to fuse hydrogen to helium and get energy out of it.
 
user142019
It'd be much more efficient than nuclear fission.
 
user142019
And you have no problems when it comes to nuclear waste; all you produce is harmless helium.
 
Ell
Radio active helium
 
user142019
12:11 AM
You don't get radioactive helium from fusing hydrogen.
 
user142019
How many neutrons do you want to put in it?
 
user142019
It's not like they use 5-H (if that can even exist).
 
user142019
IIRC, they use H and D.
 
user142019
Gimme a sec.
 
Ell
Duetrinium
 
12:12 AM
@Zoidberg'-- ye
 
Ell
and tritium I think
 
damn
 
Ell
something like that xD
 
I had expelliarmus from both ends
simultaneously
 
@Zoidberg'-- "Gastrointestinal absorption from food or water is the principal source of internally deposited chorine in the general population. Chorine as chloride is an essential nutrient in the human diet and is necessary for healthy nervous and digestive systems."
 
Ell
12:14 AM
Nuclear fusion really does seem to be the silver bullet
Wow
@deadmg pic or it didn't happen
 
lol
 
user142019
 
user142019
Hmm. You do get a neutron. xD
 
user142019
@DeadMG ah thanks.
 
user142019
I think I'll do that as well.
 
Ell
12:15 AM
In all seriousness how do you deal with that?
 
user142019
Well
 
user142019
Helium is very stable.
 
Ell
I'm assuming your bathroom only has one toilet. But zoidberg carry on
 
user142019
And you get one neutron for two hydrogen.
 
well
 
user142019
12:16 AM
I don't think it does too much harm.
 
I'm fairly certain that I've chucked up/shat out probably everything in my system.
 
user142019
It's not like you get chain reactions as is the case with uranium.
 
Ell
What about that extra neutron? I guess that carries on the chain reaction?
 
I mean, by now, I'm not even shitting out shitty water, it's plain just water
 
Ell
Heh oh.
 
user142019
12:16 AM
@Ell Neutrons decay after ~16 minutes. Helium and hydrogen are fairly stable, so it shouldn't be a problem.
 
Ell
@deadmg really?
 
basically
I mean, it still smells a bit, but if you looked in the toilet bowl, you couldn't tell the difference
 
Ell
I guess your insides must be pretty clean then :L
That's ever so odd
Are you diseased? Or some predisposed condition? Or allergic reaction?
 
dude
norovirus is going around right now
ain't you read the news?
 
user142019
 
user142019
12:19 AM
So, no problem. :P
 
user142019
You'll get a neutrino and some hydrogen. xD
 
what's ve, energy/
 
user142019
Anti-neutrino.
 
user142019
Overline means anti-matter.
 
user142019
For some reason I know all these things.
 
user142019
12:22 AM
In the past I knew the periodic table symbols, names and atomic masses from hydrogen to krypton. For some reason.
 
Ell
@deadmg my area already got norovirus ages ago
A school near me closed down as over 100 children caught it
It had to have a "deep cleanse" by a biohazard team xD
 
lol
 
Ell
I wonder how small you could make a fusion reactor
 
very
you can make homemade fusion reactors
just don't expect them to do anything useful
 
Ell
Ahh yes
I wonder how small the smallest useful one could be
 
user142019
12:25 AM
You have a very big fusion reactor at home. It's also called a black hole aka yo momma.
 
Ell
could you fit one on a boat?
 
user142019
In a 150 years, maybe.
 
Ell
Some boats use fission don't they?
 
user142019
Fishing. *
 
@Ell Dude, I've seen one that the guy fit in his fuckin' closet.
@Ell Yes, quite a few.
 
user142019
12:26 AM
I want a hydrogen bomb.
 
Ell
@deadmg a fission reactor in your closet? I want one!
 
no, fusion
the fission reactor was in the small basement
 
Ell
@zoid so you can blow up your village? ;)
 
user142019
@Ell along with all of Belgium and half of The Netherlands. :^)
 
user142019
I'd love to see somebody leak information about Dutch military nuclear bomb facilities.
 
Ell
12:29 AM
Wikileaks
 
user142019
Such as their locations and all the details, including internal documents and what bombs there are stored.
 
anyone recommend a good tutorial for uml class diagrams?
 
@DeadMG does destroying the earth count as useful?
 
user142019
@user1014888 does using UML seem useful?
 
Ell
It is with hundreds of classes
 
user142019
12:30 AM
(I don't know any good UML tutorials. :P)
 
@Ell I see how you might have gotten your germ-"ophobia" then
 
no, but i have a exam soon which it will come up in
 
user142019
Well,
 
user142019
ask your teacher and read the material he/she gave you.
 
Ell
@sehe yeah :S but I've had it for a long time. My mother imbued it in mev
 
12:30 AM
@Zoidberg'-- Erm. Why, exactly?
 
user142019
@sehe 4fun
 
@Ell I know. Just kidding
 
the problem is he left us mid way through term lol
 
@Zoidberg'-- 11kay
@user1014888 wut? get your money back
 
user142019
To see people panicking and all the news on Dutch television, and how ministers om opheldering worden gevraagd and how everybody is in shock.
 
Ell
12:32 AM
@sehe haha :) do you have any phobias?
 
user142019
I have Java-o-fobia and PHP-o-fobia and moron-o-fobia.
 
its funded by the government so not my money just my time i want back
 
Ell
@zoid didn't Sweden set up an arms factory in soudi Arabia? Sweden and the Netherlands are the same, right?
 
user142019
I don't know.
 
user142019
I just want to know the details about Dutch nuclear bombs.
 
12:33 AM
java is best in my opinion from what i have studied
 
user142019
Java is the worst language ever.
 
user142019
It worse than PHP.
 
your reasons?
 
Ell
Java is okay IMHO
 
user142019
Java is most vexing.
 
user142019
12:34 AM
Its type system is terrible.
 
Ell
It could be much much worse
 
user142019
Like PHP. xd
 
i think its ok, ruby confuses me more the way you don't specify types when creating variables
 
user142019
It has no lambdas. (Yes I know, Java 8 and all, but that's pretty late.)
 
user142019
@user1014888 you do: foo = MyClass.new
 
user142019
12:36 AM
Here, MyClass.
 
user142019
Also, Ruby is duck-typed. You rarely care about the type of an object.
 
is nice to know and be able see every objects type
 
user142019
> Unsigned integers were deliberately left out of Java because James Gosling believed that programmers would not understand how unsigned arithmetic works.
 
user142019
OMG T_T
 
Ell
My language will have main = psychic_infer
 
user142019
12:37 AM
s/programmers/fucking morons/
 
will we still need computer languages in 15 years?
 
user142019
Java enforces throw specs except for some exception types.
 
Ell
That is one thing I hate
surrounding thread.sleep with try catch is useless
 
its probably the only bad part of java
 
Ell
I think warnings should be issued
 
user142019
12:41 AM
Java generics are type-erased. That's terrible.
 
@Ell nothing out of the ordinary. I think. Hesitance in public. A little anxious for flying (or maybe traffic in general). Nothing that's stops me from doing stuff.
 
Ell
I hate insects :o
 
it's backwards- compatible
 
Well, I do avoid traveling by touring car. At quite a cost
 
user142019
Java has no type-inference. Also most vexing.
 
12:42 AM
@Ell I think they're okay. I'm not sure how much of it is down to spices
 
Ell
They look so diseased. Also Im not too keen on flying either although I do a lot
@sehe spices?
 
"to look diseased" - erm. that's a new one for me
@Ell grasshoppers - fried. It's the crisps of Africa.
Obviously, I only tried when I actually was in Africa :)
 
Ell
Wow :L
and yeah flies are just gross creatures, growing up in rotting stuff
 
user142019
In Zoidlang, how shall I do exception safety. I use a GC.
 
user142019
I'm thinking of three different things:
 
user142019
12:47 AM
(1) scoped specifier for variables; no re-assign, out of scope -> call cleanup member function. (2) Python-like with/C#-like using. (3) finally.
 
user142019
I find finally annoying so I'm basically choosing between (1) and (2).
 
Ell
Will your implementation be compiled?
 
user142019
Nope.
 
user142019
Well, maybe to bytecode similar to Python. :P
 
user142019
But you just invoke zoid foo.zoid and it will execute it directly, like Node.js, CPython and MatzRuby. There is no separate compile-to-executable step.
 
user142019
12:52 AM
Though you will be able to do address of, pointer arithmetic and dereferencing if you want.
 
user142019
(And thus invoke UB. :P)
 
Ell
Oh gawd
why have UB when you can not have UB >.<
 
user142019
Only in unsafe blocks.
 
Ell
That's better I guess :P
 
user142019
And functions can be declared unsafe to make sure they are only used within unsafe blocks.
 
user142019
12:54 AM
class String
    to_cstring = unsafe (self) ->
        # codez here
 
Ell
That reminds me of js
because functions look like memebers there
member variables
 
user142019
import <stdlib.h>

class String
    init = (self) ->
        unsafe
            @cstring = malloc(1)
            @capacity = 1
            @length = 0

    destroy = (self) ->
        unsafe
            free(@cstring)

    to_cstring = unsafe (self) ->
        return @cstring
 
user142019
(Not sure about the sigils yet; how I will access member variables.)
 
user142019
@Ell guess how it looks in CoffeeScript. :^)
 
user142019
I like how CoffeeScript has direct initialization of members in the constructor.
 
user142019
1:02 AM
class Foo
    constructor: (@a, @b, @c) ->

# is equivalent to

class Foo
    constructor: (a, b, c) ->
        @a = a
        @b = b
        @c = c
 
Ell
Yeah
Coffee script is pretty cool
 
user142019
The only thing I really hate about CoffeeScript is that... the line numbers in stack traces don't match. XD
 
Ell
Can you easily embedded it? Or do you use use js instead?
Yeah haha
 
user142019
CoffeeScript compiles to JavaScript.
 
user142019
You can just use it directly.
 
user142019
1:09 AM
I always use it directly.
 
user142019
foo.js
bar.coffee

// foo.js:
require('coffee-script');
require('./bar');
 
user142019
(In Node.js.)
 
user142019
In the browser, I just compile it server-side before sending it to the client as JS (easier to debug, less client-side performance hit :P).
 
user142019
Then I just cache the output of the compiler.
 
user142019
I do the same with LESS -> CSS.
 
Ell
1:12 AM
I've never heard of LESS
 
user142019
It's CSS++ for hipsters. xD
 
user142019
It has functions for manipulating colors (darken, lighten, that kind of things), it has variables, it has mixins, and it has nesting.
 
Ell
That sounds useful
 
user142019
#header {
  h1 {
    font-size: 26px;
    font-weight: bold;
  }
  p { font-size: 12px;
    a { text-decoration: none;
      &:hover { border-width: 1px }
    }
  }
}
 
Ell
If you use it, you can bet its for hipsters ;)
 
user142019
1:14 AM
:P
 
user142019
This should really be CSS 4.0.
 
user142019
CSS is ridiculous.
 
user142019
It's more verbose than yo momma Java.
 
user142019
I have also thought about static typing in Zoidlang.
 
Ell
I wish it was easy to make table like layouts with HTML
I think tables are very useful for layouts
 
user142019
1:17 AM
CSS now supports expressions IIRC. You can finally do things like width: expr(width - 20px);.
 
user142019
Or something like that.
 
user142019
greet = (person : Person) ->
    puts("Hello, {0}!", person.name)

greet(42) # runtime erreur!
 
Ell
Finally
took them long enough
does that update automatically?
 
user142019
Yes.
 
user142019
All of CSS updates automatically with the exception of some things in IE. XD
 
Ell
1:19 AM
Heh
 
user142019
I had a job at which we made websites and the client sent us designs as Photoshop files, you know. :p
 
user142019
I usually had them done in a few hours. For Safari, Chrome, Opera and Firefox.
 
user142019
Then came three/four hours of fucking with IE. xD
 
user142019
What a terrible piece of SHIT.
 
user142019
WHAT FUCKING MORONS WROTE IE THEY MUST DIE A PAINFUL DEATH.
 
Ell
1:20 AM
That's pretty quick
I've never finished anything
Ever.
 
user142019
The designs were pretty easy.
 
user142019
@Ell I only finished things on my job. xD
 
Ell
even though I feel like I should be competent enough
 
user142019
@Ell I often finish while wanking.
 
Ell
Haha maybe If I was payed I would finish
(while working)
 
user142019
1:22 AM
@Ell it's probably because you're busy with something and then you come up with something else that is much more interesting, which is always the case with me.
 
Ell
Well its because I encounter a problem, and its much less effort to either start again and repeat or start something new
 
user142019
ah :P
 
Ell
Either that or the project was too ambitious
 
user142019
Also.
 
user142019
I'll use ogonek::text rather than std::string for my lexer.
 
Ell
1:27 AM
Unicode support is kewl
although the only time I've ever needed Unicode is for drawing cool menus on the console :P
 
user142019
How shall I do for-each statements in the AST?
 
user142019
struct for_statement {
    // for <identifier> in <expression>
    //     <body>
    std::string identifier;
    std::unique_ptr<expression> expression;
    std::unique_ptr<statement> body;
};
 
user142019
The std::string does not look very right.
 
@Zoidberg'-- just make it a declaration already
 
user142019
@DeadMG how do you deal with variable names in the AST? Just std::strings?
 
Ell
1:34 AM
I think string is okay
 
user142019
@sehe hmm yeah.
 
user142019
like
 
user142019
hmm xD
 
depends. OO would give you type information on the spot - without any procedural hassle to get it (each time)
 
Ell
What else would you use besides string?
 
user142019
1:35 AM
struct for_statement {
    variable_decl variable;
    std::unique_ptr<expression> expression;
    std::unique_ptr<statement> body;
};
 
Ell
What would variable_decl be like?
 
@Ell still a string, with potential type info
 
Ell
@stacked tease, I can't see past comments :'(
 
@Zoidberg'-- boost::variant<variable, declaration>
@Ell can you see future comments, though?
 
user142019
1:38 AM
struct variable_decl {
    std::string name; // FIXME: ogonek
};
 
user142019
xD
 
user142019
Well, I do like strong typing.
 
user142019
@sehe what would be the difference between variable and declaration?
 
Ell
Thank you :D
 
user142019
1:39 AM
The syntax basically is for <identifier> in <expression>.
 
@Mysticial fyi:
The last digit of π is 6. #nowyouknow
 
user142019
lol
 
@Zoidberg'-- the fact whether it is being declared, or not
 
user142019
Well
 
user142019
1:39 AM
that's not known at parse-time. XD
 
@Zoidberg'-- how so? are variables always implicitely declared?
 
user142019
This is Python/Ruby-like. There is no such thing as variables requiring explicit declaration.
 
inb4 option Strict and use warnings;
 
user142019
main = ->
    foo = 42 # perfectly fine
 
@Zoidberg'-- mkay. then, declaration is a misnomer. Just variable or variable_reference maybe. Maybe just reference if everything is firstclass
 
user142019
1:41 AM
Ah okay.
 
user142019
Dankeschon.
 
I prefer ADT over std::string there, because you might expose a 'variable-specific' interface and change the underlying storage without breaking your compiler code
What happened to daklang?
 
user142019
@sehe Vapourware.
 
@Zoidberg'-- Like the kernel
 
user142019
Jup.
 
user142019
1:44 AM
struct variable : node {
    std::string name;
};

struct for_statement : statement {
    variable identifier;
    std::unique_ptr<expression> expression;
    std::unique_ptr<statement> body;
};
 
@StackedCrooked 958 ms now for problem 12, still suck pretty hard compared to @Rapptz
 
user142019
Or wait is a variable even a node? It isn't right?
 
@JohanLarsson Let me optimize a little :D
 
@JohanLarsson @StackedCrooked Simple and fast enough: ideone.com/Oz0zIX
 
user142019
struct assignment : statement {
    variable var;
    std::unique_ptr<expression> expression;
};
 
user142019
1:46 AM
I will need some kind of symbol table eventually.
 
user142019
But that will be semantical analysis/execution me thinks.
 
@irrelephant how does that work, is the output just text you dumped or is it run on the server so that the times can be compared??
 
user142019
 
user142019
Should I use the same variable object for the same variable then? When they are in scope, I mean.
 
@JohanLarsson It's run on ideone
 
1:51 AM
@irrelephant you happen to know if ideone speaks C#?
nvm found it
 
user142019
std::vector<std::pair<std::vector<std::unique_ptr<expression>>, std::unique_ptr<statement>>> branches;
 
user142019
XD
 
hit level 15 :D (and solved 408)
 
Ell
Heh
 
@irrelephant Yeah, I guess mine is a little over done. But it reflects my reasoning that led to the solution.
 
1:57 AM
This is quite a cool homepage. The virtual web browser's bookmarks are... crummy, though: michaelv.org
 
lame, no games other than minesweeper?
 
user142019
struct variable_ref_expression : expression {
    variable var;
};
 
@AgainstASicilian lol
 
user142019
Would I do it like that?
 
user142019
I'm basically stuck on variables. xD
 
1:59 AM
needs more lemmings and/or chips challenge
 
@Zoidberg'-- then stick to KISS/YAGNI - it will pan out once you do realize what is required later
 
@AgainstASicilian That guy spent months or maybe years working on this and then you say this.
 

« first day (810 days earlier)      last day (4154 days later) »