Recent submissions

Comment · 1 month ago
Well yeah, but then you are using code generation, not writing code directly.
Comment · 1 month ago
Launching kernels manually is an error prone PITA which I believe is the principle reason for CUDA's popularity. Having the compiler give an error when you mess up is a huge benefit. But having the compiler allow you to express "I want to launch this kernel over a grid with these dimensions, with these arguments" as a single expression is where the vast majority of the value comes from.

The having it all in a single file is mostly an artefact of the fact that it is C++, because C++ is single file at a time compilation. In D (which is multiple files in a single compiler invocation) with DCompute (which targets CUDA and OpenCL with upcoming support for Vulkan and Metal), you are required to write the kernels in a separate module, but you get all the benefits of the compiler complaining when you mess up _and_ the expressivity of "launch me this kernel".

Comment · 4 months ago
Absolutely, this is selective pressure at work on cells with malregulated genetics. Most typically, this is in the form of drug efflux pumps, but you can definitely get more specific resistances.

Ways to avoid specific resistance include multiple treatments simultaneously, since the probability of generating resistance to both is the product of the probability of resistance either.

Comment · 4 months ago
Comment · 4 months ago
If you use other students for that problem instead of other teachers, you'd swap a budgetary problem for a bootstrap problem.

The upshot for this is that the benefit is as much for the student doing the teaching as the one doing the learning. Teaching has a much greater effect on _retention_ than listening reading or even doing, which is the majority determinant underlying the primary school curriculum.

There are a whole host of secondary benefits to this (as well as lots of logistical challenges): the students are doing something useful, teaching, and we pay teachers if you wanted to expend budget there I suspect it would have great effect, as would any other form of ~~bribery~~, I mean, incentivisation; socialising, especially if you have the teaching being done across different classes (which you would want to do because you want the teacher to know more than the student).

Comment · 8 months ago
(Having not read the article), most likely because the cancer cells (at least at more advanced stages) are busy trying to replicate as fast as possible, so they take up nutrients at a much faster rate than non-cancerous cells. As to why Iron in particular, it is used as a cofactor for enzyme and if Iron is a limiting factor for replication then supplying it will lead to a burst of growth which then (presumably by applying strong oscillatory magnetic fields) you can target those cells directly to locally boil them.

How do the iron nano materials get there? probably a combination of vasculature and diffusion.

They have done this kind of stuff before with gold nanoparticles, iron is a lot more abundant.

Comment · 8 months ago
Sociomantic (bought by Dunhumby, now defunct IIRC) had a realtime advertisement business built in D.

Weka have a realtime distributed filesystem written in D, used for ML/HPC workloads.

Comment · 8 months ago
It has an LLVM backend, LDC, that is separate from the LLVM project/Clang.
Comment · 8 months ago
You might be thinking of Ubiquiti, who were exposed as blind eyeing the sanctions
Comment · 11 months ago
That is dated Feb 2022. Do you know if anything came of it?
Comment · 1 year ago
It works with arrays (both fixed size, and dynamically sized) and arrays; between arrays and elements; but not between two scalar types that don't overload opBinary!"~", so no it won't work between two `ushorts` to produce a `uint`
Comment · 1 year ago
This was essentially how DMD (the reference D compiler) was translated to D. However this was mostly a restricted subset of C++ common to both of them, e.g. no diamond inheritance, no operator overloading whackiness.
Comment · 1 year ago
`private` is only private to the module, not the struct/class, (In other words, all functions in the same module are all C++ style `friend`s) and so free function in same module work.
Comment · 1 year ago
Hmmm, I wonder if you could turn this into a sport and have like one paper per year per group of total BS, and shame on the reviewers/conference/journal if they don't catch it, and kudos to the submitters the more blatant it is.

Come to think of it, is there a "Journal of Academic Fraud"?

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton