Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
aka-rider
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
aka-rider
19d ago
Yes and no. We used to have rampant script kiddies back in the '90s and early 2000s. After 2005-ish, well maybe 2010, most systems became adequate enough to not trust users' input, bug bounties, security as a separate role, etc, e
2.
▲
by
aka-rider
20d ago
Google is routinely buying and destroying competitors. They lower prices to kill competition en-masse. They promote their own products in search and elsewhere over paid ads. Search Engine have chicken and egg problem, you can only have a go
3.
▲
by
aka-rider
23d ago
I don’t know about Windows but between MacOS and Linux mine experience is smooth. I can even cross compile from Linux to MacOS.
4.
▲
by
aka-rider
24d ago
True, the main problem is how to split the work. They decided to go file by file. To be fair, I haven't try exactly "rewrite in Rust" prompt, but I cannot imagine for this to work.
5.
▲
by
aka-rider
24d ago
I don't know. The most Go software I encountered is IO-bounded, and usualy it's network latency. Rust cannot meaningfully improve this. Although, in the agentic environment, a benefit of not having GC at all definitely helps.
6.
▲
by
aka-rider
24d ago
> I have rewritten several things from eg. Python to Rust, Rust to Go very recently. What is the scale? Because I'm pretty sure it's impossible to one shot 65k LoC with "good luck, make no mistakes" prompt. I also did
7.
▲
by
aka-rider
24d ago
I'm glad to help
8.
▲
by
aka-rider
24d ago
>files might diverge The way rune works with files minimizes chances of silent corruption. I keep original byte blobs immutable, separately there is a journal (kinda WAL) of positional deltas (inserts and deletes). So I only need to vali
9.
▲
by
aka-rider
24d ago
This isn't complete example. I don't remember the details unfortunately. But somehow compiler has decided that i <= limit is always true.
10.
▲
by
aka-rider
24d ago
Thanks for the feedback. My main goal was to present the idea with an intermediate representation, I didn't payed much attention to the specifics of this translation, it would vary wildly depending on code bases. 65k LoC of Go without
11.
▲
by
aka-rider
24d ago
it depends, obligatory xkcd https://xkcd.com/1172/
12.
▲
by
aka-rider
24d ago
Nice. Yeah, the general problem is how to divide and conquer. Your method is not always available (it depends on the language pair), in my case, Go packages didn't translate into Rust crates 1:1.
13.
▲
by
aka-rider
24d ago
Not at all. The example was an experiment. I did because I have a huge legacy code base, a distributed monolith, a few millions lines of code. Ideally, I want to get rid of it. At this point, I know a recipe to break the monolith, so I fina
14.
▲
by
aka-rider
24d ago
Of course language concepts don't translate. My point is that one can translate the data flow to another language. You could imagine any program as input -> [blackbox] -> output. For example, same pixels rendered on the screen pr
15.
▲
by
aka-rider
24d ago
> if you just let it rip on the problem for hours In my experience, you can get good results if Fable does't write code itself, only spawn subagents. I can run Fable for 10 hours, and it would output 50k tokens and read 300k (30% of
16.
▲
by
aka-rider
24d ago
Fable is good at instruction following, so just adding the snippet I mentioned in the post is good enough for the most cases. There is a way to control tool invocations at the harness level when writing skills or agents. Example: ~/.cl
17.
▲
by
aka-rider
24d ago
>feed the same input to the old Go app and the new Rust then diff the outputs. Yes, I completely forgot to mention, this is exactly my case. Rune is a TUI editor, so I feeded the same terminal sequences to the old and new apps. It didn&#
18.
▲
by
aka-rider
24d ago
I don't remember the details, roughly it was unexpected invocation of move semantic, causing use after free in a loop. My all-time favourite example is (again, my memory, I may be a bit wrong): for (int i = 0; i < (size_t)limi
19.
▲
by
aka-rider
24d ago
My understanding is, direct port is more expensive besides toy projects of course, looking at Bun and also listening to people who've done a few language conversions, they extract something first. If not an intermediate representation,
20.
▲
by
aka-rider
24d ago
It is all very unevenly distributed. SaaS and general web is basically on auto mode. A lot of infra is vibe coded nowadays too. Even prototypes are contributing to the speed of software development. Many people vibe code throwaway dashboard
21.
▲
by
aka-rider
24d ago
>You aren't Claude at least. I absorbed so many different models at this point :) Thank you for the kind words.
22.
▲
by
aka-rider
24d ago
I would be afraid to do this with C++. My friend once sent me a snippet, maybe 10 lines of C+++, asking "can you spot the UB?". So I'm staring at these 10 lines, I KNOW there is an UB. I wasn't able to find it without a
23.
▲
by
aka-rider
24d ago
> I'd highly recommend a direct "port" I'm sure there are other caveats. Also cost of the more or less straightforward Bun port was $165000 for 500KLoC.
24.
▲
by
aka-rider
24d ago
I doubt that it is possible with GLM. I haven't played with GLM 5.3, only with 5.2, so I cannot say for sure. GLM is at the level of Opus. Fable is something different entirely. It is capable of tracing the data flows of the app, I eve
25.
▲
by
aka-rider
25d ago
I wrote this elsewhere. Reading so much LLM output may have affected how I write. Probably I need some fresh air and a good fiction book.
26.
▲
by
aka-rider
25d ago
This is genuinely how I write :'( It is probably because I read tons and tons of LLM output.
27.
▲
by
aka-rider
25d ago
But we know, Bun was 535496 lines for $165000. The whole point of this experiment was to try and make the rewrite as cheap as possible.
28.
▲
by
aka-rider
25d ago
this is the meat, yes.
29.
▲
by
aka-rider
25d ago
I'm glad you liked it. I was trying to keep both, the title and the content as straightforward as possible. Another point is, Fable is reasonably cheap if you don't allow it to read or write.
30.
▲
by
aka-rider
25d ago
You are correct, that this is not the best Rust learning material. $400 are subsidized into the subscription, and this was mainly an experiment to prove the theory about data conversion step. I call it a success and I use rune editor daily.
More ›