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

00:02
Oh hi
Ell
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
Ell
How do humans make stomache acid?
user142019
00:05
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
00:09
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
Ell
Radio active helium
user142019
00:11
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
Ell
Duetrinium
00:12
@Zoidberg'-- ye
Ell
Ell
and tritium I think
damn
Ell
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
Ell
00:14
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
Ell
00:15
In all seriousness how do you deal with that?
user142019
Well
user142019
Helium is very stable.
Ell
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
00:16
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
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
Ell
Heh oh.
user142019
00:16
@Ell Neutrons decay after ~16 minutes. Helium and hydrogen are fairly stable, so it shouldn't be a problem.
Ell
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
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
00:19
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
00:22
In the past I knew the periodic table symbols, names and atomic masses from hydrogen to krypton. For some reason.
Ell
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
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
Ell
Ahh yes
I wonder how small the smallest useful one could be
user142019
00:25
You have a very big fusion reactor at home. It's also called a black hole aka yo momma.
Ell
Ell
could you fit one on a boat?
user142019
In a 150 years, maybe.
Ell
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
00:26
I want a hydrogen bomb.
Ell
Ell
@deadmg a fission reactor in your closet? I want one!
no, fusion
the fission reactor was in the small basement
Ell
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
Ell
00:29
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
Ell
It is with hundreds of classes
user142019
00:30
(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
Ell
@sehe yeah :S but I've had it for a long time. My mother imbued it in mev
00:30
@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
Ell
00:32
@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
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.
00:33
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
Ell
Java is okay IMHO
user142019
Java is most vexing.
user142019
00:34
Its type system is terrible.
Ell
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
00:36
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
Ell
My language will have main = psychic_infer
user142019
00:37
s/programmers/fucking morons/
will we still need computer languages in 15 years?
user142019
Java enforces throw specs except for some exception types.
Ell
Ell
That is one thing I hate
surrounding thread.sleep with try catch is useless
its probably the only bad part of java
Ell
Ell
I think warnings should be issued
user142019
00:41
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
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.
00:42
@Ell I think they're okay. I'm not sure how much of it is down to spices
Ell
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
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
00:47
(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
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
00:52
Though you will be able to do address of, pointer arithmetic and dereferencing if you want.
user142019
(And thus invoke UB. :P)
Ell
Ell
Oh gawd
why have UB when you can not have UB >.<
user142019
Only in unsafe blocks.
Ell
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
00:54
class String
    to_cstring = unsafe (self) ->
        # codez here
Ell
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
01:02
class Foo
    constructor: (@a, @b, @c) ->

# is equivalent to

class Foo
    constructor: (a, b, c) ->
        @a = a
        @b = b
        @c = c
Ell
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
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
01:09
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
Ell
01:12
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
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
Ell
If you use it, you can bet its for hipsters ;)
user142019
01:14
: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
Ell
I wish it was easy to make table like layouts with HTML
I think tables are very useful for layouts
user142019
01:17
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
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
Ell
01:19
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
Ell
01:20
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
Ell
even though I feel like I should be competent enough
user142019
@Ell I often finish while wanking.
Ell
Ell
Haha maybe If I was payed I would finish
(while working)
user142019
01:22
@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
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
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
Ell
01:27
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
Ell
01:34
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
Ell
What else would you use besides string?
user142019
01:35
struct for_statement {
    variable_decl variable;
    std::unique_ptr<expression> expression;
    std::unique_ptr<statement> body;
};
Ell
Ell
What would variable_decl be like?
@Ell still a string, with potential type info
Ell
Ell
@stacked tease, I can't see past comments :'(
@Zoidberg'-- boost::variant<variable, declaration>
@Ell can you see future comments, though?
user142019
01:38
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
Ell
Thank you :D
user142019
01:39
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
01:39
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
01:41
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
01:44
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
01:46
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
01:51
@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
Ell
Heh
@irrelephant Yeah, I guess mine is a little over done. But it reflects my reasoning that led to the solution.
01:57
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
01:59
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 (4366 days later) »