Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
waltpad
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
waltpad
6y ago
Ooops, I didn't mean Xeon PHI, I meant an older design with many small x86 cores. Xeon PHI on the other hand was the first host of AVX-512 instruction set. Sorry.
2.
▲
by
waltpad
6y ago
The programming model is not very flexible at the lowest level: one has to create all the software infrastructure to communicate with the GPU (which boils down to sending commands and receiving response). There are languages (like futhark,
3.
▲
by
waltpad
6y ago
The point I was trying to make is that if you have to rely on runtime type information, you might as well use sum types in a more strongly typed language, where the scope of the code gets limited to the type itself. With "duck typing&q
4.
▲
by
waltpad
6y ago
I think another interesting question is, how would you handle the return value of such function in your code? You would have to either: - test for the type of that value in order to handle it properly, - rely of the implicit cast rules of J
5.
▲
by
waltpad
6y ago
Disclaimer: I am not a HW designer, I could very well be wrong. It is true that there are tasks where threading matters, but still require a CPU rather than a GPU. I wonder however if these tasks do need full SSE/AVX etc. Couldn'
6.
▲
by
waltpad
6y ago
> t's really hard to get away from getting data in JSON these days. It's ubiquitous. Yes, I agree with that. It's a neat format if you have small pieces of information to move around, and it's very easy to read for hu
7.
▲
by
waltpad
6y ago
> 100MB of doubles encoded as JSON. That sounds like a very bad use case for JSON. I would be surprised if your program wasn't more efficient with an ad-hoc binary format for that piece of data.
8.
▲
by
waltpad
6y ago
> fails at logic more than at poetry This is purely subjective. Your expectations in Poetry might be different from those of other people or even specialists. I am not particularly good in that domain, but I don't really like the re
9.
▲
by
waltpad
6y ago
Sadly, AFAIK, BLAS hasn't been updated to use generics. It would be so nice to have support for integer vector/matrix operations in there (not that it would require generics to have that, but it could be easier to implement intege
10.
▲
by
waltpad
6y ago
If you have a look at the different fortran implementations of BLAS gemm (matrix multiplication), you'll see that the transposed matrix cases are treated specifically. In fact, IIRC, the gemm function has flags to indicate for each mat
11.
▲
by
waltpad
6y ago
Oh, I understand. I suppose it makes sense, if for instance one needs to store a bunch of parameters somewhere, it might as well be a JSON file.
12.
▲
by
waltpad
6y ago
The difference is that your DB is the FS, and each JSON file is an individual record. You're not storing each table in a single JSON document.
13.
▲
by
waltpad
6y ago
Maybe because it was tempting: JSON is fairly easy to handle, very portable, and when you look at a JSON document, it's straightforward to think about querying it, and thus DB, although JSON is structured, and DBs are relational.
14.
▲
by
waltpad
6y ago
I think that, oddly enough, the point of that project is to use the JSON format as the DB storage format, not as an export option. Just from the look of it (I don't know either projects), LokiJS will very likely be always faster.
15.
▲
by
waltpad
6y ago
That's a very strange idea: JSON is basically structured data, like XML, it's nice for documents with deeply nested structures. The main issue is that contrarily to a DB, any modification will shift everything after it, so any ind
16.
▲
by
waltpad
6y ago
I wonder how the clipboard API could be fixed. I suppose that the current scheme is that apps are monitoring paste events, and when it happens have a look at the clipboard for copied data. Perhaps the clipboard shouldn't be visible at
17.
▲
by
waltpad
6y ago
Well, if copies may be borrowed, as it is the case in Rust, I suppose that a type-linear function, as I called it, doesn't have to be computationally linear. The `mult` example we discussed could not be applied twice to the same value,
18.
▲
by
waltpad
6y ago
I don't think these technologies are related: Java Generics is based on subtyping, however Haskell doesn't support subtyping (afaik).
19.
▲
by
waltpad
6y ago
Seriously though, the Opera web browser has this functionality built in, but it's a "toggle" back to top, by just clicking on the tab title. It's very useful on web sites like HN, when you don't want to lose where y
20.
▲
by
waltpad
6y ago
Sorry, I got confused on the meaning linear. As explained in the other answer, it's possible to implement the power function which is "type-linear" on each argument, but that function will not otherwise be linear (ie, the mat
21.
▲
by
waltpad
6y ago
What's the provided GPU solution for ARM based machines? Do Apple SoCs contain a GPU?
22.
▲
by
waltpad
6y ago
no.
23.
▲
by
waltpad
6y ago
> Probably not much. I hope so: this article assumes that for normal citizens, monitoring seems to be a problem, so it's only natural to expect the police forces to get upset for the same reasons. That being said, it's possibl
24.
▲
by
waltpad
6y ago
> That only addresses the one gripe I brought up as an example though, and not the general pattern. For instance another issue I've run into is this automagical hacks that parse fstab crypttab etc and make units at boot time, while
25.
▲
by
waltpad
6y ago
> How much good grace would be earned if the military surveillance was used to prosecute police brutality and misuse of authority in addition to arson and looting? Nothing in the article says that they don't monitor police activity.
26.
▲
by
waltpad
6y ago
> I don't get why this comment is being downvoted. It probably tells that you also hit the paywall. Those who downvoted probably didn't, perhaps because their setup doesn't trigger it by default, or because they searched b
27.
▲
by
waltpad
6y ago
Or applying it if that value is a function. I believe the broader definition would be that it has to appear in an "evaluated" term.
28.
▲
by
waltpad
6y ago
> The problem is the design decision of using a simplistic data model that fails in that spectacular and unintuitive way. I don't see how it could be made intuitive. How would you design it?
29.
▲
by
waltpad
6y ago
Or they didn't want to end up producing code with noticeable fluctuations in efficiency, as it is described later in the article: sometimes, having consistent (read predictable) computation times is better.
30.
▲
by
waltpad
6y ago
Maybe it wouldn't be possible to have several processes working in parallel, but instead a single process with 5 cores available for threads? Consider the PS3 arch for instance: it had 7 cores, 1 for management and the rest for computi
More ›