ycitm
https://www.richard-towers.com/2023/03/11/typescripting-the-...
https://www.typescriptlang.org/play?#code/PTAEEkDsAsEMBsCmAa...
I've corrected this, and credited you in the errata - https://www.richard-towers.com/2023/03/11/typescripting-the-...
I considered forking the compiler to set a deeper limit, but at some point Typescript itself is going to stack overflow. Also that probably goes a bit beyond what Criss is expecting in an interview...
There's a recursion depth limit of 500 on the TypeScript compiler, which prevents this solution working for N > 7
Even Aphyr's original Haskell solution only demonstrates N = 6, so in some sense this is an improvement on the state of the art for type-level N Queens solutions /s
This post is a pastiche of https://aphyr.com/posts/342-typing-the-technical-interview
Ideally, I would have written:
type Nil = unique symbol
Which would ensure the Nil type wouldn't match with anything but itself. Unfortunately, the compiler doesn't allow unique symbol other than on const variables initialised with Symbol(). So I needed some meaningless symbols.I could also have done
type Nil = "nil"
But then it would have looked like the string meant something.The impact of removing jQuery on our web performance
How and why we removed jQuery from Gov.uk
Lessons from last week’s cyberattack
I've found a really simple way of authoring and sharing notes is to write them in Org mode and then push them to a wiki on github. Github understands how to render Org markup nicely, so you get a nicely formatted wiki pretty much for free.
As an added benefit I can now touch type :)
Support for vim-surround commands ys, cs, ds, S, enable it with set surround in your ~/.ideavimrc
let test_curry x y = x + y + x
You get the expected output function f(param) {
return test_curry(32, param);
}https://medium.com/@devlucky/nodelist-object-is-finally-an-i...
:help paragraph
[...] The default is "IPLPPPQPP TPHPLIPpLpItpplpipbp" [...]
(they're nroff macros, but pretty baffling to a beginner)Thanks for the link, good to know people are thinking about the naming issues.
I'm not a fan of it either ("isomorphic" already has a different well-defined meaning in CS), but it does seem to have some traction now.
Perhaps you have an alternative term you'd prefer these frameworks used?
817023023960376946633975507110154649249407598806798730414849884461776172171921668594148071323527016137506405823108520062504849249423700259406905313281403901410082762097159560221463048924336192384026777502177262731045200322200149773127502888545234973139480887644585192600631058962876114156934248895171959246969597637127280010272143593885240940877456234662196130491400738438731832514335353824697930453078426722191105157568392826870043655708008545411143367763836566011740499383456592129662585004880376777597714978023542434421914201119537685489173509942329090631662014650033142642110914360849421856179611226450806562235534802516081595259914768497444702718749402330070488028751073730349460752771915484847399385631524708487646079936572410398967582895983187640798072309362094727654167628620105981459021548290415800096769214437425690934372015628796027498219902441288189398386359846661623243493534897411417685435424010451956954083531228374002591372549525280610594684910812811287436481207089763125424247793044043309737269468709710679872269272855389945385386467765509880648929743498214329578288874987193768439353382305260108425688024147656806932474058888992099083804597481699305852902662863062054067183925164590726103552998367994727700722491707 `mod` 231
0