News for hackers. Stuff that matters.

aportnoy

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

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

Re:Ask HN: Could you share your personal website here? on Wednesday January 14, 2026 @06:31PM (#46625579)
aportnoy.com
Re:Ask HN: Resources for GPU Compilers? on Monday September 02, 2024 @07:36PM (#41429694)
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.

Re:ECC RAM on AMD Ryzen 7000 Desktop CPUs on Tuesday October 10, 2023 @12:28AM (#37828509)
Well then… test your memory :)
Re:ECC RAM on AMD Ryzen 7000 Desktop CPUs on Tuesday October 10, 2023 @12:19AM (#37828467)
Don't overclock your memory.
Re:ECC RAM on AMD Ryzen 7000 Desktop CPUs on Tuesday October 10, 2023 @12:18AM (#37828456)
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.

Re:ECC RAM on AMD Ryzen 7000 Desktop CPUs on Monday October 09, 2023 @11:02PM (#37828086)
> But the lack of ECC was a huge bummer at the time of purchasing my system.

Why?..

Re:My personal C coding style as of late 2023 on Sunday October 08, 2023 @09:04PM (#37815845)
> 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".

Note Sam Altman is a Cerebras investor.
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.

What happened?
1 is the multiplicative identity

0 is the additive identity

all([]) is True

any([]) is False

Go to the blog and skip to results: https://ai.meta.com/blog/seamless-m4t/
The project is a port of https://github.com/nviennot/core-to-core-latency from Rust to C.
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.

Re:Perl first commit: a “replacement” for Awk and sed on Saturday July 08, 2023 @08:40PM (#36650218)
The funny thing is Perl is now arguably more obsolete than sed and awk.
I recently interviewed with a fantastic startup in that space called TestFit (testfit.io).
Re:Csexp: S-Expressions over the Network on Sunday June 11, 2023 @06:11PM (#36286253)
This definitely isn't "printing" in the original sense, just a serialization algorithm.
Re:Csexp: S-Expressions over the Network on Sunday June 11, 2023 @06:09PM (#36286240)
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".
Re:Csexp: S-Expressions over the Network on Sunday June 11, 2023 @05:59PM (#36286162)
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.

Re:Csexp: S-Expressions over the Network on Sunday June 11, 2023 @05:45PM (#36286054)
Yeah, something like "a" in the below code wouldn't have a "natural" serialization I don't think:

  (define a (list "a"))
  (define b (list "b"))
  (set-cdr! a b)
  (set-cdr! b a)
Re:Csexp: S-Expressions over the Network on Sunday June 11, 2023 @04:03PM (#36285051)
> In general lisps _can't_ print arbitrary objects in a form that can be read back in.

Hmm, why not?

Re:Show HN: RISC-V core written in 600 lines of C89 on Saturday June 10, 2023 @04:54PM (#36275014)
I mean, his simulator already has a disassembler contained within it, would just need to replace comments with print statements.
Re:Show HN: RISC-V core written in 600 lines of C89 on Saturday June 10, 2023 @10:09AM (#36270603)
How about a RISC-V disassembler in 200 lines of C99?

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

Older »