Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
phaedrus
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
53 ms
·
451.
▲
by
phaedrus
9y ago
I believe there are two fundamental differences between transducers and LINQ/IEnumerable. First, IEnumerable only abstracts "where" input is demanded from, but it doesn't abstract "when" or "who" ini
452.
▲
by
phaedrus
9y ago
Actually I would think that it divides the domain/codomain of the successor function into two disconnected regions. I just "6 is missing" as meaning succ(5) is undefined and that no x exists such that succ(x) = 7. You could
453.
▲
by
phaedrus
9y ago
When I program 'on the fly' I either have the diagram in my head, or I'm working 'linguistically' such that things are correct-by-construction / facts about objects are true because-of-what-they-are rather tha
454.
▲
by
phaedrus
9y ago
I wonder if an indexed "PageNumber" column could work? Obviously wouldn't work for arbitrary queries, but if you had a single, commonly run query it could be used to speed up that one...
455.
▲
by
phaedrus
9y ago
My experience with GCC and compiling C++ has been that performance scales nearly linearly with core count. In other words, compiling C++ gets great benefits from parallelism - provided you configure your build to take advantage of it. (Fo
456.
▲
by
phaedrus
9y ago
Encode computations as NP hard graph optimization problems. Use the public computation resources to solve the hard part, but keep the labels of the nodes and edges in the slower encrypted computing resource.
457.
▲
by
phaedrus
9y ago
Totally agree with this article. An Emperor-has-no-clothes situation which baffles me that more programmers don't see as obviously as I do is the following sequence of logic: 1. If the code format check can be automated, then the code
458.
▲
by
phaedrus
9y ago
I bought a Neo Freerunner when it came out. I tried make it my daily phone, and invested a lot of time hacking on it - in the end a wasted effort. There were show-stopper bugs and face-palm-worthy design missteps at every level of the sta
459.
▲
by
phaedrus
9y ago
Yes, you're doing it wrong. The trick is you've got to reduce your "saturation level" of #includes in header files, by preferring forward declarations over #includes, and using the PIMPL pattern to move your classes'
460.
▲
by
phaedrus
9y ago
Something I've wanted to try for years is what about a Lego refraction distillation tower? Similar to how oil refineries use a tower to sort hydrocarbon compounds by length based on their volatility. Except in this case instead of us
461.
▲
by
phaedrus
9y ago
I've had great success building digital logic with minimized part counts. When I've tried to do the same with analog circuits, I've had more mixed success. I realized that it's because digital logic is transitive (in t
462.
▲
by
phaedrus
10y ago
Holy moly! Two axis stepper motor controller for $67?! (You should check out the store connected with that site.) This reminds me I really need to finish my single-scanline CdS cell camera project...
463.
▲
by
phaedrus
10y ago
There's a much simpler, technical explanation: the transition from linear power supplies to switch mode power supplies, in devices of all sorts including but not limited to computers. The timing of the peak and beginning decline in p
464.
▲
by
phaedrus
10y ago
It depends on the linker and the command line options to the compiler and the linker. I was surprised to find out that, e.g., GCC, has this off by default and you have to pass options to enable it.
465.
▲
by
phaedrus
10y ago
That explains why some of the site is blocked as "Category:Games" by the web filter at my work. Fortunately our web filter doesn't block the whole domain, just some of the pages.
466.
▲
by
phaedrus
10y ago
A long time ago I tried to use a throw in a ternary expression in C++ (e.g. "return is_good ? value : throw;") and it caused an internal compiler error! Really cool to see that it's now a feature of C#.
467.
▲
by
phaedrus
10y ago
I can't pick out a voice in a crowded room, or indeed separate speech from any sort of background noise. In ideal listening conditions I miss words making sentences not make sense, and often I don't realize someone has started ta
468.
▲
by
phaedrus
10y ago
It's an interesting coincidence seeing this paper and talks about data flow, because I'm interested in applying typing to logic programming for a practical system and also came to the conclusion that my type system needs to be awa
469.
▲
by
phaedrus
10y ago
Regarding the ADC issue specifically, when programming at the hardware level never discount the simple possibility that it's just that the microcontroller pin is fried (e.g. due to ESD). Also consider the opposite: the ADC is telling
470.
▲
by
phaedrus
10y ago
This is a question I've thought about a lot this year. How many programming paradigms are there? How will we know if/when we've discovered them all? Is there a way to arrange them so that gaps in the table predict yet-to-b
471.
▲
by
phaedrus
10y ago
IIRC this was exacerbated by the fact that their bite was coded as (or similar to) a "punch" which actually would not have been so bad, except (1) a dwarf hit by it had a 50/50 chance of falling into water and (2) carp appear
472.
▲
by
phaedrus
10y ago
Check out the Castor C++ logic programming library - it makes extensive use of coroutines based on the principles in common with Duff's device. The Castor macros co_begin, co_end, co_yield, and co_return contain the implementation cod
473.
▲
by
phaedrus
10y ago
My first paid tech project (I was a high school student) was to get CNC control software working on newer PC hardware for a local metal fab shop. Through debugging the machine code, I determined the cause of the problem was that code that
474.
▲
by
phaedrus
10y ago
I think you're getting downvoted because you asserted advice as an absolute and gave no explanation why/when it applies. I happen to agree with you empirically, but I would phrase it thus: const member variables can be problemat
475.
▲
by
phaedrus
10y ago
"Yes," except that the scale of the assemblage would have to be unimaginably enormous. Then, in order to continue working at that scale, it would have to incorporate copious error correcting and fail over. It would need mechanis
476.
▲
by
phaedrus
10y ago
In fact I do use a 12" Macbook for development (C++). It does alright; certainly no worse than the 2011 13" Air it replaced. I should mention the CLion IDE makes it get hot and drains the battery unless you turn off certain IDE
477.
▲
by
phaedrus
10y ago
I'm genuinely curious how/why this is a problem for Python yet I've never heard of it being a problem for C#. In C# you can override Object.GetHashCode(), and there's no way in C# to even express the constraint/des
478.
▲
by
phaedrus
10y ago
I agree; to me it says equally as much about the expectations of the author of the article. In C++ you can define operator < and in C# you can define IComparable. Therefore I was astonished to discover the datastructures in the dynamic
479.
▲
by
phaedrus
10y ago
There's a high end pizza place in my city. They buy their flour, but they grow their own arugula. They didn't build their own building from scratch, but they did build their own brick ovens from scratch.
480.
▲
by
phaedrus
10y ago
This is not just a defense of NIH but also a good rule of thumb for how to do NIH "right". The more narrowly you define the problem the more likely that the DIY approach will be better in both time and quality.
More ›