Better HN
topnewbestaskshowjobs
Log inSign up

cokernel_hacker

1,316 karma · joined Mar 25, 2012 (14y ago) · 181 submissions

Submissions

31.

Making Peace with Simpson's Paradox(robertheaton.com ↗)

3 points · by cokernel_hacker · 3y ago · discuss

32.

Cracking Playfair Ciphers(oranlooney.com ↗)

3 points · by cokernel_hacker · 3y ago · discuss

comment 3y ago · link · parent

I found more of it in here: https://www.oranlooney.com/post/playfair/

However, I can't determine where this is originally from...

comment 3y ago · link · parent

Fun fact: the MSVC C++ ABI gives up if the mangled name is >= 4096 characters, it just replaces the symbol with md5(mangled name): https://github.com/llvm/llvm-project/blob/d32f71a91a432db2d9...

35.

Correct rounding or mathematically-correct rounding?(frama-c.com ↗)

1 points · by cokernel_hacker · 3y ago · discuss

36.

The Army once built an underground ice fortress during the Cold War(taskandpurpose.com ↗)

3 points · by cokernel_hacker · 3y ago · discuss

37.

SSA-based Compiler Design [pdf](pfalcon.github.io ↗)

1 points · by cokernel_hacker · 4y ago · discuss

38.

TLB and Pagewalk Coherence in x86 Processors(blog.stuffedcow.net ↗)

1 points · by cokernel_hacker · 4y ago · discuss

39.

GPS vs. Glonass vs. Galileo(gpsrchive.com ↗)

228 points · by cokernel_hacker · 4y ago · 81 comments

40.

Intel Pathfinder for RISC-V(pathfinder.intel.com ↗)

3 points · by cokernel_hacker · 4y ago · discuss

comment 4y ago · link · parent

I particularly liked the "Windows" vs "Sindogs" issue. My immediate hunch was that the characters differed by a single bit so I ran a bit of python:

  >>> [ord(x) ^ ord(y) for (x, y) in zip("windows", "sindogs")]
  [4, 0, 0, 0, 0, 16, 0]
Sure enough...

comment 4y ago · link · parent

The conclusions section of the paper is a good summary:

"In the process, we learned ten lessons about DSAs and DNNs in general and about DNN DSAs specifically that shaped the design of TPUv4i:

1. Logic improves more quickly than wires and SRAM ⇒ TPUv4i has 4 MXUs per core vs 2 for TPUv3 and 1 for TPUv1/v2.

2. Leverage existing compiler optimizations ⇒ TPUv4i evolved from TPUv3 instead of being a brand new ISA.

3. Design for perf/TCO instead of perf/CapEx ⇒ TDP is low, CMEM/HBM are fast, and the die is not big.

4. Backwards ML compatibility enables rapid deployment of trained DNNs ⇒TPUv4i supports bf16 and avoids arithmetic problems by looking like TPUv3 from the XLA compiler’s perspective.

5. Inference DSAs need air cooling for global scale ⇒ Its design and 1.0 GHz clock lowers its TDP to 175W.

6. Some inference apps need floating point arithmetic ⇒ It supports bf16 and int8, so quantization is optional.

7. Production inference normally needs multi-tenancy ⇒ TPUv4i’s HBM capacity can support multiple tenants.

8. DNNs grow ~1.5x annually in memory and compute ⇒ To support DNN growth, TPUv4i has 4 MXUs, fast onand off-chip memory, and ICI to link 4 adjacent TPUs.

9. DNN workloads evolve with DNN breakthroughs ⇒ Its programmability and software stack help pace DNNs.

10. The inference SLO is P99 latency, not batch size ⇒ Backwards ML compatible training tailors DNNs to TPUv4i, yielding batch sizes of 8–128 that raise throughput and meet SLOs. Applications do not restrict batch size."

43.

Nobel Prize awarded for research on how humans feel temperature and touch(axios.com ↗)

1 points · by cokernel_hacker · 5y ago · discuss

44.

Ice Lake Store Elimination(travisdowns.github.io ↗)

2 points · by cokernel_hacker · 5y ago · discuss

45.

Conventional Comments(conventionalcomments.org ↗)

2 points · by cokernel_hacker · 5y ago · discuss

46.

Labor of Division (Episode VI): Narrowing Division Insight and Benchmarks(ridiculousfish.com ↗)

1 points · by cokernel_hacker · 5y ago · discuss

47.

Apple Trial Ends in Mixed Verdict After Epic’s Monopoly Allegations(wsj.com ↗)

66 points · by cokernel_hacker · 5y ago · 10 comments

48.

Diverging Behavior of Rsqrtss in AMD vs. Intel(robert.ocallahan.org ↗)

4 points · by cokernel_hacker · 5y ago · discuss

49.

On Vsyscalls and the VDSO(lwn.net ↗)

3 points · by cokernel_hacker · 5y ago · 1 comment

50.

Alphabet launches new robotics software company Intrinsic(cnbc.com ↗)

6 points · by cokernel_hacker · 5y ago · discuss

comment 5y ago · link · parent

There is this great document (http://www.decus.de/events/alphamigration/vortraege/porting_...) which details the efforts to go from Alpha to Itanium.

What is notable about their Itanium efforts is that they chose to use ELF and DWARF and their object file and debugging formats. I think that this was actually quite important as it made it far easier for the x86 port: LLVM has robust support for ELF & DWARF.

I think another thing which helped is that they wrote more of OpenVMS in C which avoided the need for an x86 PL/I compiler, etc.

comment 5y ago · link · parent

I believe that Rice's theorem is about computability, not about whether or not it is possible to validate which CPU instructions a program can contain.

With certain restrictions, it is possible to do this: Google Native Client [1] has a verifier which checks that programs it executed did not jump into the middle of other instructions, forbade run-time code generation inside of such programs, etc.

[1]: https://en.wikipedia.org/wiki/Google_Native_Client

comment 5y ago · link · parent

My reading of the C++ standard is that this behavior is effectively mandated and that one can write a program which can tell if an ABI observed the proposed optimization.

[expr.call]: "The lvalue-to-rvalue, array-to-pointer, and function-to-pointer standard conversions are performed on the argument expression."

[conv.lval]: "... if T has a class type, the conversion copy-initializes the result object from the glvalue."

The way a program can tell if a compiler is compliant to the standard is like so:

  struct S { int large[100]; };

  int compliant(struct S a, const struct S *b);

  int escape(const void *x);

  int bad() {
    struct S s;
    escape(&s);
    return compliant(s, &s);
  }

  int compliant(struct S a, const struct S *b) {
    int r = &a != b;
    escape(&a);
    escape(b);
    return r;
  }
There are three calls to 'escape'. A programmer may assume that the first and third call to escape observes a different object than the second call to escape and they may assume that 'compliant' returns '1'.

comment 6y ago · link · parent

It is a project aimed at making the design of electronic logical easier.

Often, such hardware is written using hardware description languages [1] like Verilog or VHDL. These languages are very low level and, in the opinion of some, a little clumsy to use.

XLS aims to provide a system for High-level synthesis [2]. The benefit of such systems is that you can more easily map interesting algorithms to hardware without being super low level.

[1] https://en.wikipedia.org/wiki/Hardware_description_language

[2] https://en.wikipedia.org/wiki/High-level_synthesis

55.

A Domain-Specific Supercomputer for Training Deep Neural Networks(cacm.acm.org ↗)

2 points · by cokernel_hacker · 6y ago · discuss

56.

“Circt” / Circuit IR Compilers and Tools(github.com ↗)

1 points · by cokernel_hacker · 6y ago · discuss

57.

David Patterson: Computer Architecture and Data Storage(youtube.com ↗)

1 points · by cokernel_hacker · 6y ago · discuss

comment 6y ago · link · parent

Interesting. One issue is treatment of 1 / -inf. This would be -0 in traditional IEEE 754 but would now be +0 IIUC.

This would imply that 1 / (1 / -inf) would now be +inf instead of -inf.

59.

IBM C/C++ and Fortran compilers to adopt LLVM open source infrastructure(developer.ibm.com ↗)

2 points · by cokernel_hacker · 6y ago · discuss

comment 6y ago · link · parent

AlphaGo won: https://en.wikipedia.org/wiki/Future_of_Go_Summit#Team_Go
1234567