News for hackers. Stuff that matters.

topkekz

Re:Eschewing Zshell for Emacs Shell on Saturday July 22, 2017 @04:34AM (#14826043)
How come emacs shell still does not support input redirection? You have to do

    cat file | program
instead of

    program < file
Re:Dissecting objc_msgSend on ARM64 on Saturday July 01, 2017 @11:43AM (#14677553)
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...

Re:The Lisp Curse (2011) on Sunday June 04, 2017 @02:15PM (#14482705)
There are lisps being worked on to resolve points 1, 2, and 4.

https://github.com/tomhrr/dale

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

Re:The new legend of Zelda is a toy box of delights on Wednesday March 15, 2017 @07:57AM (#13875464)
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).
Re:The new legend of Zelda is a toy box of delights on Wednesday March 15, 2017 @07:50AM (#13875434)
>It's a shame the game is only available on the two most underpowered gaming devices.

The Switch is handheld gaming device.

Re:The CIA Is Sharing Declassified Maps on Sunday February 12, 2017 @06:58AM (#13627960)
Re:Racket v6.8 on Thursday January 26, 2017 @06:47AM (#13490570)
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.

Re:Racket v6.8 on Wednesday January 25, 2017 @08:14AM (#13481123)
i found the Racket library to be inconsistent, especially anything related to Vector.
https://truecraft.io/ (Minecraft beta 1.7.3)
Re:Portacle – A Portable Common Lisp Development Environment on Thursday January 05, 2017 @09:10AM (#13327170)
Partial application and currying are two different things.
Re:The Origin of CAR and CDR in Lisp (2005) on Tuesday December 27, 2016 @07:48AM (#13262777)
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.
Re:Obscure C++ Features on Tuesday December 20, 2016 @02:20PM (#13222987)
>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
Re:GodBolt: Enter C, get Assembly on Thursday December 15, 2016 @08:03AM (#13184279)
Check this one (clang)

https://godbolt.org/g/Brn57Z

Re:AMD Gives More Zen Details on Wednesday December 14, 2016 @06:19AM (#13175201)
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.

Re:Linux kernel maintainer says no to AMDGPU patch on Friday December 09, 2016 @07:09AM (#13138272)
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.

Re:QEMU Advent Calendar on Wednesday December 07, 2016 @07:12AM (#13121984)
he's now using Donald Knuth's LCG http://www.templeos.org/Wb/Kernel/KMathB.html
Re:Why does calloc exist? on Tuesday December 06, 2016 @08:13AM (#13114305)
you can do sizeof(T[n]) instead of sizeof(T) * n
Re:Python by the C side on Sunday September 25, 2016 @04:14AM (#12574424)
There also Nuitka for compiling python into a native module.

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

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

> 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

Re:New GNU Emacs website on Monday May 09, 2016 @01:55AM (#11657854)
There is also Spacemacs which is emacs + Evil with some sweets.

http://spacemacs.org/

Re:Programming by poking: why MIT stopped teaching SICP on Thursday May 05, 2016 @01:27AM (#11634176)
Hal Abelson on the end of SICP at MIT (2011)

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

The "classic" course is still available as cs61as

http://www.cs61as.org/

Re:Pyship: Static Python for desktop apps on Sunday March 20, 2016 @05:41AM (#11322371)
Nuitka compiles python into a native executable

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

Re:Spacemacs 0.105.0 released on Tuesday January 05, 2016 @01:21AM (#10841604)
The Craft of Text Editing --or-- Emacs for the Modern World

https://www.finseth.com/craft/

Older »