News for hackers. Stuff that matters.

StrykerKKD

Re:Paralleltext: Learn languages by reading on Saturday November 17, 2018 @08:03AM (#18475367)
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
Re:Learn Kotlin in Y Minutes on Friday May 19, 2017 @04:44AM (#14373854)
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.

Re:Why ML/OCaml are good for writing compilers (1998) on Saturday April 15, 2017 @06:57PM (#14123306)
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).

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.

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.
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.

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.

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.

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.

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).

Re:Jodd – The Unbearable Lightness of Java on Saturday March 28, 2015 @10:48AM (#9281634)
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
Re:What Color Is Your Function? on Monday February 02, 2015 @06:03PM (#8987710)
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.

Re:What Color Is Your Function? on Monday February 02, 2015 @02:19PM (#8986181)
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.
Re:What is special about Nim? on Thursday January 01, 2015 @12:13PM (#8823469)
Nice article, although I couldn't really understand some of the examples which had template in it.
Re:Ask HN: What are you reading right now? on Tuesday November 25, 2014 @02:23PM (#8659202)
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.

Re:Poll: What's Your Favorite IDE for JavaScript? on Thursday November 13, 2014 @04:27PM (#8604227)
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.
Re:My Isometric Voxel Engine: One Year Later on Friday October 10, 2014 @02:24PM (#8439271)
Which language did you use to make it?
Re:This will make some people mad (JS/Dart) on Friday September 12, 2014 @10:58AM (#8308336)
Great article to make people mad. I liked the metaphors. :D
Re:Ask HN: What are you building? on Friday September 12, 2014 @04:38AM (#8307114)
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.