Better HN
topnewbestaskshowjobs
Log inSign up

nicwilson

490 karma · joined Feb 7, 2017 (9y ago) · 201 submissions

Submissions

comment 2mo ago · link · parent

Well yeah, but then you are using code generation, not writing code directly.

comment 2mo ago · link · parent

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 5mo ago · link · parent

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 5mo ago · link · parent

The open letter: https://www.smh.com.au/national/i-d-be-delighted-to-be-remem...

5.

Richard Scolyer Has Died(bbc.com ↗)

130 points · by nicwilson · 5mo ago · 34 comments

comment 5mo ago · link · parent

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 8mo ago · link · parent

(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 9mo ago · link · parent

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 9mo ago · link · parent

It has an LLVM backend, LDC, that is separate from the LLVM project/Clang.

comment 9mo ago · link · parent

You might be thinking of Ubiquiti, who were exposed as blind eyeing the sanctions

comment 1y ago · link · parent

That is dated Feb 2022. Do you know if anything came of it?

comment 1y ago · link · parent

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 1y ago · link · parent

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 1y ago · link · parent

`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 1y ago · link · parent

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"?

comment 1y ago · link · parent

azimuth is the only other one I can think of off the top of my head

comment 1y ago · link · parent

Double entry accounting is still error prone, but single entry accounting is fraud prone.

comment 2y ago · link · parent

* Brownian motion. "browning motion" sounds like a euphamism for something else...

comment 2y ago · link · parent

54 minutes, but the Yogscast did one a while ago

https://www.youtube.com/watch?v=qlTsW9rWE0o&pp=ygUbeW9nc2Nhc...

comment 2y ago · link · parent

It is, because wavenumber and position are distinct variables and are orthogonal to each other. FT turn position into wavenumber (positional frequency) and wavenumber into negative position:

[ 0 1] [x] [ ω]

          = 
[-1 0] [ω] [-x]

see also https://en.wikipedia.org/wiki/Linear_canonical_transformatio...

the rotation matrix [[ 0 1], [-1 0]] is a 90 degree rotation.

comment 2y ago · link · parent

FT is a 90 degree rotation not a 180, the FT of the FT of a function is the mirror image about the origin, not the function itself.

comment 2y ago · link · parent

Wiki link says that was published in 2010, a lot has happened in the field in 13 years. That predates whole classes of immuno-theraputics like grafting B-Cell (cells that produce antibodies) receptors onto CD8+ T cells (cells that kill infected cells), which I forget the name of.

comment 3y ago · link · parent

not just a drunk, a cheap drunk.

comment 3y ago · link · parent

It won't work for liquid tumours (i.e. blood cancers) since they "metastasise" to the whole vein/artery network.

Cancers in the brain/lungs/bone, unlikely, since the speed of sound is very different between bone/air and flesh. Though I could be wrong.

But for any solid tumour, it should work well.

comment 3y ago · link · parent

> Cons - Sound waves can only penetrate a few centimeters into the body.

For an Air -> flesh medium interface. I'd be very surprised if they didn't couple this to gel to have gel -> flesh interface for what is done with ultrasonography (e.g. imaging for pregnancy) and the article mentions that they do ultrasonography prior to make sure they know where to aim the energy so that would make sense.

comment 3y ago · link · parent

You don't need those voting for the bill to act in good faith if you have as part of the system of passing bills that the opposition gets to write the (adversarial part of the) test suite. Then either that forces any loopholes (or other undesirable effects) to be: updated as explicitly intended (with bad publicity and potential for reversion upon a change of government); or taken into account and the bill updated to reflect that, or left in the test case for case law to cite as intended.

Either way you really want intent to be encoded somehow.

comment 3y ago · link · parent

Yes, compulsory voting is great, it removes a bunch of pathologies of democracy, to name a few: electioneering is about making people vote for me and not for others and not trying to waste effort to "fire up the base" (and therefore elections are much cheaper since the "volume of speech" required much lower); voter suppression is much harder to pull off since voting is a responsibility not just a right (still possible, just make the kill themselves, see the robodebt fiasco).

comment 3y ago · link · parent

D does. Not source compatible, but mangling and ABI for linking. And D can generate headers for `extern(C++)` declarations defined in D

comment 3y ago · link · parent

Indeed, we should be thankful there is no human equivalent of https://en.wikipedia.org/wiki/Devil_facial_tumour_disease

comment 3y ago · link · parent

> [AI is] the only practical way of getting to 1:1.

It is not the only way: getting other students to teach. Yes it has a bootstrapping problem of quality and requires QA on the delivery but it is still definitely doable at scale.

1234567