Better HN
topnewbestaskshowjobs
Log inSign up

topkekz

48 karma · joined Jul 9, 2014 (12y ago) · 47 submissions

Submissions

comment 9y ago · link · parent

How come emacs shell still does not support input redirection? You have to do

    cat file | program
instead of

    program < file

comment 9y ago · link · parent

Only skimmed the article but i think they want something like this

  <T> objc_msgSend(Object *receiver, String *method, ...)
  {
    return get_method(receiver->class, method)(receiver, ...);
  }
where the tail call is translated into an unconditional jump (like goto).

EDIT: this GNU C extension could help avoiding assembly for implementing objc_msgSend

https://gcc.gnu.org/onlinedocs/gcc-7.1.0/gcc/Constructing-Ca...

comment 9y ago · link · parent

There are lisps being worked on to resolve points 1, 2, and 4.

https://github.com/tomhrr/dale

https://github.com/carp-lang/Carp

comment 9y ago · link · parent

Ocarina of Time is running at 20 FPS on NTSC, 17 FPS on PAL, and is still fun. We started worrying about FPS when competitive online gaming became a thing (Quake 3, Counter-Strike, Unreal Tournament) and marketers associated high computer performance with high player performance (more fps you have, more good you will play).

comment 9y ago · link · parent

>It's a shame the game is only available on the two most underpowered gaming devices.

The Switch is handheld gaming device.

comment 9y ago · link · parent

also censored on https://zoom.earth/#-70.166939,87.824707,11z,sat

comment 9y ago · link · parent

vector-immutable is unusable, all operations on vectors return a mutable vector forcing you to rely on vector->immutable-vector every time.

Vector lacks many operations that List has, it should be easier to interchange each others. Vector even lacks combinations despite this one being implemented by converting the list to a vector first.

https://github.com/racket/racket/blob/master/racket/collects...

I have encountered many inconsistencies like this.

comment 9y ago · link · parent

i found the Racket library to be inconsistent, especially anything related to Vector.

comment 9y ago · link · parent

https://truecraft.io/ (Minecraft beta 1.7.3)

comment 9y ago · link · parent

Partial application and currying are two different things.

comment 9y ago · link · parent

I prefer car/cdr over first/rest since a list is an implicit type and cdr/car are actually operating on pairs that are not necessary part of a list.

comment 9y ago · link · parent

https://news.ycombinator.com/item?id=1803815

comment 9y ago · link · parent

>Accessing an element of an array via ptr[3] is actually just short for (ptr + 3). This can be equivalently written as (3 + ptr) and therefore as 3[ptr], which turns out to be completely valid code.

C++ standard defines the syntax of a postfix expression as this

  postfix-expression:
      primary-expression
      postfix-expression[expression] 
      postfix-expression[braced-init-list]
[expression]primary-expression is not valid

comment 9y ago · link · parent

Check this one (clang)

https://godbolt.org/g/Brn57Z

comment 9y ago · link · parent

When AMD says 8 cores, it's actually 8 ALUs and 4 SIMDs/FPUs.

http://www.bit-tech.net/hardware/cpus/2011/10/12/amd-fx-8150...

http://www.theregister.co.uk/2015/11/06/amd_sued_cores/

Note that they changed that with ZEN

http://wccftech.com/amd-one-fpu-per-core-design-zen-processo...

comment 9y ago · link · parent

A stack is an abstract type having two operations: push(element) and pop(). The implementation can cheat till it's transparent to the user. To quote CLRS,

The INSERT operation on a stack is often called PUSH, and the DELETE operation, which does not take an element argument, is often called POP. These names are allusions to physical stacks, such as the spring-loaded stacks of plates used in cafeterias. The order in which plates are popped from the stack is the reverse of the order in which they were pushed onto the stack, since only the top plate is accessible.

comment 9y ago · link · parent

https://www.phoronix.com/scan.php?page=article&item=amd_cata...

Note that both the amd and the nvidia kernel modules always have been FOSS because of the GPL license. It's just that nvidia provides it by its own ways, not through the official linux branch, and thus doesn't have to respect linux rules nor to document the driver.

comment 9y ago · link · parent

he's now using Donald Knuth's LCG http://www.templeos.org/Wb/Kernel/KMathB.html

comment 9y ago · link · parent

you can do sizeof(T[n]) instead of sizeof(T) * n

comment 10y ago · link · parent

There also Nuitka for compiling python into a native module.

http://nuitka.net/pages/overview.html

comment 10y ago · link · parent

A review of the 1977 Turing Award Lecture by John Backus by Edsger W.Dijkstra

https://www.cs.utexas.edu/users/EWD/transcriptions/EWD06xx/E...

comment 10y ago · link · parent

> but many people don't seem to trust it

This paper explains how to weaken the intel RNG by modifying only one logic gate and still make it passes the integrity tests.

http://sharps.org/wp-content/uploads/BECKER-CHES.pdf

comment 10y ago · link · parent

There is also Spacemacs which is emacs + Evil with some sweets.

http://spacemacs.org/

comment 10y ago · link · parent

Hal Abelson on the end of SICP at MIT (2011)

http://codequarterly.com/2011/hal-abelson/

comment 10y ago · link · parent

f-35 part starts at the bottom of page 37

https://www.csiac.org/wp-content/uploads/2016/02/2010_03_30_...

comment 10y ago · link · parent

http://www.cs.utexas.edu/~EWD/transcriptions/OtherDocs/Haske...

comment 10y ago · link · parent

This may help http://paste.lisp.org/display/313070/raw

comment 10y ago · link · parent

The "classic" course is still available as cs61as

http://www.cs61as.org/

comment 10y ago · link · parent

Nuitka compiles python into a native executable

http://nuitka.net/pages/overview.html

12