Better HN
topnewbestaskshowjobs
Log inSign up

jensb1

8 karma · joined Jul 24, 2023 (3y ago) · 12 submissions

entrepeneur with alot of time to vibe
Submissions

comment 1mo ago · link · parent

Turn a Mac into a Bluetooth car kit for your phone. Calls on your iPhone (or any phone) go through the Mac's microphone and speakers (or AirPods). Each side of the conversation is recorded on its own track, so it can be transcribed with exact speaker labels.

2.

Turn a Mac into a Bluetooth car kit for your phone(github.com ↗)

1 points · by jensb1 · 1mo ago · 1 comment

comment 1mo ago · link · parent

Yeah agree, misunderstood the article intent as well.

comment 2mo ago · link · parent

What is "illegal" about it?

comment 7mo ago · link · parent

Not more stupid IMO, but significnatly less token efficient or they have decreased tokens for subscription users, difficult to know.

6.

Claude Code driver using PTY (proof of concept)(github.com ↗)

1 points · by jensb1 · 8mo ago · discuss

comment 1y ago · link · parent

Hi, always wanted to create a toy lisp compiler in LLVM for some reason, but never had the time to get it working.

Took a new stab at it with Claude 3.7. Got a working version up in less than 8hrs in total with passing tests! Never wrote a single line of code. I would estimate the number of cursor iterations to about 500.

Process was: 1. Ask Claude to create a boiler plate JIT in LLVM (see below shared chat) 2. Asked Claude on the architecture and what classes should be created (did this in cursor): - lexer - parser - AST - Code gen 3. Implemented each part separately, lexer, parser and AST took 1hr, codegen took ~7hrs.

It can define variables, functions and do some basic stuff: try: (defn factorial [n] (if (= n 0) 1 (* n (factorial (- n 1))))) (factorial 5)

Hope you like it!

Here are some chats if you are interested in the first part of the coding (the rest was done in cursor):

LLVM - https://claude.ai/share/3c5a1f92-389f-4274-8348-dcceaee8f140

Lexer - https://claude.ai/share/fa32b8bd-0b8e-4faa-bc09-fc3dd9bb5ad3

8.

Toy Lisp compiler using LLVM done with AI in 8hrs(github.com ↗)

1 points · by jensb1 · 1y ago · 1 comment

comment 3y ago · link · parent

typo

comment 3y ago · link · parent

Could someone explain how token generation speed relates to latency for the first token to be outputted?

And if anyone have any metrics on latency on a 4090 for the 70B model, that would be very helpful.