632 karma · joined May 19, 2020 (6y ago) · 226 submissions
comment 2y ago · link · parent
[1]:https://www.tomsguide.com/news/amazon-is-killing-one-of-its-...
comment 2y ago · link · parent
Dude gets off the phone after learning the information, and immediately calls the brokerage to write puts that expire 11 days later (strike 1).
He nails the strike price (keeping below 70; strike 2), and when the brokerage calls later he openly admits on the call that he traded on a nonpublic rumor (strike 3).
Absolutely zero subterfuge. He either has a blatant disregard for the law, or is an extremely high-functioning idiot, or both.
156.
Some Lessons Learned Building LLM-Powered Agents(mg.dev ↗)
1 points · by mgdev · 2y ago · discuss
comment 2y ago · link · parent
For example: I wonder if it wouldn't be more "erlangy"/"elixiry" to model the mutable ops behind a genserver that you send messages to. In the Elixir world it's perfectly normal to make GenServer.call/3 and expect the target PID to change its internal state in a non-deterministic way. It's one of the only APIs that explicitly blesses this. The ETS API is another.
Alternatively, you could have the ref store both a DB sequence and a ref ID (set to the last DB sequence), and compare them on operations. If you call FeGraph.set/2 with the same db ref two times, you compare the ref ID to the sequence and panic if they aren't equal. They always need to operate with the latest ref. Then at last the local semantics are maintained.
Maybe this is less relevant for the FeGraph example, since Elixir libs dealing with data are more willing to treat the DB as a mutable thing (ETS, Digraph). But the it's not universal. Postgrex, for example, follows the DB-as-PID convention. Defaulting to an Elixiry pattern by default for Rustler implementation is probably a good practice.
comment 3y ago · link · parent
MS has had a storied past when it comes to frontend tech, but rather than diverging and dying, what we seem to see now is convergence of a coherent technical vision (and some pruning as a result). They look the same on the surface, but the result is totally different.
The latest version achieves exactly what every strung-together implementation of a moderately complex SPA architecture has aimed for in the past decade: fast initial render, low latency interactivity, low server load.
They did it in a way that still plays moderately well with the existing JS ecosystem.
They did in in a way where everything you do can be airlifted to the desktop or mobile via MAUI Blazor Hybrid.
And some of the underlying pieces that are coming along to make this possible are incredible. (Go check out some of the stuff they're doing in the wasm/WASI space.)
comment 3y ago · link · parent
comment 3y ago · link · parent
1/ deposition competitors with inferior repairability v performance scores, ultimately leading to increased market share among the most discerning customers, who are also influencers for other non-expert buyers
2/ eventually create a thriving secondary market that reaches consumers who otherwise wouldn't consider buying Apple products, ultimately leading to increased market share among non-expert buyers and children (who grow up to be customers)
comment 3y ago · link · parent
comment 3y ago · link · parent
There's so much progress happening in existing Python-powered ML community that, unless there are very good interop tools and protocols (e.g. ONNX and the like), then even if you gain productivity gains w/your local team by moving to Elixir, you risk losing your ability to draft off that larger community's progress.
Very hard trade-off unless you're sufficiently funded to invest in the gaps.
comment 3y ago · link · parent
Same for Elixir in general. Different philosophies, but same energy, some craftsmanship, some welcoming attitudes, same hubris about what can/can't be done by revisiting from first principles.
LiveView is quite elegant, and is something that could only exist with such elegance in a language/runtime/community that values and supports long-lived processes with functional semantics.
Broadway builds on the shoulders of giants to provide robust data ingestion and processing... as a library, rather than the cobbled-together set of independent systems that is usually needed to do this.
The architectural concepts underlying Livebook put it on a path to surpass Jupyter, if only we can get critical mass adoption.
The stuff emerging in the Elixir + ML space thanks to Nx and Axon gives me some hope that Elixir will find a place as an all-in-one home for all things ML. Livebook makes it easy do to incremental experimentation. Bumblebee makes it stupidly simple to use pretrained models.
It's all so magical.
What we need, though, is better marketing!
comment 3y ago · link · parent
I also like the philosophy of magical experiences, without magical code. Everything is very traceable. And most of the time you don't even need to use the generators - just make your module, register in the right places, and you're done.