Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tayistay
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
91.
▲
by
tayistay
4y ago
Using SDFs. It looks fairly good! Maybe not as good as the proper coverage methods, but when rendering UIs on a high resolution screen, it seems good enough.
92.
▲
by
tayistay
4y ago
I think the issue with slug is that it requires a fair amount of pre-computation. So it's great for its use case: rendering glyphs, especially on surfaces in games. I do something a bit like slug, but I'm sure slower, since slug i
93.
▲
by
tayistay
4y ago
Seems like you're thinking of precomputed SDFs that are stored in a texture. They don't have to be :) (for example, my little library: https://github.com/audulus/vger )
94.
▲
by
tayistay
4y ago
I did vector graphics using SDFs in this library ( https://github.com/audulus/vger ). Works pretty well for my uses which are rendering dynamic UIs, not rendering SVGs. But I can still do some pretty gnarly path fills!
95.
▲
by
tayistay
4y ago
Why is that? Glyphs can be cached in a texture. That's what nanovg does and it works quite well. That's what my little library does too ( https://github.com/audulus/vger )
96.
▲
by
tayistay
4y ago
I've done a library for vector graphics on the GPU which works pretty well for my uses: https://github.com/audulus/vger and a rust version: https://github.com/audulus/vger-rs (which powers my
97.
▲
by
tayistay
4y ago
Do you have statistics? I’m an iOS/macOS dev. Everyone I know is using Swift. I think it would be a bad idea to start a new project in ObjC.
98.
▲
by
tayistay
4y ago
I have a modular synthesizer app for iOS [1]. Will this legislation force Apple to let me JIT? (That’s a key restriction that prevents competing browsers.) Would be great for performance. [1] http://audulus.com
99.
▲
by
tayistay
4y ago
What, specifically do you think the flaws are? I think if you're going to make such criticism, it helps to give actionable specifics (i.e. constructive criticism). How is the approach discouraging to other devs?
100.
▲
by
tayistay
4y ago
A more scrappy approach is what I'm trying to do with my library, rui [1]. Just get something out there. Also, it's really in service of my (already released) app, as opposed to trying to be a successful open source project. If ot
101.
▲
by
tayistay
4y ago
If anyone's wondering how they're deadly, it's that pedestrians tend to fare much worse when being hit by them vs a sedan.
102.
▲
by
tayistay
4y ago
I just downloaded V. The following V code segfaults, much like C would: struct Node { val int left &Node right &Node } fn main() { n := Node { 123, 0, 0 } m := *n.left
103.
▲
by
tayistay
4y ago
- sane generics - better type system - better type inference (bidirectional) - better/standardized package manager - better error messages - memory safety - thread safety There are downsides but it’s an improvement on balance. I use bo
104.
▲
by
tayistay
4y ago
Safety can be formally defined in various ways. See https://cs.stackexchange.com/questions/93798/what-is-a-safe-... for a decent overview. The article is likely referring to memory safety.
105.
▲
by
tayistay
4y ago
Here’s hoping that app review enforces the Inclusion section. Once some religious app gets rejected for traditional depictions of families, that will be more fodder to get rid of Apple’s App Store monopoly.
106.
▲
by
tayistay
4y ago
"The banal word ‘content’ is used to describe every type of creative work, implying that artistry is generic and interchangeable." Amen to that. I can't stand that fucking word! Every instance of that corporate blandness coul
107.
▲
by
tayistay
4y ago
Perhaps not that that much. Swift’s arrays are refcounted. And you can’t store an array on the stack. Classes are refcounted too, but you could avoid them. It also has a bit of a runtime, and you don’t know when it will take locks or alloca
108.
▲
by
tayistay
4y ago
Fascism is authoritarian ultra-nationalism. Putin’s Russia fits easily. Various European leaders and parties fit to differing extents. Trump fits. Just like dictators call themselves presidents, fascists call themselves other things.
109.
▲
by
tayistay
4y ago
You do owe them to some extent, because if you deprive them enough, they will revolt, which will be much more disruptive to your life than higher taxes.
110.
▲
by
tayistay
4y ago
I tried using interior mutability in rui [1] but the clunkiness appeared in having to call clone on the Rc/Arc too often. I'd have a few clones before moving into a closure, like this: let text = self.text.clone();
111.
▲
by
tayistay
4y ago
I haven't used Delphi, but what you're describing sounds like Interface Builder, which I've used a lot. The biggest problem I had with IB was that it got quite tedious to specify all the constraints to make an app responsive
112.
▲
by
tayistay
4y ago
When the pandemic started and everyone was on lockdown, there were very few cars on the roads around SF. I remember being able to see into the distance so clearly, it was surprising. I read that 2/3 of the SF Bay Area could work remote
113.
▲
by
tayistay
4y ago
Ok I'm not Raph but, FWIW, my 3d sculpting app is written using SwiftUI ( https://sculptura.app ), which is not a view around a database (in fact it was previously UIKit... SwiftUI is so much better). I recently implemented a
114.
▲
by
tayistay
4y ago
That could be because early on, SwiftUI was pretty rough. Compile errors were inscrutable and there were various gotchas. It's gotten a whole lot better, and at this point I'd say is mostly a pleasure to use.
115.
▲
by
tayistay
4y ago
I've built some of the same sort of primitives, albeit with different syntax. Rui's `state` function will give you a state handle allowing you to mutate state similarly to how @State works in SwiftUI. rui also has a notion of bind
116.
▲
by
tayistay
4y ago
I'm the author of rui, in case anyone has questions :)
117.
▲
by
tayistay
4y ago
This point has been made so many times that it gets tiresome. Perhaps that's ok, but it doesn't really tell us anything new.
118.
▲
by
tayistay
4y ago
Deleted... thanks for the clarification.
119.
▲
by
tayistay
4y ago
> I am even more frustrated with the moral crusaders from languages like Rust, one of whom went as far as to suggest that I should personally be criminally prosecuted if some downstream Hare software has a use-after-free bug. It seems to
120.
▲
by
tayistay
4y ago
Why have both switch and match statements?
More ›