Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hctaw
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
121.
▲
by
hctaw
6y ago
You are asking manufacturers to build special features - documentation! It costs time and money to put that together and keep it up to date, and documented hardware or software is a commitment to its design that the designer may not want to
122.
▲
by
hctaw
6y ago
This is just absurd to me - there are obvious limitations on the software that can run on a device up and down the stack. An "arbitrary set of software" is not possible - do you include different instruction sets? What about drive
123.
▲
by
hctaw
6y ago
Plenty of DSA work has more optimal representation and evaluation as matrix arithmetic. Particularly graph traversals and transforms which are heavily used in optimizing compilers.
124.
▲
by
hctaw
6y ago
It's perfectly reasonable to not distribute on Apple platforms. Many companies choose to do this, and have for decades! The viable alternative is a web page. But yes, if you want the security and performance supported on a native Apple
125.
▲
by
hctaw
6y ago
Someone can come out with it and then someone will wrap a dashboard around it and advertise it as "look - you don't even have to write code!" The biggest enemy of programming languages as general purpose tools for business is
126.
▲
by
hctaw
6y ago
If you need api flexibility you use generics, and that is the way to be generic over types that refer to strs. I'm pretty sure this is in the book, and it's common enough that even someone who doesn't use rust full time (myse
127.
▲
by
hctaw
6y ago
fn func (slice: &[impl AsRef<str>]) { // ... }
128.
▲
by
hctaw
6y ago
Some would argue you gain more than you lose. Also to be pedantic, C doesn't spec anything about linkage. Shared objects and how linkers use them to compose programs is a system detail more than a language one.
129.
▲
by
hctaw
6y ago
Perhaps pick a better name that isn't confusing. In industry what your definition refers to is called "generic programming" if I understand correctly.
130.
▲
by
hctaw
6y ago
That's no definition of DO I've ever heard. A list is a classic example of a non-data oriented structure! DO as I understand it is about recognizing how data is actually laid out and interacted with by a processor, as opposed to m
131.
▲
by
hctaw
6y ago
Where are you in SoCal? $3-5k/month for a 2bd is luxury pricing right now.
132.
▲
by
hctaw
6y ago
Accelerate doesn't just mean 'run faster' but 'write models faster.' It's about reducing time to market and overhead for design verification, which is a massive time and money sink in the industry today.
133.
▲
by
hctaw
6y ago
Look at Chisel. I agree that C/C++ is the wrong abstraction but that's because using a HDL is more like meta programming in a declarative markup language that needs to be embedded in a higher level language for automation and veri
134.
▲
by
hctaw
6y ago
Lookup tables are the big thing that break CPU and GPU programs since at relatively small sizes you'll hit the memory wall. A lot of algorithms like media codecs (audio, video) and pretrained neural nets are trivial to design with HLS
135.
▲
by
hctaw
6y ago
Those families shouldn't have children then. I know that borders on callousness, and obviously I don't think we shouldn't take care of single parent households that don't have an option or that the child tax credit shoul
136.
▲
by
hctaw
6y ago
It's only a question if the function needs to call something else that could be either color. The vast majority of code does not. It would take a couple months of bike shedding syntax and discussing internals but I feel like there'
137.
▲
by
hctaw
6y ago
It's not really a problem worth caring about. Just if you wanted to gripe about the complexity of async Rust it's the most obvious to me. "But pretty much no one even lets you do that" is a great counter argument. But, i
138.
▲
by
hctaw
6y ago
Because at a certain point you shrug and blame the user for downloading sketchy code and executing it.
139.
▲
by
hctaw
6y ago
Nit, you can already abstract over lifetimes. But I really agree with the HKT comment, in principle. In practice it's not so bad. Abstracting over async, mutability, and borrows would be more important to smooth over a few of these iss
140.
▲
by
hctaw
6y ago
I don't think any of this is actually a reason why async rust doesn't work. The function color problem is a bit overblown, it hasn't broken nodejs yet either. Most code is sync, sync can call async and vice versa, and the eco
141.
▲
by
hctaw
6y ago
That depends on the filter order. Evaluating a FIR is O(N M^2) where N is the number of data points and M is the size of the FIR. Doing the same with an FFT is O(N Mlog(M)). Neither is particularly "performant." FFTs and FIRs are
142.
▲
by
hctaw
6y ago
You've just described in very basic terms how linear downsampling works (filter -> decimate). It's orders of magnitude more expensive than what is described in the paper, and a crappy sinc interpolator (equivalent to zeroing FF
143.
▲
by
hctaw
6y ago
That's a good example actually. Instagram/FB don't let third parties have access to your posts more than you allow publicly, and don't let you use automated tools to scrape them. If you wanted to glean anything from thos
144.
▲
by
hctaw
6y ago
The tricky side of this is languages that encourage terseness through "clever" syntax. But that's arguing syntax instead of principle, I think generally "less code" means "fewer expressions to evaluate"
145.
▲
by
hctaw
6y ago
It's about consent. A user gives explicit consent for a company like Instagram to have access to data. They don't give it to random third parties to scrape. And no, they can't sell it to whoever they want (or at least that&#x
146.
▲
by
hctaw
6y ago
Allowing third parties to collect user data without their knowledge is not "user empowering." Users agreed to Instagram having access to that data, not OP's company to collect it through instagram using a tool that collects w
147.
▲
by
hctaw
6y ago
Why do you expect that? I've never seen a smartphone that behaved how you expect. Except for stuff like the pinephone, which couldn't be used as a phone for awhile.
148.
▲
by
hctaw
6y ago
How long do new OLED displays hold up? (Honest question, I don't know). And how is the viewing angle? Do you need a glass panel to protect it, does that have issues with glare?
149.
▲
by
hctaw
6y ago
This comment doesn't make much sense. LSP is just a protocol, implementing package detection is the responsibility of the language server. The second thing you're asking about sounds more like a unified LSP client which is totally
150.
▲
by
hctaw
6y ago
They're a frequent target of rhetoric and legislation by the republicans. Granted, nothing comes of it because the fundamental issue they have is that reality has a liberal bias.
More ›