News for hackers. Stuff that matters.

joseraul

Re:Formalizing 100 theorems in Coq on Sunday October 07, 2018 @01:56PM (#18161796)
All this may become much easier when we manage to merge proof assistants with automatic provers.

Here is how you can prove the first theorem in Dafny. https://rise4fun.com/Dafny/GxplK

Re:PCG: a family of better random number generators on Sunday June 10, 2018 @04:54PM (#17280096)
One author of Xoroshiro has written a detailed (and harsh) analysis of PCG.

http://pcg.di.unimi.it/pcg.php

Re:Jeff Dean takes over as Google’s AI chief on Tuesday April 03, 2018 @11:18AM (#16745452)
Rumors say he writes code in zcat to go faster.
Re:Rust's language ergonomics initiative on Friday March 03, 2017 @04:50PM (#13787052)
They may not do user studies like this, but for sure they adapt to user feedback.

https://thefeedbackloop.xyz/stroustrups-rule-and-layering-ov...

Re:Google’s Neural Machine Translation System on Tuesday September 27, 2016 @07:50PM (#12594310)
Peter Norvig explains why.

http://norvig.com/chomsky.html

Re:Deep Reinforcement Learning to Play StarCraft on Wednesday September 14, 2016 @12:10PM (#12498389)
Gabriel Synnaeve was already working on this long before joining FB.

http://emotion.inrialpes.fr/people/synnaeve/

Re:V8 JavaScript Engine: V8 Release 5.4 on Friday September 09, 2016 @02:34PM (#12464882)
Don't forget the "up to". Your app may be in another section of the statistics.
Re:Introduction to Functional Programming in OCaml on Sunday September 04, 2016 @12:52PM (#12425341)
OCaml is GCed and can infer more type annotations than Rust, so its code feels closer to Python.

Rust is best for complex systems where tight control of resources is required.

Re:SPIR-V Compression on Sunday September 04, 2016 @10:09AM (#12424405)
Such specialized filters can improve compression a lot. For instance, the e8e9 transform converts relative jumps to absolute jumps in x86 EXEs, increasing compression because lots of jumps actually point to the same address.

http://mattmahoney.net/dc/dce.html#Section_571

Re:How the JVM compares strings on x86 on Thursday September 01, 2016 @04:33PM (#12408654)
CPUs have gotten so complex that mastering their language (and behavior) is a skill on its own. Most people can get on with compiled/interpreted languages.
Re:Smaller and faster data compression with Zstandard on Wednesday August 31, 2016 @02:47PM (#12400512)
> what's 8MB when your server's got 64GB

Note that 8Mb is the size of the L3 cache on some modern Intel chips. You want fast lookups in the window area, where you constantly do random-access reads.

Re:Smaller and faster data compression with Zstandard on Wednesday August 31, 2016 @02:21PM (#12400342)
Indeed ANS is difficult: it is the biggest innovation in compression in the last 20 years. Its author has some nice but dense slides about it.

https://dl.dropboxusercontent.com/u/12405967/ANSsem.pdf

Not sure exactly when repcodes were invented. Igor Pavlov has already used them in 7zip.

Re:The Myth of RAM (2014) on Monday August 29, 2016 @02:43PM (#12384150)
The theoretical discussion is interesting, especially the circular library that gives some intuition of the square root law.

But in practice, you usually know the order of magnitude of your data, so access is rather O(1), for some constant that depends on the size of the data. Jeff Dean's "Numbers Everyone Should Know" quantifies this constant.

http://highscalability.com/numbers-everyone-should-know

In his excellent book [1], Andy Hunt explains what expertise is with a multi-level model [2], where a novice needs rules that describe what to do (to get started) while an expert chooses patterns according to his goal.

So, "best practices" are patterns that work in most situations, and an expert can adapt to several (and new) situations.

[1] https://pragprog.com/book/ahptl/pragmatic-thinking-and-learn...

[2] https://en.wikipedia.org/wiki/Dreyfus_model_of_skill_acquisi...

Re:How can you echo a newline in batch files? on Thursday August 25, 2016 @08:22AM (#12358438)
Bash equivalent is just:

  echo $'hello\nworld'
This uses ANSI C quoting https://www.gnu.org/software/bash/manual/html_node/ANSI_002d... .
Re:“CPUs are optimized for video games” on Wednesday August 10, 2016 @05:09PM (#12264773)
TL;DR To please the gaming market, CPUs develop large SIMD operations. ChaCha uses SIMD so it gets faster. AES needs array lookups (for its S-Box) and gets stuck.
Re:Why do CPUs have multiple cache levels? on Monday August 08, 2016 @07:05AM (#12246766)

  it's really fast to push the 16*64 bit registers to the stack
Since the CPU has 180 registers (with only 16 names), why don't we need to push all 180 to store context?

Older »