Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bitwalker
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
bitwalker
5y ago
Prometheus without any supporting tooling isn't really designed for long term storage as I understand it, however it is built to support long term storage and querying via its remote read/write protocol. Prometheus will write data
62.
▲
by
bitwalker
5y ago
I think this is where the operator pattern really shines. By defining a custom resource that contains the cluster configuration, the operator can detect certain types of changes, such as upgrading Postgres to a new major version, and automa
63.
▲
by
bitwalker
5y ago
I've been working with Elixir full-time since ~2014, and while I'm probably a bit of an outlier due to my open source libraries and speaking at conferences, I've so far found that there are always opportunities available if I
64.
▲
by
bitwalker
5y ago
Which problem? Because there aren't ads on the home screen, or even in the Apple TV app (other than promos for TV shows, but that's like...why you're there).
65.
▲
by
bitwalker
6y ago
I believe Ecto is largely inspired by LINQ from C#, but I wouldn't be surprised if SQLAlchemy was an inspiration as well.
66.
▲
by
bitwalker
6y ago
Meetings are scheduled here, along with their planned agendas: https://github.com/WebAssembly/meetings/tree/master/stack/20...
67.
▲
by
bitwalker
6y ago
They already cashed out $13MM, and the remaining stock were bought at like $14/share. Even if it crashes, they still called this thing like a year out and got rich off of it.
68.
▲
by
bitwalker
6y ago
I imagine the advent of more functionality being available in `const fn` would probably reduce a lot of the `macro_rules!` and proc macro use - at least it has for my projects. Definitely would like to see a more in-depth guide to patterns
69.
▲
by
bitwalker
6y ago
> sending a message to a remote node is just a special case of eval. instead of arbitrary code you're evaling `pid ! msg`. and what is spawning a remote process if not remote code eval? They are not equivalent at all, sending a mess
70.
▲
by
bitwalker
6y ago
For the use case you are describing, none of my points are important really - an HTTP request that hits a database, then pushes something onto a queue for background processing doesn't exhibit any problems from a process bottleneck poi
71.
▲
by
bitwalker
6y ago
> distribution, for example, is a much lauded feature of elixir/erlang but if you look into the implementation it's really just a persistent tcp connection with a function that evals code it's sent on the other end... I me
72.
▲
by
bitwalker
6y ago
My opinion is that this depends entirely on the cost relative to the overall task, and how likely cache hits are to occur. If cache hits are very likely and the task occurs frequently, I'd strongly consider storing it in ETS. If cache
73.
▲
by
bitwalker
6y ago
Process bottlenecks are a design problem, not a language or syntax problem; and are mitigated largely by a few points that can be factored in during design or PR review: - Be wary of places where you have N:1 process dependencies, where N i
74.
▲
by
bitwalker
6y ago
I'd expect scalar replacement of aggregates (SROA) would eliminate the use of a struct like this in some cases, but there are definitely limits, especially if not compiling with LTO enabled, since optimizations across compilation units
75.
▲
by
bitwalker
6y ago
Absolutely! I strongly believe we should be building alternative implementations of the Erlang compiler, the runtime, the virtual machine - all of the major components. It provides a lot of useful data that, if nothing else, can be used to
76.
▲
by
bitwalker
6y ago
I suspect there exists some internal documentation at Ericsson that just hasn't been cleaned up and added to the source repository - but it's entirely possible that the core Erlang/OTP team solely relies on passing the knowle
77.
▲
by
bitwalker
6y ago
100%, when I started building Lumen, I spent an enormous amount of time working out how various parts of the BEAM runtime were implemented, and it was (and still is sometimes) a grind. That macro-heavy C code is just such a bear to read. I
78.
▲
by
bitwalker
6y ago
There are really two major pieces of the BEAM, the parts implemented in Erlang (e.g. the compiler, OTP), and the parts implemented in C (the VM, or emulator as it is called in the codebase). Virtually all of the C code is undocumented in an
79.
▲
by
bitwalker
6y ago
I think we're coming at things from sufficiently different angles that it's not really necessary to merge our projects, other than perhaps some common parts that could benefit from that kind of sharing. Enigma is really a faithful
80.
▲
by
bitwalker
7y ago
Sure, I can't imagine any particular reason why that wouldn't work. That said, we don't have distribution implemented yet, since we are focused on a single node in the browser initially; so it depends on which comes first - S
81.
▲
by
bitwalker
7y ago
Yes, Lumen has a scheduler and does preemption the same way the BEAM does.
82.
▲
by
bitwalker
7y ago
Initially we’re not planning to support multiple schedulers via WebWorkers, but the runtime has support for multiple schedulers generally speaking. Since the compiler can target other platforms, we didn’t want to artificially limit all targ
83.
▲
by
bitwalker
7y ago
That’s not how WebAssembly works, at all, it is handled directly by browser JIT compilers.
84.
▲
by
bitwalker
7y ago
There is also a Python library called Elixir - naming is hard.
85.
▲
by
bitwalker
7y ago
Yeah, I learned Logo in elementary school and it was something that stuck with me until I actually started programming later on in school. I particularly remember having to write a program to navigate a maze, it was a blast!
86.
▲
by
bitwalker
7y ago
It just isn't needed, most things can be expressed using nothing more than recursion; more complex things can be expressed using `for` comprehensions, or by composing the various `Stream` APIs. I think `while` can more succinctly expre
87.
▲
by
bitwalker
7y ago
> Do you use this while-macro in production code or just test code? I use the `while` macro in the Distillery tests, since it made expressing certain tests much less verbose - namely those dealing with building up a release, spinning it
88.
▲
by
bitwalker
7y ago
Apologies, Professor, I missed your reply! SharedArrayBuffer makes communication between schedulers essentially equivalent to non-browser environments, but support for it is still iffy at best due to Spectre. Luckily, that is a temporary pr
89.
▲
by
bitwalker
7y ago
Well, I pointed out at the beginning that one can use recursion, and the implementation of the `while` construct itself uses recursion as well (in fact, you can't implement `while` without it in Elixir). In any case, expressing the equ
90.
▲
by
bitwalker
7y ago
Sure, the implementation of the macro is complicated, but the actual `while` construct that results is just as expressive as that of any language with a native `while`. But that's all beside the point, this was just an exercise, and wa
More ›