Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
georgelyon
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
61.
▲
by
georgelyon
4y ago
While the overall point is valid, this isn’t strictly true. A Swift string is frequently backed by a contiguous UTC8 buffer terminated with a \0, so passing to C is just a matter of passing the pointer and requires no copies.
62.
▲
by
georgelyon
4y ago
Yes, this is the correct behavior. If Alice and Bob disagree about whether or not that row should be in the table you aren't going to fix it with math. More often than not, the expected outcome will be obvious (i.e. spelling correction
63.
▲
by
georgelyon
4y ago
The best UX resolution to this kind of issue I have seen is to display “This table cell was added by Bob concurrently to Alice removing its row. How would you like to proceed: recover the row or ignore the change?”
64.
▲
by
georgelyon
4y ago
This comment really needs a “yo dawg” meme.
65.
▲
by
georgelyon
4y ago
For the record, you do have fairly fine grained control over what updates when with SwiftUI. The issue is that this isn’t obvious to new developers, nor is it easy to understand what tools to use to fix issues once you understand what is ha
66.
▲
by
georgelyon
4y ago
This could be taken to support my point. There is a MASSIVE amount of literature on the internet about how to do this, and it's reasonably straightforward to see what is happening with the DOM when you use these frameworks. Likewise, a
67.
▲
by
georgelyon
4y ago
I’m happy this worked for you. This in itself is an interesting anecdote about documentation quality. I knew this API existed but forgot the exact API and searches for “caching SwiftUI rasterized view” and similar queries did not return thi
68.
▲
by
georgelyon
4y ago
Other commenters have pointed to SwiftUI being declarative as a big part of this problem, but I take a more nuanced view: the problem is actually that SwiftUI is a complexity-hiding abstraction. Specifically it hides the complexity of when
69.
▲
by
georgelyon
4y ago
I can’t speak for the author, but I’ve had a similar feeling. Where (safe) Rust’s core principle is memory safety at all costs, I feel that Swift takes a more nuanced approach, prioritizing making good programming patterns easier while stil
70.
▲
by
georgelyon
4y ago
> and (somewhat) work with multiple devices I was hoping for AirPods which synthesize audio from all of your devices using spacial positioning... maybe next generation
71.
▲
NASA selects SiFive and makes RISC-V the go-to ecosystem for future missions
(sifive.com)
792 points
by
georgelyon
4y ago
|
187 comments
72.
▲
by
georgelyon
4y ago
If M2 Pro is similar to M1 Pro (two M1s duct-taped together with very fancy duct tape), this is interesting because usually chips need to be significantly reworked for a newer process and this implies an M2 core complex will be printable
73.
▲
by
georgelyon
4y ago
MLIR ( https://mlir.llvm.org/ ) is a quickly growing compiler toolkit which attempts to synthesize the learnings of LLVM and currently powers compilers for programming languages, machine learning and circuit design ( https:&#
74.
▲
by
georgelyon
4y ago
The one thing that has come of this is that products that do this have 0.5% less friction (they can auto-update quicker), achieved this faster and with less engineering effort (no need for a clever workaround, just use the biggest hammer),
75.
▲
by
georgelyon
4y ago
I tend to agree with much of the criticism of SwiftUI, namely that it and the underlying mechanism (result builders) is over-indexed on the UI-for-iPhone-apps use case. But I think Swift's greatest strength is what I mentioned in the p
76.
▲
by
georgelyon
4y ago
The move function is not move semantics (though the latter is being discussed by the community). The main purpose of the move function is to explicitly document where performance sensitive code depends on a specific type of compiler optimiz
77.
▲
by
georgelyon
4y ago
They have been improving this steadily (I would argue it is rarely an issue nowadays, and there have always been simple workarounds), but there’s no reason a solution to the problem mentioned in the article should need to use ARC, and shoul
78.
▲
by
georgelyon
4y ago
Does anyone know why Apple doesn’t make this standard? I’ve been using this on and off for many years and only stop because I get frustrated after an OS update reverts it. Are there licensing/security/compatibility reasons this ma
79.
▲
by
georgelyon
4y ago
This reply hits the nail on the head, but I’ll just add that this isn’t only a benefit to small scale services. I’ve been at well funded startups and medium sized companies where we spent quite a bit of time and effort dealing with spam and
80.
▲
by
georgelyon
4y ago
This is an excellent write-up, and I genuinely hope that the brain-cycles the web3 world is spending on this eventually benefit the rest of society. I’ve been musing about a similar but more simple problem: how can we prove we are an indiv
81.
▲
by
georgelyon
4y ago
My personal favorite concept is the Toyota Setsuna: https://www.topgear.com/car-news/concept/concepts-time-forgo...
82.
▲
by
georgelyon
4y ago
I'm constantly surprised more folks don't use FoundationDB, I'm pretty sure the Jepsen folks said something to the tune of the way FoundationDB is tested is far beyond what Jepsen does (Good talk on FDB testing: https:/
83.
▲
by
georgelyon
5y ago
If anyone needs to generate cryptographically safe passwords that are easy to remember, I recommend this cool app that runs on dice: https://en.wikipedia.org/wiki/Diceware
84.
▲
by
georgelyon
5y ago
Looks like Samsung decided to copy work from Ive’s new company: https://www.wallpaper.com/design/terra-carta-seal-design-lov...
85.
▲
by
georgelyon
5y ago
There's some dust on it, but I made a proof-of-concept OPAQUE implementation some years back (disclaimer: this was done for educational, not security, purposes). The README has some good discussion of the various components of OPAQUE,
86.
▲
by
georgelyon
5y ago
FDB is an awesome and unique piece of software (I attribute quite a bit of Snowflake's success to FDB). I've also had the pleasure of meeting some folks from the original team and they are true engineers. Does anyone know if/
87.
▲
by
georgelyon
5y ago
This sounds cool, I would be very interested if you had any public code. It’s _very_ early days but I’m working on a similar project in Swift: https://github.com/circt/Edith
88.
▲
by
georgelyon
5y ago
https://github.com/apple/swift-evolution/blob/main/proposals... , if accepted, should make most of this type of ceremony unnecessary.
89.
▲
by
georgelyon
6y ago
I’m really hoping this kind of technology can be used to make waveguide ceilings illuminated by lasers: https://qz.com/146761/forget-led-bulbs-the-future-of-interio...
90.
▲
by
georgelyon
6y ago
I very much agree with this sentiment, but it is difficult to endorse this line of reasoning without offering a better alternative. As folks have pointed out in other comments, there are other values to tests in the broad sense that the aut
More ›