News for hackers. Stuff that matters.

ret

Re:The timeless: 64K demo [video] on Monday April 21, 2014 @02:13PM (#7622620)
This intro is great, and the lighting is really, really nice.

But TBH I do not like accelerated intros/demos, because the most difficult part of the code, i.e. 3D graphics pipeline is implemented outside the demo, in a GPU driver. Many years ago, in a DOS, coders have to implement rasterization, clipping & lighting and fit everything in a 64kB. Watch for example Stash by TBL (http://www.pouet.net/prod.php?which=3), Jizz by TBL (http://www.pouet.net/prod.php?which=2), Photon by Purple (http://www.pouet.net/prod.php?which=502).

Re:DC Circuits in F# on Saturday February 01, 2014 @01:51PM (#7162802)
Looks interesting, but style of the program is terrible. Drawing function are mixed with model definition and sample circuit definition.

BTW resistance function do not handle division by zero.

Re:Obscure C++ Features on Wednesday December 11, 2013 @03:39AM (#6886606)
Re:Graph.tk on Monday December 02, 2013 @03:56AM (#6832577)
The sample plot is wrong. Domain of sin x + log(x+1) derivative is R - {-1}, so there must not be any vertical line at x = -1.
Re:Programming Language Checklist on Friday November 22, 2013 @07:00PM (#6784554)
"You have reinvented Brainfuck but non-ironically" - brilliant. :)
Re:Gutenberg: Dynamic README generator with mixins for GitHub on Saturday October 19, 2013 @02:01PM (#6577203)
I agree, but why not use existing program like M4.
Re:Show HN: My Turbo Pascal compiler in JavaScript on Friday October 18, 2013 @05:29PM (#6574126)
IMHO it's a matter of experience. When I was young I believed that programming is about writing a lot of code that "just work".

Now, after many private and commercial projects, I know that is about reading and understanding code. And about eliminating bugs. :)

Re:Show HN: My Turbo Pascal compiler in JavaScript on Friday October 18, 2013 @02:27PM (#6573092)
Your project is great, Pascal is really underrated language.

I looked at parser (hand written are best), this part spotted my eyes https://github.com/lkesteloot/turbopascal/blob/master/Parser... - IMHO order of checking whatever node is identifier or not have to be reversed. Now, such simple program:

program Test;

procedure foo; begin end;

begin foo := 10; end.

produces error 'Error: can't cast from 70 to 76 ("10", line 8)' - whatever this means. :)

Re:Nimrod: The Return of Pascal on Monday September 02, 2013 @04:24PM (#6316993)
Looks like Algol68 with some OOP.
Re:Top ten algorithms preprints of 2012 on Wednesday January 02, 2013 @07:09AM (#4996264)
Great list. Paper "Strongly universal string hashing is fast" is very interesting.
Re:A syntax comparison across many languages on Saturday July 21, 2012 @03:38AM (#4274269)
#if 0 ... #endif in C/C++ is not a true comment -- commented text is parsed by preprocessor.
Re:Donald Knuth Quotes on Monday May 21, 2012 @07:12AM (#4002269)
2 other quotes:

Q: "If you were young again, would you start writing TeX again or would you use Microsoft Word, or another word processor?" A: "I hope to die before I have to use Microsoft Word." —Harald Koenig asking Donald Knuth, Tübingen, 2001 Oct 2.

"The most important thing in the programming language is the name. A language will not succeed without a good name. I have recently invented a very good name and now I am looking for a suitable language."

Re:Why Use Postgres on Monday April 30, 2012 @04:08PM (#3911162)
List of reasons is so short...

For example since 9.1 Postgres support foreign data tables - other data sources is available for user as regular table; there are many drivers: MySQL, Oracle, external pg server, and even plain files.

Since 9.0 there is support for per-column triggers.

Re:Animated Bézier Curves on Thursday April 26, 2012 @09:11AM (#3893709)
This is animated de Casteljau algorithm, fix the title. :)