Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kketch
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
kketch
6mo ago
I think the isolation and memory safety guarantees that worker threads (or Web Workers) provide are very welcome. The friction mainly comes from ergonomics, as pointed out in the article. So there’s definitely room for improvement there (ev
2.
▲
by
kketch
6mo ago
The article calls worker threads "problematic", but it doesn’t really make a strong case for why they’re supposedly problematic. Having a separate isolate in each threads spawned with the worker threads with a minimal footprint of
3.
▲
by
kketch
7mo ago
Really amazing work, congrats!
4.
▲
by
kketch
1y ago
The main concern here isn’t really whether the agent needs access to the whole codebase. Personally I feel an agent might need to have access to all or most of the codebase to make better decision, see things have been done before etc. The
5.
▲
by
kketch
1y ago
I guess maybe even more things? The approach presented in the article doesn't seem like a good way of giving access to these by the way. All of these don't live on a dev machine. Things like Github codespaces are better suited for
6.
▲
by
kketch
1y ago
The seems to be looking to let the agent access the source code for review. But in that case, the agent should only see the codebase and nothing else. For a code review agent, all it really needs are: - Access to files in the repositorie(s)
7.
▲
by
kketch
1y ago
You can make it change the behaviour at runtime is different than it changes the behaviour at runtime I think? Lots of very useful tooling such as dataclasses and framework like FastAPI rely on this and you're opinion is that it's
8.
▲
by
kketch
1y ago
Well, precisely: - There is one obvious way to provide type hints for your code, it’s to use the typing module provided by the language which also provides syntax support for it. - You don’t have to use it because not all code has to be typ
9.
▲
by
kketch
1y ago
They don’t violate the spirit of the language. They are optional. They don’t change the behaviour at runtime. Type annotations can seem pointless indeed if you are unwilling to learn how to use them properly. Using a giant union to type you
10.
▲
by
kketch
1y ago
You can also use Websockets with AWS Lambda through API Gateway. And you can also use Websockets with Cloudflare workers: https://developers.cloudflare.com/workers/runtime-apis/webso... However it's worth poi
11.
▲
by
kketch
1y ago
Just because you haven't heard of it doesn't mean the risk isn't real. It's probably better to make some kind of risk assessment and decide whether you're willing to accept this risk for your users / business.
12.
▲
by
kketch
1y ago
When not using python, been using this script to create ephemeral postgres databases for tests but also persistent one in my dev containers: https://github.com/eradman/ephemeralpg I've wrapped it with yet another
13.
▲
by
kketch
1y ago
I've been using postgres as a local database for one of my personal projects, a GUI app or to run python tests that depend on it without having to rely on installing it in my environment. I created a Python package that downloads an em
14.
▲
by
kketch
1y ago
Yes there is some glue needed. The amount of boilerplate needed can be reduced with a bundler or depending on the library you use (just like it is the case when you use workers with JavaScript on the web, you can use a bundler with support
15.
▲
by
kketch
1y ago
You can do all of this using Rust today. Very sane access to multi-threading => writing rust code that runs in parallel and is compiled without you worrying about it to run under several web workers
16.
▲
by
kketch
1y ago
WASI does not implement POSIX. And it isn't the goal of WASI to implement POSIX. It does not support pthreads either. WASI is similar to POSIX because its an API that provides a "system interface" for WASM programs. But the A
17.
▲
by
kketch
1y ago
WASM itself does not support pthreads. However things like Emscripten have very good support for pthreads. WASM is one of the compilation targets of Emscripten (we had asm.js before that) and on top of that emscripten provides excellent sh
18.
▲
by
kketch
1y ago
React is the front end framework I've used the most when doing front end. It is and was sold as a simple and performant library to build interactive web apps, but things like its virtual dom was a very memory-hungry abstraction that im
19.
▲
by
kketch
1y ago
True. But I would not expect any programming language to do that. Rust provides safeguards and helps you to enforce mutability and ownership at the language level, but how you leverage those safeguards is still up to you. If you really want
20.
▲
by
kketch
1y ago
Technically no. Producing side effects from a setter is not unexpected, even if it often the best idea to have a setter have a lot of unexpected side effects. However producing side effects from getters is definitely unexpected and should n
21.
▲
by
kketch
1y ago
assignments are side effects, even more so when they are done through a setter on an object / class instance
22.
▲
by
kketch
1y ago
This article makes me wanna try building a token field in Flutter using a LLM chat or agent. Chat should be enough. A few iterations to get the behaviour and the tests right. A bit of style to make it look Apple-nice. As if a regular dev wo
23.
▲
by
kketch
1y ago
You are saying the responsibility for the instant incineration of hundreds of thousands of civilians lies with the bombed, and not the bomber?
24.
▲
by
kketch
1y ago
How could detonating a nuke over a city not violate humanitarian law … ?
25.
▲
by
kketch
8y ago
how about using pdb?
26.
▲
Why choose Rust?
(blog.passfort.com)
2 points
by
kketch
8y ago
|
0 comments