Better HN
topnewbestaskshowjobs
Log inSign up

StrykerKKD

19 karma · joined Aug 14, 2014 (12y ago) · 20 submissions

Submissions

comment 8y ago · link · parent

I tried out the english->hungarian and it's pretty hilarious, because hungarian version sound so german that even I can't understand what it says without the text. :D

comment 9y ago · link · parent

It's interesting how many language wants to be part of the ML family or at least look like an ML language.

Kotlin has a really nice and simple syntax compared to Scala, which has way to many features.

comment 9y ago · link · parent

I agree that Ocaml is just extremely well suited for making new programig languages. If you are interested in Ocaml+programming languages check out the plzoo: http://plzoo.andrej.com/

I personally think that Ocaml is really good at this, because I started converting the Scheme examples from the PLAI book to Ocaml and it's just felt right(maybe because I'm not fan of the scheme syntax).

comment 10y ago · link · parent

If you want better type information for Python, you could use the new typing hints and the typing module(https://docs.python.org/3/library/typing.html).

You could also use mypy(https://mypy.readthedocs.io/en/latest/index.html) which is a static type checker for Python.

comment 10y ago · link · parent

I was laughing out loud, when I saw that it was based on node. They want to build a secure and fast browser and they use JS to accomplish it.

comment 10y ago · link · parent

You are right, I didn't think the example through.

You are right, you can use tests to prove a function if - the function has very limited arguments and - the function is pure or does very limited amount of state change(side effect)

Generally speaking tests are not the right tool for proving program correctness.

comment 10y ago · link · parent

Well it's possible, but how many developer would rather make a new type for using the first ten integer instead of just using int?

I think random testing is a good way to get almost exhaustively tests.

comment 10y ago · link · parent

I don't despair, because I know that to prove correctness of a program you need to use math.

For example proof assistants(like Coq, Agda, Idris, hol) are capable of proving correctness of a program.

comment 10y ago · link · parent

No, I literally mean that you can't prove correctness with tests, because you would need a lot of test cases to prove the simplest function.

For example: int addOne(int input) function would need test cases for every number in the int type, which would be 2,147,483,647 * 2 + 1 test case.

comment 10y ago · link · parent

I have to nitpick.

2) You can't prove correctness with tests. You can only state that it ran correctly for that test case(s).

comment 11y ago · link · parent

I used Jerry at work and it's really one fine HTML parser. I like it better than JSoup, although it works a little bit weirder. :D

comment 11y ago · link · parent

But waiting is non-blocking right? It means that we can just make one isolate's role to wait for all other isolates to complete.

For me the bad part of "red" functions is that testing is harder for it or I just suck at it.

comment 11y ago · link · parent

What about isolates in Dart? I mean isolates are isolated processes, which also can be a thread and they also can communicate with each other.

comment 11y ago · link · parent

Nice article, although I couldn't really understand some of the examples which had template in it.

15.

Ask HN: Do you consider reflection harmful?

6 points · by StrykerKKD · 11y ago · 2 comments

comment 12y ago · link · parent

Your post. :D

Actually Eloquent Javascript and sometimes Programming -- Principles and Practice Using C++. I found the C++ book a little bit boring and maybe i wont read it trough.

comment 12y ago · link · parent

I mostly use Brackets in my work and it's really good for editing JS files and has a lot of stuff like themes and plugins.

comment 12y ago · link · parent

Which language did you use to make it?

comment 12y ago · link · parent

Great article to make people mad. I liked the metaphors. :D

comment 12y ago · link · parent

https://github.com/StrykerKKD/dartrocket is an open source 2D HTML5 game engine in Dart.

I started doing this, because I always liked Dart better than any other programming language and because at that time Dart didn't have any HTML5 game engines.

I also developing it, because I really like doing it and because I want to make a living out of this.