Better HN
topnewbestaskshowjobs
Log inSign up

rnmmrnm

59 karma · joined Nov 15, 2022 (4y ago) · 52 submissions

Submissions

comment 10mo ago · link · parent

this is cute but i imagined prompting the ai for a loop-di-loop roller coaster. If this could build complex ride it would be a game changer.

2.

NameCheap revokes a domain dedicated to hosting footage from Gaza(twitter.com ↗)

39 points · by rnmmrnm · 11mo ago · 3 comments

3.

Ask HN: P2P Archive.is Alternative?

5 points · by rnmmrnm · 1y ago · 1 comment

4.

We Built Exactly-Once Delivery Without Checkpoints or Latency Penalties(blog.epsiolabs.com ↗)

4 points · by rnmmrnm · 1y ago · discuss

comment 2y ago · link · parent

"So I deployed that hasty fix on friday..."

comment 2y ago · link · parent

just my two cents that netfilter (for which iptables is a frontend) is a kernel subsystem and therefore global to all containers on host.

comment 2y ago · link · parent

https://harmful.cat-v.org/software/GCC classic

comment 2y ago · link · parent

Well here I tunneled multiple TCP connections traffic over a single input/output streams (the SSH shell IO stream).

Basically when you got a single communication channel and it's expensive to create more channels to tunnel multiple TCP streams where each connection get's its on channel, this is when you reach for the muxer.

i.e. here I probably could make it without yamux if instead I used SSH control port(socket? master?) and created many shell IO streams. but using yamux makes it cleaner. Also the server I'm working on is very buggy and you really get like 50% success rate logging in.

I suggest you download this `yamux` utility and play around with it really :)

comment 2y ago · link · parent

reminds me how the other day I circumvented disabled SSH port forwarding by using https://github.com/nwtgck/yamux-cli + ncat already on the machine to do something like: yamux -l lport | ssh server -- <script: ncat --proxy-type=http -klp proxyport & and yamux localhost proxyport>.sh

good thing I needed HTTP access or else i had to find that socks5 server that's actually working again.

comment 2y ago · link · parent

I also need elaboration on this. I presumed calling lua from c can be used to implement user-defined callbacks. Launching a thread for lua + locking seems even slower?

comment 2y ago · link · parent

pretty fun though.

comment 2y ago · link · parent

I didn't finish yet but I was thinking he's talking about memorizing the algorithm to calculate sines in your head.

comment 2y ago · link · parent

obviously, but i'm not so keen to turn it into a pre-emptive scheduler either lol.

comment 2y ago · link · parent

Terribly sorry!

comment 2y ago · link · parent

Well the only thing that's really itching me is the fact that the whole lua debug.* section is documented as

>You should exert care when using this library. Several of its functions violate basic assumptions about Lua code (e.g., that variables local to a function cannot be accessed from outside; that userdata metatables cannot be changed by Lua code; that Lua programs do not crash) and therefore can compromise otherwise secure code (from the manual)

kinda creeps me out.

comment 2y ago · link · parent

reading beyond the first paragraphs, I see this practically what he advocates to do :P

comment 2y ago · link · parent

A bit off topic: I just wrote a bunch of lua C debug api code (lua_sethook) to pre-emptively run and context-switch multiple lua "coroutines" (well not so "co").

Is this library offering a lua implementation more well-designed for this use-case? I got all this code to unload the coroutine stack to store and and reload it before continuing it later. Does having C bindings to this library makes sense?

comment 2y ago · link · parent

you wrap those properly. believe me waking up in the middle of the night because someone abused panic to throw state around, end up being called from a new goroutine, just enough to crash the entire pod, sucks even more.

comment 2y ago · link · parent

tbh only like 50% of my `if err != nil { return err }` are mindless. rest of the time, the fact that error handling is explicit and in my face has helped me alot during my time with go.

comment 2y ago · link · parent

sane error handling in go is more productive any day.

comment 2y ago · link · parent

the day the go codebase throws random panics is the day I quit the company.

comment 2y ago · link · parent

And he didn't even get into how mac docking stations fucking suck and full of graphics bugs (everybody in my company actually turned off chrome GPU accel. because the display sometimes went crazy while rendering.)

comment 2y ago · link · parent

my company was too scared to roll X509 signing code on their own so here we are.

24.

Ask HN: Grep.app Alternative?

2 points · by rnmmrnm · 2y ago · 1 comment

comment 2y ago · link · parent

More than seeing it in main, I'm happy for the "python thread slow" meme officially going away now.

comment 2y ago · link · parent

Thank you. HN stripping query params is funny.

27.

The Gentle Vultures by Isaac Asimov (1957)(readli.net ↗)

4 points · by rnmmrnm · 2y ago · 2 comments

12