Better HN
topnewbestaskshowjobs
Log inSign up

mgdev

632 karma · joined May 19, 2020 (6y ago) · 226 submissions

Submissions

comment 2y ago · link · parent

Nothing new. Amazon's (now discontinued) browser extension [1] was, among other things, used to get competitive price information w/o being hit by crawling restrictions.

[1]:https://www.tomsguide.com/news/amazon-is-killing-one-of-its-...

comment 2y ago · link · parent

Reading the actual case document, it's hard to chalk this up to anything but gross incompetence.

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.

comment 2y ago · link · parent

I genuinely can't tell if George Hotz is genius or, mid and totally full of himself.

comment 2y ago · link · parent

Time to gather the dragon balls.

comment 2y ago · link · parent

Turn on FileVault. Don't give anyone your password.

Pretty fathomable.

156.

Some Lessons Learned Building LLM-Powered Agents(mg.dev ↗)

1 points · by mgdev · 2y ago · discuss

comment 2y ago · link · parent

They're focusing on what matters.

comment 2y ago · link · parent

Rustler is great. Though this gets me thinking about how you can maintain as many Elixir invariants and conventions as possible, even while escaping them under the covers. Being able to call FeGraph.set/2 and have db actually be mutated violates Elixir's common call patterns, even if it's technically allowed.

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 2y ago · link · parent

Talking to Goody-2 reminds me of working at Meta (during the ZIRP era).

comment 2y ago · link · parent

Agree. They failed to capitalize on their existing brand awareness. All it would have taken was a coordinated, concentrated, 3-4 week GTM motion leading up to product availability.

comment 2y ago · link · parent

Building deck = programming

Playing = executing

comment 2y ago · link · parent

The sample code plus walkthrough sounds like "things people can run on their computers". :)

comment 3y ago · link · parent

Let's call it the "messy middle" and see if we're on the other side of it. :)

comment 3y ago · link · parent

I would.

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

The problem is the system on the other end usually has timing/causality expectations (e.g., in the case of reentrant calls), and that system is not usually part of your system (e.g., they wouldn't include whatever monotonically increasing counter your system would require to ensure causal consistency).

comment 3y ago · link · parent

You've just pushed the problem down to the system that checks idempotence keys.

comment 3y ago · link · parent

Apple could afford to put out the best repair tools in the industry, doing two things:

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

As with ever other major innovation, it will both destroy and create jobs. Whether AI creates more good than harm will be hard to actually evaluate. Like every innovation, there will be general disagreement on what constitutes "good".

comment 3y ago · link · parent

GraalVM is a hugely under-appreciated piece of technology. A lot of my initial interest came from being able to blend different languages into a single runtime via the polyglot APIs, but the combination of performance, strong sandboxing support, and multi-language support has helped it emerge as a key primitive for anyone wishing to build extensible platforms without sacrificing speed, security, or developer ergonomics.

comment 3y ago · link · parent

Totally. I support a team of 40+ and even I have a hard time proposing this. Very hard to go against the herd.

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

After 20 years trying All The Frameworks, Phoenix is the first that excites me in a long time. Both the community and the coding experience remind me of Rails's early days in 2004/2005.

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've found the code gen approach to be very positive. Most of the generated code is minimal app-specific modules that in turn `use` Phoenix modules. This gives you a handy place to insert your customization w/o having to resort to dynamic metaprogramming contortions the way you used to have to in Rails.

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.

comment 3y ago · link · parent

Facebook has done enough feature launches that they train their teams to look for and expect a huge initial engagement peak as people explore the product. It's Deltoid 101.

comment 3y ago · link · parent

There goes my hero.

comment 3y ago · link · parent

I deleted my Reddit account of over ten years over this. No going back.

comment 3y ago · link · parent

Their footprint for just their own services rivals some other public clouds.

comment 3y ago · link · parent

Jose, you are prolific. Love it.

comment 3y ago · link · parent

I plan to phase GM out of my consideration set for all new purchases, with GM's help.
1
45678