Better HN
topnewbestaskshowjobs
Log inSign up

aportnoy

1,277 karma · joined Aug 14, 2017 (9y ago) · 212 submissions

email: aportnoy@pm.me
Submissions

comment 9mo ago · link · parent

Is Bel a smaller LISP than what's described in The Roots of Lisp? [1]

[1] https://paulgraham.com/rootsoflisp.html

2.

Train an RL agent to play tic-tac-toe(github.com ↗)

3 points · by aportnoy · 10mo ago · 1 comment

comment 10mo ago · link · parent

aportnoy.com

4.

Show HN: Reinforcement learning tic-tac-toe in C, annotated(github.com ↗)

2 points · by aportnoy · 10mo ago · discuss

5.

Pretraining Large Language Models with NVFP4(arxiv.org ↗)

1 points · by aportnoy · 1y ago · discuss

comment 2y ago · link · parent

For NVIDIA,

1. play around with the NVPTX LLVM backend and/or try compiling CUDA with Clang,

2. get familiar with the PTX ISA,

3. play around with ptxas + nvdisasm.

comment 3y ago · link · parent

Well then… test your memory :)

comment 3y ago · link · parent

Don't overclock your memory.

comment 3y ago · link · parent

Wow I came back to post this exact reply. I set my system to a slightly high frequency, ran memtest overnight with errors.

Set it back down to a supported frequency, ran a full memtest suite again with no errors.

Never had any issues since.

comment 3y ago · link · parent

> But the lack of ECC was a huge bummer at the time of purchasing my system.

Why?..

comment 3y ago · link · parent

> extremely opinionated

I have not seen a single codebase that widely uses uint8_t and does not typedef it to u8. It is the exact opposite of "extremely opinionated".

comment 3y ago · link · parent

Note Sam Altman is a Cerebras investor.

comment 3y ago · link · parent

Asking because I am on that team :)

I went through the same hiring process and had a positive experience at every stage. I had a strong competing offer but went with the JAX team at NVIDIA.

I'll pass it along as feedback.

comment 3y ago · link · parent

What happened?

comment 3y ago · link · parent

1 is the multiplicative identity

0 is the additive identity

all([]) is True

any([]) is False

comment 3y ago · link · parent

Go to the blog and skip to results: https://ai.meta.com/blog/seamless-m4t/

17.

Visualize core-to-core latency(github.com ↗)

2 points · by aportnoy · 3y ago · discuss

comment 3y ago · link · parent

The project is a port of https://github.com/nviennot/core-to-core-latency from Rust to C.

19.

Show HN: Visualize core-to-core latency in ~200 lines of C and Python(github.com ↗)

2 points · by aportnoy · 3y ago · 1 comment

comment 3y ago · link · parent

I used to surf near Scripps Pier while in college and I remember there were always a couple people sitting outside in beach chairs working on their laptops.

Salk Institute is an even more surreal place.

comment 3y ago · link · parent

The funny thing is Perl is now arguably more obsolete than sed and awk.

comment 3y ago · link · parent

I recently interviewed with a fantastic startup in that space called TestFit (testfit.io).

comment 3y ago · link · parent

This definitely isn't "printing" in the original sense, just a serialization algorithm.

comment 3y ago · link · parent

In the original LISP with dynamic scoping I think it would be fair to serialize that expression as is: "just use whatever value is bound to 'y' at the time of evaluation, if any".

comment 3y ago · link · parent

Everything is an object that is either a cons cell or an atom. Associate the address of each object with a unique index.

Serialize each object as a pair (index, obj), where 'index' maps back to the original address where the object was stored, and 'obj' is a pair of indices if the object is a cons cell, or the appropriate representation (string literal, integer, etc.) if the object is an atom.

Then to deserialize allocate a memory location for every index and load the objects as is. Then replace the indices with the corresponding (new) addresses.

comment 3y ago · link · parent

Yeah, something like "a" in the below code wouldn't have a "natural" serialization I don't think:

  (define a (list "a"))
  (set-cdr! a a)

comment 3y ago · link · parent

> In general lisps _can't_ print arbitrary objects in a form that can be read back in.

Hmm, why not?

comment 3y ago · link · parent

I mean, his simulator already has a disassembler contained within it, would just need to replace comments with print statements.

comment 3y ago · link · parent

How about a RISC-V disassembler in 200 lines of C99?

https://github.com/andportnoy/riscv-disassembler/blob/master...

12345
8