Better HN
topnewbestaskshowjobs
Log inSign up

fabiospampinato

1,073 karma · joined Sep 21, 2016 (10y ago) · 452 submissions

Full-stack developer passionate about open source and empowering people.

GitHub: https://github.com/fabiospampinato

Twitter: https://twitter.com/fabiospampinato

Submissions

comment 1y ago · link · parent

Now we need to know from the people that experienced the laser how different this hallucination feels compared to that. Very cool stuff!

comment 1y ago · link · parent

Interesting. Development of the most powerful technology humans could ever hope to build, happening within our lifetimes, "boring".

comment 1y ago · link · parent

Linux and Chromium seem at the edge of the current scale of "ordinary" open-source software. I think perhaps one should also take into account how much money would be needed to be able to build the thing in reasonable time.

Building Chromium sounds awful, but I'm not sure I'd really need to buy another computer for that. If I did I'm sure I wouldn't need to spend billions on it, most probably not even millions.

For LLaMa I definitely don't have the computer to build it, I definitely don't have the money to buy the computer, even if I won the lottery tomorrow I'm pretty sure I wouldn't have enough money to buy the hardware, even if I had enough money to buy the hardware I'm still not sure I could actually buy it in reasonable time, nvidia may be backlogged for a while, even if I already had all the hardware I probably wouldn't want to retrain llama, and even if I wanted to retrain it the process is probably going to take weeks if not months at best.

Like I think it's one of those things where the difference in magnitude creates a difference in kind, one can't quite meaningfully compare LLaMa with the Calculator app that Ubuntu ships with.

comment 1y ago · link · parent

To be fair if they released detailed instructions and datasets on how to rebuild llama (considering that there's some randomness in the process) you still probably wouldn't be able to build it, like who has the resources? And if you had the resources you probably _still_ probably wouldn't _want_ to rebuild it yourself, it seems awfully expensive when you could instead spend those resources elsewhere.

Fair point about the license, people have different definitions for what "open source" means.

comment 2y ago · link · parent

Apparently I can find some matches for games that start like that between very strong players [1], so my hypothesis that the model may just be predicting bad moves on purpose seems wobbly, although having stockfish at the lowest level play as the supposedly very strong opponent may still be throwing the model off somewhat. In the charts the first few moves the model makes seem decent, if I'm interpreting these charts right, and after a few of those things seem to start going wrong.

Either way it's worth repeating the experiment imo, tweaking some of these variables (prompt guidance, stockfish strength, starting position, the name of the supposed players, etc.).

[1]: https://www.365chess.com/search_result.php?search=1&p=1&m=8&...

comment 2y ago · link · parent

It's probably worth to play around with different prompts and different board positions.

For context this [1] is the board position the model is being prompted on.

There may be more than one weird thing about this experiment, for example giving instructions to the non-instruction tuned variants may be counter productive.

More importantly let's say you just give the model the truncated PGN, does this look like a position where white is a grandmaster level player? I don't think so. Even if the model understood chess really well it's going to try to predict the most probable move given the position at hand, if the model thinks that white is a bad player, and the model is good at understanding chess, it's going to predict bad moves as the more likely ones because that would better predict what is most likely to happen here.

[1]: https://i.imgur.com/qRxalgH.png

comment 2y ago · link · parent

Yes exactly, at some point I asked to maintain it and kinda redid it. Now I kinda consider it "done", as in "maybe some more work would be put into it, but by end large I don't think it's going to change in the future".

comment 2y ago · link · parent

> Aren’t they leaving more size/speed improvements on the table by supporting it?

Only tiny ones, I don't remember the details now, IE11 ended up providing almost all the same APIs.

comment 2y ago · link · parent

"modern websites" means IE11+ for cash, it's a fairly old library.

comment 2y ago · link · parent

Civet has so many quality of life improvements! It's good that it exists sort of as a playground for ideas that could maybe in the future be adopted by JS itself, kinda like how it went with CoffeeScript.

comment 2y ago · link · parent

Closing hospitals would cut deaths in hospitals by 100%.

Like I'm not sure what this measure means, it's not like 26% of people that would die in the hospital would be made immortal or something.

comment 2y ago · link · parent

Yeah this seems more like observables than signals. Which despite what you may hear on the interwebs are two different things.

comment 2y ago · link · parent

This seems a bit different from the kind of signals frameworks have, where dependencies are tracked automatically (no dependency array), and you can sort of chain stuff automatically, so for example you can have an effect that depends on 3 memos that depend on 4 signals or whatever else, and you never experience non-fresh values.

If you want to look a bit deeper into this I had written another sort of toy implementation that much more closely resembles what the frameworks are actually doing: https://github.com/fabiospampinato/flimsy

comment 2y ago · link · parent

Wait, so Flow is not actually sound and their website is lying? Or do they have some "technically correct" definition of "sound" that takes stuff like that into account?

comment 2y ago · link · parent

Enormous humanoid robots for everything! Have you ever watched one of those videos where somebody makes a mini concrete building in a few days? I'd be cool to just scale that up, if it's possible, perhaps with faster-setting concrete or something.

comment 2y ago · link · parent

I would guess that having 2 zeros is not that useful for NNs, but in general with 2 bits we could encode 4 states, so are there 4 possible states that would be useful to encode? Sure, but would this be better than encoding 3 states? That's the entire question imo. I would guess that 3 states are probably better, because negative/neutral/positive seems the minimal signal that we need these weights to provide.

comment 2y ago · link · parent

It seems tough to do, besides I'm not sure what the benefit would be, with that you can't do the optimized matrix multiplication anymore, and if you need more precision presumably you can just add more neurons and/or train for longer and/or with better data.

comment 2y ago · link · parent

> 1) I never knew how much I disliked naming things before I didn’t need to do that anymore

I never understood this argument about naming. You need to name the component anyway just to be able to reference it somewhere? You need to give the folder or the file where this component is defined a unique name anyway? Internal nodes technically don't need to be named when using Tailwind, but if for example I'm writing a Slider component, do I not want to name the "handle" thing that can be dragged anyway? How was finding the "handle" word a non-insignificant hurdle? And if I need to talk about this element with a colleague what would you call it anyway?

comment 2y ago · link · parent

Yes but now in non-linux systems you have the pretty large overhead of that.

comment 2y ago · link · parent

These work with phones though, not _satellite_ phones.

21.

Prettier's CLI got rewritten, in JavaScript, for a 20x speedup(twitter.com ↗)

2 points · by fabiospampinato · 3y ago · discuss

comment 3y ago · link · parent

I haven't really kept track of everything. It may be worth making a blog post with the main findings though.

comment 3y ago · link · parent

Interesting how they say that compiled templates are ~21% faster to update, I wonder why. In theory pretty much anything that they could be doing at compile time could just be done at runtime, since they are building on top of tagged template literals, which enable this, so I guess there were some optimizations missing for that in v2? I'd be interesting if anybody knows what was missing.

comment 3y ago · link · parent

I mean they care to some degree, if they _really_ cared presumably everything would be compressed with zstd and served to the more modern npm-cli installations, and npm-cli would refuse to upload binaries that are not explicitly allowlisted.

comment 3y ago · link · parent

Funnily enough I've recently implemented [0] a little proof-of-work generator (or more specifically a time-lock puzzle [1] generator), which is the base building block on top which something like this can be built.

It's a very cool idea imo, you generate a cryptographic puzzle that's cheap for you to make, cheap for you to verify if its solved, and potentially cheap-enough for legitimate users to solve, but expensive-enough that users making too many requests would find solving them prohibitively expensive.

I wish something like this was bolted onto email protocols, it would just cost more to be a spammer than it'd be worth it.

Interesting how mCaptcha seems based on sha256, I don't know enough but it would be worth checking how much the algorithm can be sped up with (already existing) dedicated ASICs, if the attacker can solve the puzzle like 10000x faster than normal users you just can't crank the difficulty of the puzzle high enough and for motivated attackers this becomes basically useless. Basing this of on repeated squarings, like the RSW paper on time-lock puzzles did, seems potentially better.

[0]: https://github.com/fabiospampinato/crypto-puzzle

[1]: https://people.csail.mit.edu/rivest/pubs/RSW96.pdf

comment 3y ago · link · parent

You do have other options, you can build your PoW on repeated squarings instead.

comment 3y ago · link · parent

If the two outcomes don't have equal probability there are no two halves here. In a bull market with everything being green saying that something will go up is not an interesting prediction.

comment 3y ago · link · parent

Though it's not like 50% of the days any given stock goes up and the other 50% of the days the stock goes down.

comment 3y ago · link · parent

I wish you could get an Hyper key with built-in utilities without needing to install anything else. Unfortunately hidutil can't map multiple keys to a single key.

comment 3y ago · link · parent

Exactly, Ada is searched for 2x as much as TS? No way.
12345
16