HNHacker News
TopNewBestAskShowJobs

juancampa

2,053 karma · joined October 30, 2012

https://membrane.io https://twitter.com/juancampa
submissionscomments
juancampa··on Digital Ocean is having an outage
Update: back online AFAICT
juancampa··on Digital Ocean is having an outage
Status page shows all green, of course: https://status.digitalocean.com/

Update: status page is now reflecting the incident

juancampa··on Digital Ocean is having an outage
For the past 20-30 mins, I've been locked out of my DO kubernetes cluster (kubectl can't auth) and doctl can't even list the available k8s clusters.

  $ doctl kubernetes cluster list
  Error: GET 
  https://api.digitalocean.com/v2/kubernetes/clusters? page=1&per_page=200: 503
The worst part is that I can't even create a support ticket because their support website (linked) seems to be down as well
juancampa··on RIP Nitter
At the moment you'd need to sign in to see it
juancampa··on RIP Nitter
Seems like it's temporary:

https://twitter.com/elonmusk/status/1674865731136020505

juancampa··on Ask HN: What are some educational resources for more senior engineers?
I'm a big fan of https://codecrafters.io. You can build your own X, where X is redis, git, grep, etc. in multiple languages.

Disclaimer: I'm an advisor

juancampa··on Ask HN: Dev productivity tools you would pay for
First time I'm hearing about Kagi. I'm curious because google has been so bad latetly.

This feature piqued my interest: Ability to block/boost domains. I always wanted to boost MDN over w3schools, for example.

Will try it!

juancampa··on DeviceScript – TypeScript for Tiny IoT Devices
> The main difference in semantics between DeviceScript and JavaScript is that DeviceScript programs run in multiple fibers (threads). In practice, this behaves like JS with async/await but without an ability to manipulate promises directly (that is fibers can only interleave at await points and at most one fiber runs at any given time).
juancampa··on Anthropic's 100k context is now available in the web UI
The better version of this is using this massive LLM to _create a program_ that can then extract the same data of similar PDFs. That way the high cost is incurred only once.
juancampa··on Show HN: Swap.js – a JavaScript micro-framework (HTML fragments over the wire)
Isn't that what <form> is for?
juancampa··on Controversial bill to regulate online streaming becomes law in Canada
Not if you’re listening to a Rock station, or Hip-Hop, or whatever it is you like to listen to.
juancampa··on Controversial bill to regulate online streaming becomes law in Canada
A similar law was passed in Venezuela in ~2005. It forced radio stations to play traditional Venezuelan music as a percent of all their airtime.

From the only article I could find in english [0]:

> The law can make listening to the radio an adventure in dizzying contrasts. One minute a disc jockey is playing American rap, and the next minute it’s flutes and fiddles from the Andean highlands.

It pushed some local artist to get creative and come out with some electronic traditional music, which frakly, sucked.

Oh, and radio stations worked around the required quota by playing the mandated music very late at night.

[0] https://archive.is/TTQjG#selection-1173.443-1173.639

juancampa··on Fox News, Dominion Voting Systems reach $787,500,000 settlement
Doesn't the other side need to accept the settlement?
juancampa··on Nibbles of Rust – Restructuring Patterns
I don't understand why go through the complication of giving this a new name (i.e. "Restructuring Pattern") where the second explanation seems more intuitive and correct.

"Restructuring Pattern" sounds like you can put back together a struct from its constituents, but that's done by normal struct instantiation.

juancampa··on Ask HN: Co-Founder? Seeking Co-Founder?
Yes! It’s in very much active development and getting very close to launch. The fact that the news section is outdated is exactly why I’m looking for a cofounder
juancampa··on Ask HN: Co-Founder? Seeking Co-Founder?
SEEKING CO-FOUNDER | Dev Tools | DevRel Cofounder | MVP

Hey I'm the founder of https://www.membrane.io. The platform to build team/personal automation tools.

I'm open to partnering with an engineer who's good at building a community, creating examples projects, talking to customers and generally taking over all the engineering that's not building the core tech.

Preferably someone who likes Rust (entire stack is Rust).

Feel free to DM me on twitter (same username) or juan at membrane dot io

juancampa··on The Only Three Classes That Mattered from My College Degree
Linear Algebra is very important if you work in video games or graphics. Statistics is important if you work in AI
juancampa··on Sanders calls for minimum salary of $60000 for public school teachers
What an interesting concept. Thanks for sharing this!
juancampa··on Sanders calls for minimum salary of $60000 for public school teachers
How about we align incentives instead?

Here's an idea: when a student graduates, they allocate 1% of their yearly salary to their favorite 5-10 teachers for the next 5 years. I call it the "thankfulness tax".

Incentives aligned: the most impactful teachers make the most money.

juancampa··on zld: A faster version of Apple's linker
Indeed, I didn't notice that. Author says:

> zld is in maintenance mode! With lld becoming a superior alternative, and with a tricky change in Xcode 14 that I didn’t want to add support for, I decided that it’s time to throw in the towel

juancampa··on Egui commit: Implement accessibility APIs via AccessKit
That's because egui uses an "immediate mode" approach: it's rendering everything from scratch every time something _might_ have changed (e.g. a mouse move could've trigged a hover effect).

Whereas the DOM uses "retained mode": it continually modifies a representation of the layout (DOM elements) and re-renders when something _actually_ changes.

You can click on the "Backend" button at the top, and "Mean CPU usage" will tell you how long it takes for each frame to be produced. It'll vary depending on how complex the layout is: e.g. how many windows are open. But, contrary to retained mode, it doesn't matter at all if everything is animating simultaneously.

More about immediate vs. retained: https://github.com/emilk/egui#why-immediate-mode

juancampa··on Egui commit: Implement accessibility APIs via AccessKit
In my experience it's surprisingly fast. Egui doesn't need to redraw when it's idling, only when you're interacting with it (mouse move) or it's animating something so IMO it's not a big deal.

I have to admit that I've only tested it on high-end laptops/phones though. Not sure about mid/low-end ones yet.

juancampa··on Egui commit: Implement accessibility APIs via AccessKit
Just in case it isn’t obvious, egui is WebGL based (like Figma)
juancampa··on Egui commit: Implement accessibility APIs via AccessKit
On the other hand you have Figma and Google Docs as examples of canvas-based applications that work well enough. I admit there are additional challenges to using egui on a Web context, but when you're building a highly interactive application (!), the benefits can outweigh the drawbacks.

When building DOM-based applications that require frequent updates I've always ended up working around browser limitations in awkward ways, e.g. minimizing re-rendering by using redux's relesect.

I decided to use egui because I get to use Rust for the entire stack, but also because it lets me ship a native app without an entire (slow to init) browser.

juancampa··on Egui commit: Implement accessibility APIs via AccessKit
Good to know. Thanks for clarifying!
juancampa··on Egui commit: Implement accessibility APIs via AccessKit
Egui keeps getting better and better! For those unfamiliar you can run the web demo on your phone or desktop: https://egui.rs

I’ve personally built relatively complex UIs with egui. Both a Chrome extension and a VSCode extension for https://membrane.io and couldn’t be happier with it.

juancampa··on How PlanetScale Boost serves SQL queries faster
It's awesome to see Jon Gjengset's work being used in production. He has one of the best Rust youtube channels IMO and goes deep into Rust nuances. Highly recommended for anyone trying to learn Rust or deepen their understanding.
juancampa··on Twitter employees: Important info from a CA employment attorney
I can confirm this is exactly what is happening: CA employees that got laid off will technically remain an employee until January, even though they just lost access to email/slack/etc.

Source: I read the layoff email one employee got.

juancampa··on Dozens of malicious PyPI packages discovered targeting developers
This is exactly what I've done for Membrane[0]. It's capabilities based, even to get the time (and thus introduce non-determinism) you need a capability. Dependencies run as separate processes and everything is orthogonally persistent. It's a typescript/javascript system for personal automation built entirely within VSCode. Stay tuned, I'll be posting a video this week.

[0] https://membrane.io

juancampa··on Toyota suffered a data breach by accidentally exposing a secret key on GitHub
To prevent accidental leaks perhaps Github et al could implement a mechanism analogous to the Eurion constellation [0]. E.g. A commit containing a file with a specific text pattern should always be rejected. Most fileypes accept arbitrary comments (ahem Json) so it should work for most files.

0: https://en.m.wikipedia.org/wiki/EURion_constellation

← PreviousPage 2 of 12Next →