637 karma · joined Dec 1, 2016 (9y ago) · 404 submissions
Contact details are on my website, feel free to reach out!
comment 2y ago · link · parent
type Bird = { id: number };
type Human = { swim?: () => void; id: number };
function move(animal: Bird | Human) {
onlyForHumans(animal);
}
function onlyForHumans(swimmer: Human) {
if (swimmer.swim) {
swimmer.swim();
}
}
const someObj = { id: 1, swim: "not-callable" };
move(someObj);
`someObj` gets casted as `Bird`, then `animal` gets casted as `Human`. Unfortunately unions here are indeed unsound.As as workaround you could add a property `type` (either `"bird"` or `"human"`) to both `Bird` and `Human`, then TypeScript would be able to catch it.
comment 2y ago · link · parent
The key to a safe AGI is to add a human-loving emotion to it.
We already RHLF models to steer them, but just like with System 2 thinking, this needs to be a dedicated module rather then part of the same next-token forward pass.
7.
Htb.js – a 50-line HTML template engine that uses JavaScript syntax(github.com ↗)
1 points · by noway421 · 2y ago · discuss
comment 2y ago · link · parent
That rings useful to me. I find it hard to trust an AI black box to output a good result, especially chained in a sequence of blocks. They may accumulate error.
But AIs are great recommender systems. If it can output a sequence of blocks that are fully deterministic, I can run the sequence once, see it outputs a good result and trust it to output a good result in the future given I more or less understand what each individual box does. There may still be edge cases, and maybe the AI can also suggest when the workflow breaks, but at least I know it outputs the same result given the same input.
comment 2y ago · link · parent
Android doesn't do that either. You get Android System WebView which is always WebKit/Blink.
Windows didn't provide any browser engines apart from Trident through mshtml.dll either.
It would make iOS development harder - instead of getting a web view working just for WKWebView, you would need to get it working for every WebView out there. Given that they are not full browsers, it's not as simple as following web standards/caniuse. For example, service worker support in in-app browsers is limited.
If this actually gets implemented, every app out there will most likely pin the in-app browser engine to WKWebView OR bundle a binary blob with their own browser engine directly into .ipa. Bundled browser engine in .ipa has privacy implications - the app will be able to fully read secure HTTPS cookies of the sites that user visits - something that's currently protected.
comment 2y ago · link · parent
I'm testing it on a 3-layer perceptron, so memory is less of an issue, but __slots__ seems to speed up the training time by 5%! Pushed the implementation to a branch: https://github.com/noway/yagrad/blob/slots/train.py
Unfortunately it extends the line count past 100 lines, so I'll keep it separate from `main`.
I have my email address on my website (which is in my bio) - don't hesitate to reach out. Cheers!
comment 2y ago · link · parent
The added benefit is that all the variables become complex. As long as your loss is real-valued you should be able to backprop through your net and update the parameters.
PyTorch docs mention that complex variables may be used "in audio and other fields": https://pytorch.org/docs/stable/notes/autograd.html#how-is-w...
12.
Yagrad – 100 SLOC autograd engine with complex numbers and fixed DAG(github.com ↗)
33 points · by noway421 · 2y ago · 4 comments
13.
A Recipe for Auth Cookies in the Decoupled Front End and Back End Architecture(nowaycodes.substack.com ↗)
1 points · by noway421 · 2y ago · discuss
comment 2y ago · link · parent
Incorrect.
# Gemini marketing website, MMLU
- Gemini Ultra 90.0% with CoT@32*
- GPT-4 86.4% with 5-shot* (reported)
# gemini_1_report.pdf, MMLU
- Gemini Ultra 90.0% with CoT@32*
- Gemini Ultra 83.7% with 5-shot
- GPT-4 87.29% with CoT@32 (via API*)
- GPT-4 86.4% with 5-shot (reported)
Gemini marketing website compared best Gemini Ultra prompting strategy with a worse-performing (5-shot) GPT-4 prompting strategy.
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
I would go on further and make a link to a Stripe Checkout page that allows you to purchase a license subscription to remove the notice.
comment 3y ago · link · parent
comment 4y ago · link · parent
21.
Use DALL·E 2 with Node.js(github.com ↗)
2 points · by noway421 · 4y ago · discuss
comment 4y ago · link · parent
Windcave Account2Account is not a full replacement for debit/credit cards. It does not have PayWave (solvable). It has a clunky UX (solvable). It does not do credit transactions (not solvable).
It can be a minor headwind to VISA/Mastercard and slightly reduce their new signups and tx volume, but I cannot see it fully replacing credit/debit cards.
comment 4y ago · link · parent
comment 4y ago · link · parent
The layout is actually not that much dissimilar from what twitter already has, just more info from non-main threads and better visibility for orphan leafs.
comment 4y ago · link · parent
comment 4y ago · link · parent
It's different to Windows though. If they're looking for something more similar to Windows, maybe Command+H (hide the active app) is a better alternative.