Better HN
topnewbestaskshowjobs
Log inSign up

lopopolo

743 karma · joined Jan 12, 2012 (14y ago) · 144 submissions

Software engineer | Senior Staff Software Engineer at Brex | Artichoke Ruby

https://hyperbo.la | https://www.artichokeruby.org

Submissions

1.

Aligned to whom?(hyperbo.la ↗)

181 points · by lopopolo · 2mo ago · 124 comments

comment 4mo ago · link · parent

You can read the receipts in the linked source material yourself. I’ve also read and signed off on every word in this anthology. Try it before you knock it?

But yes, 100% of the content of this repository was written by GPT-5.6 Sol Ultra.

comment 4mo ago · link · parent

The models are very good now so the feedback cycle on these meta adjustments is much tighter. Yesterday I was able to one shot a Liquid Glass, HIG-compliant and localized DICOM image viewer (frame by frame and looping video) with Apple Intelligence for de-jargoning the series details. Took 30 minutes. But the app had 60% CPU because it was not caching the decoded JPEGs. I can do a point in time fix for that of course, but the more interesting thing is why that misaligned code was permitted to be generated in a “done” artifact in the first place. What other misaligned code from a perf perspective might there be? And how do I intervene into the system that produced this software to make these misalignments statically not meet acceptance criteria?

comment 4mo ago · link · parent

Basically yea. It is the only way to learn how to outrun your priors on what “high ambition” looks like. The labor that goes into implementation is an uncapped resource now.

comment 4mo ago · link · parent

And to address your broader question, yes this is a form of RSI and to me a vastly superior approach to fine tuning since it allows adopting new model releases without throwing anything away while still having the same effect on improving adherence to local acceptance criteria.

comment 4mo ago · link · parent

Your example is super amenable to vibing some tests. As an example, I’ve been able to ban `number` from representing a duration by walking the AST in a linter to fail if var or param names that look like the end in millis or ms or sec appear. This is largely good enough. If you see that “drifting” behavior appear more than once, you have enough to stop and force the agent to write some static verifiers that reject all but the option you want. For a closer example, we did this with zod schemes and their corresponding inferred types to be universally ZPascalCase and PascalCase instead of camelCaseSchema and CamelCase

comment 4mo ago · link · parent

Your “really cheap” agents can’t be so cheap that they do not have good tool calling skills. But! Using bigger models to put guardrails in place as static verifiers allows lower complexity changes to “self steer” as tests fail, which means coming down on the cost curve is more effective.

comment 4mo ago · link · parent

Glad to hear it! Good luck, have fun. The agents tend to do a pretty good job incorporating these ideas. This was an unexpected thing we learned when publishing the initial harness engineering post.

comment 4mo ago · link · parent

Hi folks, author here and also author of the seminal OpenAI blog on this topic. Let me know how I can help you all let it rip.

10.

I Wrote 4k Lines of Code with ChatGPT in a Weekend(hyperbo.la ↗)

2 points · by lopopolo · 3y ago · 1 comment

11.

Show HN: strftime-ruby, no-std, Ruby-compatible Rust implementation of strftime(crates.io ↗)

2 points · by lopopolo · 4y ago · discuss

12.

kube-monkey: An implementation of Netflix's Chaos Monkey for Kubernetes clusters(github.com ↗)

2 points · by p4lindromica · 4y ago · discuss

comment 4y ago · link · parent

The mruby VM as used in Artichoke uses Artichoke's Rust implementations of `String`, `Symbol`, and `Array` (and many other core classes, these ones just happen to be used by the VM itself). The symbol table (which is an essential part of how classes and methods and `send` are implemented) is implemented using the `intaglio` crate which is part of the Artichoke project.

These implemented-in-Rust bits expose themselves to the remaining C with `extern "C"` APIs written in Rust that maintain ABI compat with the mruby code they replace.

The mruby VM is getting eaten by the Rust parts, so I don't think it's quite fair to say that Artichoke uses mruby as an off the shelf component. To fully move beyond mruby though to a native Rust VM will take time.

comment 4y ago · link · parent

Hi, Artichoke author here. I feel very blessed to have Artichoke be mentioned in this ticket on Ruby's bug tracker. If y'all are interested to follow along, @artichokeruby on Twitter is the best spot to do it.

https://twitter.com/artichokeruby

15.

memc.rs: drop-in replacement for memecached written in Rust(memc.rs ↗)

2 points · by p4lindromica · 4y ago · 2 comments

16.

Artichoke Ruby's Rust implementation of `String` has been merged(twitter.com ↗)

3 points · by p4lindromica · 4y ago · discuss

17.

Contributing to Artichoke in Rust(briankung.dev ↗)

2 points · by p4lindromica · 5y ago · discuss

comment 5y ago · link · parent

The compiler does have a lint to force being explicit about unsafe in the way you describe. It is an allow by default lint called `unsafe_op_in_unsafe_fn`.

19.

Microsoft Launches JIT-Free 'Super Duper Secure Mode' Edge Browser Experiment(securityweek.com ↗)

5 points · by p4lindromica · 5y ago · discuss

20.

AWS Organizations Service Control Policies (SCPs) Written in HashiCorp Terraform(github.com ↗)

2 points · by p4lindromica · 5y ago · discuss

21.

Senior Engineers Build Consensus (2019)(hyperbo.la ↗)

205 points · by lopopolo · 5y ago · 115 comments

comment 5y ago · link · parent

Whimsical - https://whimsical.com/

comment 5y ago · link · parent

For now Artichoke leans on mruby’s parser, but I’m looking forward to using https://github.com/lib-ruby-parser/lib-ruby-parser which is a Rust port of MRI’s parse.y.

comment 5y ago · link · parent

Code size in an embedded context is one use case for the modularity here. Another is limiting access of Ruby code to the host system.

For example, one may wish to use Artichoke in a game engine for scene scripting. It’s probably undesirable for Ruby code run in this context to modify the host environment, so `ENV` can be disabled at compile time. But maybe you have existing code that uses `ENV`. Toggle a compile time flag and you can get a compatible `ENV` implementation that is backed by a hash map.

25.

Artichoke Ruby’s Architecture.md(github.com ↗)

2 points · by p4lindromica · 5y ago · discuss

comment 5y ago · link · parent

Here's a permalink: https://github.com/artichoke/artichoke/blob/939fffc015255736...

comment 5y ago · link · parent

You might be interested in this early work to build a Sinatra echo server [0] with Artichoke (called ferrocarril back then). `hubris` used a custom Rack-compatible web server called `nemesis` [1] based on Rocket [2], a Rust Flask-like web framework.

[0]: https://github.com/artichoke/artichoke/tree/97ba69d31154be45...

[1]: https://github.com/artichoke/artichoke/tree/97ba69d31154be45...

[2]: https://rocket.rs/

comment 5y ago · link · parent

Fixed [0]. Thanks for the report. The navbar could still use a bit of love though :(.

[0]: https://github.com/artichoke/www.artichokeruby.org/pull/171

comment 5y ago · link · parent

You might want to check out https://github.com/artichoke/artichoke/blob/2d67d8537c1340f1... which lays out the goals for the project.

comment 5y ago · link · parent

Hi folks, Artichoke author here. I mostly post project updates on Twitter. Here's a selection of some cool things I've been working on recently:

- https://twitter.com/artichokeruby/status/1339581223119679493

- https://twitter.com/artichokeruby/status/1339578582222266368

- https://twitter.com/artichokeruby/status/1332772105126105089

- https://twitter.com/artichokeruby/status/1332880679655247872

12345