Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
josephg
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
181.
▲
by
josephg
2mo ago
Yeah! I added it for my ios scheduling app. I tried to learn SwiftUI a few years ago. XCode was horribly slow, and it would hang and crash all the time, even when working on small example projects. I'm excited by the thought that I can
182.
▲
by
josephg
2mo ago
I find I get great results from explicitly asking an LLM to write tests which profile memory and cpu usage. Then ask it to optimise to improve those metrics.
183.
▲
by
josephg
2mo ago
Thanks! Here's a little ios schedule app I made with it: https://github.com/josephg/dweb-sched It's got full native calendar integration - so if you want you can favorite a session and it'll automaticall
184.
▲
by
josephg
2mo ago
I ported the leptos rust web framework to run on native platforms. Currently it works on ios, macos and linux (GTK). Eventually want to also add support for windows and TUI as well. It uses taffy for layout - which gives you the same flexbo
185.
▲
by
josephg
2mo ago
I’m working on a native UI framework in rust. I want to be able to build cross platform, fully native applications with native code. And I want platform native components. I started with Leptos - which gives you a nice declarative UI syntax
186.
▲
by
josephg
2mo ago
Some of us still know how to write software like that. And enjoy doing it. I made a little conference schedule app a few weeks ago for a conference I was at. I used my own rust UI toolkit, which calls in to cocoa to make use of native UI co
187.
▲
by
josephg
2mo ago
I just don’t want to log in to my banking portal in 3 months to find the whole thing has been rewritten on top of canvas for no reason.
188.
▲
by
josephg
2mo ago
I did read the article. It is not a balanced piece. The title is “You might want to build your webapp in canvas instead”. Almost the entire article - basically everything except for that paragraph - is talking about canvas rendering. About
189.
▲
by
josephg
2mo ago
WASM can call javascript, and javascript can call canvas. You can use JS bridges to let WASM do more or less anything.
190.
▲
by
josephg
2mo ago
> disengaging from the DOM for sighted users can actually make accessibility simpler. Do you have any examples? In my experience, a lot of software written like this just doesn't work with screen readers at all.
191.
▲
by
josephg
2mo ago
Please don't do this. Native controls have dozens to hundreds of subtle UI interactions. Consider a text input element. On macos there are text shortcuts - cmd+A to select all. cmd+left / right to go to the next or previous word.
192.
▲
by
josephg
2mo ago
Yep. Accessibility isn't just a nice to have. Its a legal requirement for a lot of websites under the ADA (Americans with Disabilities Act).
193.
▲
by
josephg
2mo ago
That's a long rant and I don't like homework. Can you summarise his position, or at least the parts you agree with?
194.
▲
by
josephg
2mo ago
Yes, like that but something that actually gets used. And it'd be good to have a way to know how much power a cable supports too. Thanks for the link. I didn't know those labels also tell you if a cable supports displayport alt mo
195.
▲
by
josephg
2mo ago
Yeah I think we should have done both. Made this illegal, and stopped it via encrypted channels. Computers are fast now. We should just encrypt everything that gets sent over the open internet. The IETF put out a statement about this a few
196.
▲
by
josephg
2mo ago
Yea from a technical perspective I think it’s ridiculous that organisations like lets encrypt are even needed. DNS could easily service both roles and make letsencrypt redundant. Here's how it could work: First, you generate a tls sign
197.
▲
by
josephg
2mo ago
I'm glad unencrypted http/1.1 was deprecated. I want a privacy online. TLS also gives you much better data integrity guarantees. Some ISPs - particularly in the US - actively inject javascript code into websites served over plain
198.
▲
by
josephg
2mo ago
That can be solved the same way it was solved for SD / CFe cards. Just have a single mark which guarantees a baseline set of requirements. - "USB Speed 2" means [20gbps, thunderbolt 3, displayport, 20 watts]. - "USB Spee
199.
▲
by
josephg
2mo ago
> Just set a minimum baseline/standardization for the type of cable/capabilities you need for your highest end device. Only keep those cables, give away the rest I don't have a cable tester, and I don't want to buy on
200.
▲
by
josephg
2mo ago
> Or do we now need to resort to labeling cables and checking the label? YES oh please yes! Give me labels! I'm sick of playing guessing games with my USB cables. Which one should I use for my external drive? This cable is thick! Wi
201.
▲
by
josephg
2mo ago
There are already numerous iOS apps and numerous websites. And yet, people keep making more! I think I broadly agree with your overall point. I’ve just spent a lot of my career working on niche problems like this. And there are a lot of peo
202.
▲
by
josephg
2mo ago
It’d be cool to see pictures of the device!
203.
▲
by
josephg
2mo ago
If you go with simple, straightforward data structures you often get adequate performance at the macro level. In my experience, getting really good performance often involves being clever with data structures. It depends how far you want to
204.
▲
by
josephg
2mo ago
I don't think beauty in code is entirely subjective. Beautiful code is like beautiful mathematics. Simple, clean, and correct by construction. All at once. There's plenty of ways to implement a graphics engine, web browser, databa
205.
▲
by
josephg
2mo ago
Fixed! And I'm glad to hear it. If his blog is anything to go by, it looks like he was messing around in clojure in about 2019, 12 years after he wrote Clean Code. Maybe we'll see an updated version some day, with better examples.
206.
▲
by
josephg
2mo ago
I think if you push your craft, most things become this sort of tradeoff between approaches. More performance at the cost of more code complexity and a harder to use API. Deep testing improves correctness but locks you in to your existing d
207.
▲
by
josephg
2mo ago
This is only true up to some point of skill & complexity. Hotspot optimisation only takes you so far. Eventually you can end up with a program that is fast everywhere but which is still somehow slow at the macro level. Like LLVM. Truly
208.
▲
by
josephg
2mo ago
I think about this like hinges in a door. For a door to move, it needs some hinges. Otherwise the door can’t move. But dont get carried away thinking more hinges is always better. We don’t cut door panels in half and reattach the pieces tog
209.
▲
by
josephg
2mo ago
I just think - in the book at least - he has really bad taste. The examples are full of “spooky action at a distance”. He writes the exact sort of class functions that make a lot of OO terrible to work with, where a function that should be
210.
▲
by
josephg
2mo ago
I think it’s very easy to over apply that rule, and break a large function into a lot of small functions that you need to scroll up and down to reason about. Here’s a 150 line long function I wrote which I think is quite beautiful: https:&
More ›