Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
asa400
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
271.
▲
by
asa400
3y ago
Nice work! There are a few expressions of this idea. There's a reason people keep coming back to it: it's actually really nice to write markup this way. https://github.com/weavejester/hiccup https:/
272.
▲
by
asa400
3y ago
Heh, I haven't seen that particular datetime constraint before, thanks for that!
273.
▲
by
asa400
3y ago
This is super cool! I like your method for handling the claiming of queue items. I always end up wishing SQLite had something like Postgres' LISTEN/NOTIFY/SKIP LOCKED but your UPDATE solution is nice and low tech and fitting
274.
▲
by
asa400
3y ago
Sure! And in a lot of ways this is about values more than technology.
275.
▲
by
asa400
3y ago
SQLite's types are quite loose by default, no doubt. There is a somewhat recent STRICT mode that strengthens them: https://www.sqlite.org/stricttables.html
276.
▲
by
asa400
3y ago
> I think you're talking about the trade offs between supporting features like "DOM manipulation, state management, animation, etc." and "shipping updates" out of the box, versus only storing the data as simple f
277.
▲
by
asa400
3y ago
Oh I read the post and a few of the other linked posts so I'm aware. If we're storing a file, we're already storing a file of some kind, so we're just talking about what kind of file it is. I'm just talking about a
278.
▲
by
asa400
3y ago
Valid points and I generally agree! I think you're probably right that the SQLite dependency is possibly too much for some applications to pull in, though I will ask why we're so often willing to pull in more or less anything else
279.
▲
by
asa400
3y ago
I've worked a few jobs now where application data was stored in text files of various kinds (homegrown as well as well-defined formats, JSON included) and it pretty quickly becomes a mess when you start talking about modifying it over
280.
▲
by
asa400
3y ago
Excellent - thank you for the example and the clarification. This is exactly what I was looking for.
281.
▲
by
asa400
3y ago
> My experience with snare and pizauth is that Rust is a viable language for writing daemons in. Rust isn’t a perfect language (e.g. unsafe Rust currently has no meaningful semantics so any code which uses unsafe comes with fewer guarant
282.
▲
by
asa400
3y ago
I second this. Awk is one of my favorite programming languages (I would even say, one of my favorite tools) and "The AWK Programming Language" is definitely a worthy book.
283.
▲
by
asa400
3y ago
awk: echo '1 "one"\n1 "two"\n1 "three"\n1 "one"\n1 "four"\n1 "two"' | awk '{ counters[$2] += $1 } END { for (id in counters) { print counters[id], id } }'
284.
▲
by
asa400
3y ago
Nice work! I will have to check out your implementation and see if I can borrow any of your optimization ideas. I built jindex ( https://github.com/ckampfe/jindex ) because I also wanted a faster gron!
285.
▲
by
asa400
3y ago
> I'm particularly curious about when to split off a new process, and what "if things fail, do something simpler" means in practice. Processes are failure and concurrency barriers. Failure: one process crashing does not cr
286.
▲
by
asa400
3y ago
I like it a lot. The big advantage of Rustler vs. say, writing C or using Zig's equivalent, is that you can just use any Rust libraries. For example, I wrote Rust<->Elixir bindings to xxhash and CANBus for our industrial control&
287.
▲
by
asa400
3y ago
Great, thank you!
288.
▲
by
asa400
3y ago
Can anyone elaborate on the binary pattern matching change? Listed as this in the blog post, but I don't see it in the release notes: ```improved binary pattern matching by allowing prefix binary matches, such as <<^prefix::binar
289.
▲
by
asa400
3y ago
Just to add an additional anecdote/perspective for other folks curious about the Erlang mention: the lack of client support in Erlang/Elixir is real, unfortunately. Just an artifact of it being a smaller ecosystem, but it's i
290.
▲
by
asa400
10y ago
scala? #!/usr/bin/env amm import $ivy.`io.circe::circe-core:0.5.1` import $ivy.`io.circe::circe-generic:0.5.1` import $ivy.`io.circe::circe-parser:0.5.1` import io.circe._, io.circe.generic.auto._, io.circe.
291.
▲
by
asa400
11y ago
Li Haoyi just gave a talk at Scala by the Bay entitled "Beyond Bash", which details the shell scripting environment he's been working on that is hosted in a reimplementation of the Scala REPL, called Ammonite. Slides for the
292.
▲
by
asa400
11y ago
Very cool. I love seeing stuff like this: simple things that illustrate how easy it is to get going with concurrent programming in Elixir/Erlang.
293.
▲
by
asa400
12y ago
Warning: wall of text ahead. My Erlang experience is admittedly hobbyist, and mostly as a consequence of working my way through Fred's excellent http://learnyousomeerlang.com/ and fooling around with side projects. As
294.
▲
by
asa400
13y ago
Excellent reply, exactly what I was looking for. Thanks very much!
295.
▲
by
asa400
13y ago
This looks great, but I'm not so keen on getting into Java at this point. Has anyone taken this, and if so would it be feasible for someone from a Ruby/Python background to grok what they're getting at?
296.
▲
by
asa400
13y ago
So unless I'm missing something, this is more/less Jekyll with generalized capability and less blog-focus? Looks interesting.