Better HN
topnewbestaskshowjobs
Log inSign up

ret

39 karma · joined Apr 26, 2012 (14y ago) · 14 submissions

Submissions

comment 12y ago · link · parent

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

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

See also FQA: http://www.yosefk.com/c++fqa/index.html

comment 12y ago · link · parent

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.

comment 13y ago · link · parent

"You have reinvented Brainfuck but non-ironically" - brilliant. :)

comment 13y ago · link · parent

I agree, but why not use existing program like M4.

comment 13y ago · link · parent

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

comment 13y ago · link · parent

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

comment 13y ago · link · parent

Looks like Algol68 with some OOP.

comment 13y ago · link · parent

Great list. Paper "Strongly universal string hashing is fast" is very interesting.

comment 14y ago · link · parent

#if 0 ... #endif in C/C++ is not a true comment -- commented text is parsed by preprocessor.

comment 14y ago · link · parent

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

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

This is animated de Casteljau algorithm, fix the title. :)