Better HN
topnewbestaskshowjobs
Log inSign up

candleknight

151 karma · joined Feb 3, 2023 (3y ago) · 26 submissions

Submissions

comment 1y ago · link · parent

kitty is great, but I stopped using it because iTerm's terminal search feature - which I use almost daily - is much more ergonomic. The existing solution in kitty (pipe scrollback buffer to something like less/vim and search with /) is a lot worse IMO which is unfortunately a dealbreaker for me

comment 2y ago · link · parent

I have a repository where I make classic programs (game of life, sudoku solver, brainfuck interpreter, etc) but entirely within Typescript's type system

https://github.com/ruyili/cursed-typescript/

comment 2y ago · link · parent

> First of all, there are no otters here. I'm utterly sorry about that.

incredibly important suggestion: replace "utterly" with "otterly"

comment 2y ago · link · parent

Awesome work on this, it looks like a game changer!

From my (admittedly limited) knowledge on this space, it seems like this is a straight upgrade over WASM, with the only limiting factor being that your stack is limited to Bun + C. Are there any downsides of this feature when compared with the alternatives mentioned at the start of the article? There are some tradeoffs listed at the bottom but I'm not sure how napi/WASM perform in those aspects either.

comment 2y ago · link · parent

but that'll be at runtime

comment 2y ago · link · parent

Starting off with "In the realm of..." instantly gave it away

comment 2y ago · link · parent

the combat is intense, it really felt like i was slowly getting pickaxed to death

comment 2y ago · link · parent

this gives me an idea for a new typescript type level project

9.

Show HN: A Type-Level Brainfuck Interpreter(github.com ↗)

1 points · by candleknight · 2y ago · discuss

comment 2y ago · link · parent

This is hilarious, I'm changing all my websites to have "Made with cold indifference by $NAME" in the footer now

comment 2y ago · link · parent

The last time I tried, it was pretty slow to fire up, especially when I tried to run multiple submissions at once. It's also even more overkill for my use case; I currently use isolate (https://github.com/ioi/isolate) which is just a wrapper around cgroups/namespaces, and it's been a lot faster.

Sidenote: I'm not really looking to replace it, I was just asking out of curiosity since this is my first time hearing of unikernels

comment 2y ago · link · parent

Would unikernels be feasible for online judge platforms (e.g. codeforces, leetcode)? I was thinking something along the lines of: spawning a unikernel for each submission -> running a single file program -> streaming the output back to a server, all in <3s and potentially with multiple submissions running in parallel. I'm fairly new to this, so I'm not sure if that would be overkill.

13.

Show HN: A Sudoku solver in TypeScript's type system(tsplay.dev ↗)

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

14.

Vertical – Swap columns to form popular 5-word phrases(ruyili.ca ↗)

2 points · by candleknight · 2y ago · discuss

comment 3y ago · link · parent

I got the following error when I opened up a game page in my library (Hyper Light Drifter, if it matters):

Check failed: g.steam_receive_prefix_bytes[1] == 0x31305456

File: client_steam.cpp

Line: 2620

Last Error: 0x00000000. The operation completed successfully.

comment 3y ago · link · parent

the power of tail call optimization :)

17.

Show HN: Conway's Game of Life in TypeScript's type system(github.com ↗)

186 points · by candleknight · 3y ago · 45 comments

comment 3y ago · link · parent

university of waterloo as well, although thankfully classes start in two weeks for us

comment 3y ago · link · parent

awesome game, i thoroughly enjoyed flinging pieces off the board at mach 30 for 30 minutes straight

comment 3y ago · link · parent

This was so well edited, I could only tell that it was fake since the sofa didn't have a reflection

comment 3y ago · link · parent

> Are there any practical applications for this app? > Nope! > It's really hard to use! > Yup!

lol appreciate the honesty, this is crazy though. Mad respect

22.

Show HN: Access long URLs with short, easy-to-remember names(ruyili.ca ↗)

2 points · by candleknight · 3y ago · discuss

comment 3y ago · link · parent

> I've seen excellent competitive programmers end up being mediocre engineers

I've seen the opposite. I know many extremely talented competitive programmers (IOI, CCO, USACO platinum, Codeforces grandmasters, ICPC, and the list goes on) and they are all excellent engineers. It's not about having a wealth of knowledge about DSA (although this occasionally helps, depending on the type of work) or competitive programming itself, but rather the skills it teaches. They all know how to learn new things very quickly and thoroughly, and it goes without saying that their general problem-solving skills are incredible. They've interned at companies like Snowflake, Google, Jump, Citadel, Jane Street, Waabi, Uber R&D, DataDog, SingleStore, etc. (all before or during their 3rd year, which is practically unheard of for "normal" students, especially during the tech recession) and have consistently received the highest performance grade (our co-op program requires employees to give them a rating on a scale from 1 to 7). There are also a few I don't know directly who are in fact working on things like Bard, or have founded their own companies (TabNine was one of them IIRC).

comment 3y ago · link · parent

Looks awesome! A filter for internships would be really helpful

comment 3y ago · link · parent

that link's broken, I think you meant https://lobste.rs/