Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nicwilson
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
nicwilson
4y ago
I thought this link might have been: https://www.abc.net.au/news/2023-04-06/hepburn-mayor-flags-l...
32.
▲
by
nicwilson
4y ago
One of my worst ones was a compiler bug for a PLC which would cause a floating point operation that underflowed to become NaN instead of 0.0 (which is very common if you are writing set-point tracking code!) and then throw out the loop , so
33.
▲
by
nicwilson
4y ago
you don't need to make it a holiday, just doing it on a weekend should suffice. E.g. in Australia, elections, Federal, state and local are all held on Saturdays. If you actually want to improve turnout, enact compulsory voting. That is
34.
▲
by
nicwilson
4y ago
Intersting papers. https://arxiv.org/abs/2302.01834 appears to have a typo in section 4.5 S(hg) = S(g)S(g) looks like it should be S(hg) = S(h)S(g) or S(hg) = S(g)S(h)
35.
▲
by
nicwilson
4y ago
> no exceptions There is a flag to allocate them with malloc, and use RC. > no dynamic arrays, I think you can't even use the common string in D without the GC. Totally not true. You can't concatenate arrays (string are just
36.
▲
by
nicwilson
4y ago
The least terrible of the IEC Programmable Logic Controller languages is effectively a pascal.
37.
▲
by
nicwilson
4y ago
>A 1V 1000A power supply won't kill any one and won't give a shock. It very well could if the frequency is high enough. The skin is like a capacitor which acts like a short circuit at high frequency. DC is much less dangerous t
38.
▲
by
nicwilson
4y ago
True, but consider that most of southern Asia, Oceania, Africa and central America the sun is abundant. That covers a lot of people.
39.
▲
by
nicwilson
4y ago
a. Yes, but you can easily put up solar+batteries such that the cost of retail energy to the consumer is entirely transmission line rental, at which point disruption is worth whatever the cost of line rental is minus the capital cost of gri
40.
▲
by
nicwilson
4y ago
they do come up though, e.g. blood (dL)
41.
▲
by
nicwilson
4y ago
As with many medical drugs, the marginal cost of production of the medication is small, but it is dwarfed by the cost of research, trial conduction and FDA approval and is patented. Additionally for CAR-T there is rather intense post-admini
42.
▲
by
nicwilson
4y ago
Kind of, mark `main` `@safe`. The transitivity of safety will ensure that you can only call safe functions, else you will get a compile error.
43.
▲
by
nicwilson
4y ago
I think velocity of development is more like velocity of money than velocity of a car.
44.
▲
by
nicwilson
4y ago
Intels FPGAs should be able to run OpenCL kernel SPIR-V which simplifies the pipeline significantly.
45.
▲
by
nicwilson
4y ago
At least for Australia and New Zealand, who are probably the most biosec paranoid countries, there are a large number of reasons. mostly do to with introduction of pests and other potentially ecologically damaging effects, see introduction
46.
▲
by
nicwilson
4y ago
It not the organic nutrients (amino acids etc.) that are low as a result of fast growing crops, it the inorganic nutrients that are low, i.e. metals. Faster growth of the plant means less time to absorb from the ground. I've no idea ho
47.
▲
by
nicwilson
4y ago
> a frequency (?) splitter The term for the thing it does is "frequency division multiplexing"
48.
▲
by
nicwilson
4y ago
RAII, though there is also `scope(exit)`
49.
▲
by
nicwilson
4y ago
> how do you think D compares with Zig? Disclaimer, I've never used Zig, so the following are not comparative. > Is it able to produce as efficient and small binaries, There are compiler flags to disable linking to the D standar
50.
▲
by
nicwilson
4y ago
Shameless plug: LDC (the LLVM based D compiler) can already target CUDA (and OpenCL) and wraps its API and all of the nasty details involved in replicating <<<>>> kernel launches with https://github.com/lib
51.
▲
by
nicwilson
5y ago
yes, if it exists as a thing in the object file you can interoperate with it, with a few exceptions, e.g. diamond inheritance
52.
▲
by
nicwilson
5y ago
> D's inline assembly DSL only works in x86 and x86-64. You're conflating DMD (the reference compiler) with the language here. LDC and GDC (the LLVM and GCC based D compilers) both support GCC style "extended" inline
53.
▲
by
nicwilson
5y ago
May I enquire when this was, and for what applications?
54.
▲
by
nicwilson
5y ago
> they did it volontary [sic] That really undersells the `static if considered paper` which has got to be the most offensive standards paper I've read. > so there must be arguments against 'scopelesd constexpr if' I
55.
▲
by
nicwilson
5y ago
Probably because best practice and changes at a faster rate than coding standards for old codebases. I suspect this observation exhibits some survivorship bias as well, then again you get things like OpenSSL...
56.
▲
by
nicwilson
5y ago
As noted elsewhere it seems your experience is somewhat outdated: the releases of the LLVM D Compiler (one of the two compilers worth using for production builds, the other being GDC) are buffered to the bugs introduced in DMD (which is mor
57.
▲
by
nicwilson
5y ago
Derisking. Thats the term.
58.
▲
by
nicwilson
5y ago
I can't remember where I read it, though I'm pretty sure that it was someone in your situation *: By far the easiest non-technical solution is to make it as easy as possible (logistically) for medical research companies to find a
59.
▲
by
nicwilson
5y ago
Yes, you use it to select the parameters of you optimiser, like step size and momentum schedules and other tuneable things. Look up MAML (meta abstract machine learning?)
60.
▲
by
nicwilson
5y ago
links for the curious: https://github.com/libmir/dcompute/
More ›