Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
excessive
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
excessive
7y ago
I don't mean this the wrong way, but since you know one instruction is sufficient, the next smallest number is two. Maybe by RISC, you meant a small orthogonal set? Load/Store/ALU ops separated? So ADD and NAND work on reg
2.
▲
by
excessive
7y ago
x86's version of a single "instruction" is frequently a large class of opcodes. It's kind of crazy considering the assembler chooses one of the following numbers for "mov" based on the operand types, not the m
3.
▲
by
excessive
7y ago
A few years back, I re-wired the electrics in my guitar using a semi-complicated setup of a 6 way switch for pickups in-phase or out, and parallel or series, tone and volume pots, and distortion. There was also some choice to be made about
4.
▲
by
excessive
7y ago
Here's one you can use with (pretty much) any version of C++: __attribute__ ((format (printf, 1, 2))) static inline std::string format(const char* fmt, ...) { va_list args; va_start(args, fmt); size_t
5.
▲
by
excessive
7y ago
> It was about this time that I realized college might not be the thing for me. Frequently, there are higher caliber instructors in colleges than high schools. If your goal is to learn something you don't know, you may have made th
6.
▲
by
excessive
7y ago
> they rarely encounter children these days who can have a conversation. I think public schools do a pretty good job teaching kids to not speak openly with adults.
7.
▲
by
excessive
7y ago
That's interesting. I didn't read the paper closely, but skipping to the pictures, it looks like ReLU, but smoothed out so the derivative is continuous. Intuitively, that seems useful.
8.
▲
by
excessive
7y ago
> Someone should make one language that transpiles down to Javascript AND Python AND Ruby AND Erlang even! Well, not every language, but Haxe has you pretty well covered: https://haxe.org/documentation/introduction&#
9.
▲
by
excessive
7y ago
Your first line of main is adding -0.0 and -0.0, which is not what I think you intended to show.
10.
▲
by
excessive
7y ago
> quite slow due to GIL I don't want to defend the GIL, but that's not the reason CPython is slow. PyPy can be 100s of times faster, and it has a GIL too.
11.
▲
by
excessive
7y ago
I'm not the GP, but here's my take on it. First some good: Python is amazing for how approachable it is. I've tried to teach (non-programmer, but smart) people I know other simpler programming languages, and it doesn't
12.
▲
by
excessive
7y ago
I didn't think it worked that way. After that, can I be the Silent/Greatest Generation? Maybe the word "Boomer" will just get redefined to mean "old people with more money than me". Kind of the same way "
13.
▲
by
excessive
7y ago
> Some boomer should have some “OK SLACKER” t-shirts As part of Gen-X, I feel like that's appropriating from my culture. I was proudly on the "slackers" mailing list as an adult in the 90s when the millennials were bein
14.
▲
by
excessive
7y ago
Across the world, what percentage is Portland cement vs the other CO2 absorbing kind? I googled around, but couldn't find the answer.
15.
▲
by
excessive
7y ago
Thank you for telling me about this - I didn't know they did that... My first thought as I started reading the PEP was, "Why did they bother adding the 'bytes' type if 'str' is just going to be able to hold eve
16.
▲
by
excessive
7y ago
Yes, that's very much what the video goes into. For any rational approximation of 2 pi, say 22/7, you won't get lines at multiples of 2 or multiples of 11.
17.
▲
by
excessive
7y ago
The first time I saw these, I thought it hinted at some deep insight into the nature of primes. However, after watching the following video, I think it just says something about modular arithmetic and rational approximations of 2 Pi.
18.
▲
by
excessive
7y ago
> Your proposal only works well for US ASCII users. No, and I explicitly mentioned UTF-8. My suggestion is that str holds arbitrary immutable binary data and that you have a method which can interrogate whether that binary data is valid
19.
▲
by
excessive
7y ago
> There were some intractably difficult, "rip-the-band-aid-off" types of changes that had to happen at some point. I suspect you're referring to Unicode here. In that case, I think they could've just added a flag to
20.
▲
by
excessive
7y ago
Thank you for your reply, it does actually change how I see the prior art thing played out. > Often, folks think that they've found prior art if they find one thing in one document and another thing elsewhere. Nope. Still, I think t
21.
▲
by
excessive
7y ago
Here is one in Python. Uncomment the if statement if you want it to terminate. def sin(x): def recur(x, n, s, p, f): #if n > 9: return s; return recur(x, n + 2, s + p/f, -p*x*x, f*(n + 1)*(n +
22.
▲
by
excessive
7y ago
Yes, exactly.
23.
▲
by
excessive
7y ago
The plaintiffs certainly had a larger legal team. We brought our patent attorney and a trial lawyer on our own dime, and we managed to get some time from the chief patent counsel for a very large company because he had a relationship wit
24.
▲
by
excessive
7y ago
When you go to court, the presumption is that the patent is valid. The judge is unlikely to be technical, and he must assume the experts at the patent office did their job. Since the patent office basically rubber stamps anything you send
25.
▲
by
excessive
7y ago
> Is that what it's about? I'm pretty sure most people who strongly like OOP are sure their particular definition is the correct one. I haven't seen many people agree about what that definition is though. I generally dis
26.
▲
by
excessive
7y ago
One of the things I dislike about the OO noun.verb() syntax is that frequently you have multiple nouns. For example in some graphics systems, you've got a canvas to draw on, a pen which knows styles for line thickness or dashes, a bru
27.
▲
by
excessive
7y ago
Heh, this is really a matter of perspective. If you think the rest of the web was wonderful, then Flash was a turd floating in a swimming pool. If you think the web is a poorly designed shoddy mess, then you might think Flash was a raft k
28.
▲
by
excessive
7y ago
As consumers, most people probably only care about what modern browsers can do. As a developer, the mechanisms become front and center. Modern web development is a Rube Goldberg kluge of things glued together with duct tape. Flash was
29.
▲
by
excessive
7y ago
I was never a Flash developer, but I certainly admired it in its prime. The early versions could be installed simply by putting a 47kb DLL in the plugins directory, and in a time well before the HTML canvas or JavaScript with good performa
30.
▲
by
excessive
7y ago
This one seems backwards to me: (2 '(a b c)) In addition to being data structures, I like to think of lists/arrays as functions which map integers to the contents. This nicely generalizes to hash tables / associativ
More ›