Hacker Newsnew | past | comments | ask | show | jobs | submit | more bArray's commentslogin

I wrote something similar years ago, which would instead convert an image into a mesh of polygons. The idea was to have a vector low-size SVG that could be used as an image placeholder or background for web pages.

I think I lost the code, but it was initially a genetic algorithm that randomly placed overlapping polygons, but the later improved method had connected polygons that shared points - which was far more computationally cheaper.

Another method I explored was to compose a representative image via a two-colour binarised bitmap, which provided a pixelated version of the image as a placeholder.

The core idea is that you drop the image as a small Data URI straight into the page, and then fetch the high-detail version later. From the user's perspective, they are getting a very usable web page early on, even on poor connections.


> How much time could you conceivably use this for?

I also thought the same. It's a nice feature to have, but typing out significant code on that keyboard is a burden compared to a full-sized keyboard. Plus, it's not small enough to carry on the daily.

I personally believe the correct form factor for such devices is a smart watch, where code is written off-device and deployed to it, and the results of the code can be enjoyed throughout the day.

For example, I've developed(/ing) a Micropython based smart watch [1] where code is deployed onto the watch. The idea is to be able to deploy apps and interact with them via a simple interface. Being able to interact with my code daily helps keep the device relevant and to be able to make continual progress.

[1] https://coffeespace.org.uk/projects/smart-watch-v2.html


https://coffeespace.org.uk - started 2014

In a recent article I wrote about an ongoing ESP32-based custom smart watch: https://coffeespace.org.uk/projects/smart-watch-v2.html


$1 USD is ~90 Indian Rupees, 1450 Argentinian Peso or over 1 million Iranian Rial [1]. In some places, $1 USD could be a week's work. On the collection side, you could be seriously over-charging people. On the distribution side, you could be seriously overpaying people for their work - and encourage scams, etc.

> GitHub should charge every org $1 more per user per month and direct it into an Open Source fund, held in escrow.

Sure. It'll be some charity, then somebody gets paid $200k+ per year to distribute what remains after they've taken the majority, all whilst avoiding most taxes. To receive the money the person has to ID themselves, financial background checks need to be done, a minimum amount needs to be reached before a payment is made, and then after passing through multiple wanting hands, they end up with a fraction.

> Those funds would then be distributed by usage - every mention in a package.json or requirements.txt gets you a piece of the pie.

What even is "usage"? How many times it appears in a number of repos? How many users there are of the project? Is the usefulness and value of a project limited to the number of people that directly use it?

> Or don’t! Let’s not do anything! People’s code and efforts - fueling incredibly critical bits of infrastructure all around the world - should just be up for grabs. Haha! Suckers!

> Anyway, you all smarter than me people can figure it out. I just cannot accept that what we have is “GOOD”. xx

It's entirely possible you can make things worse by avoiding doing nothing. Sometimes in life you have to pick the lesser of evils.

[1] https://www.x-rates.com/table/?from=USD&amount=1


> For higher-end board that seems likely. For cheap hobby-grade boards just the job fee[1] is more than 10 boards delivered is from JLCPCB.

Just checked myself using a board I already had manufactured, and can confirm it's a lot higher than JLCPCB or PCBWay.

Maybe for rapid prototyping it is okay, but at scale, to make one board is more than the entire selling point of the whole device.


Looking at the M5Stack Tab5 IoT Development Kit [1] based on the ESP32-P4 - it's a really nice piece of kit.

[1] https://shop.m5stack.com/products/m5stack-tab5-iot-developme...


Yeah, the first thing I thought of when seeing this was "how long till this tablet thingy will be out of stock everywhere?".


Quite a good implementation, got to 62 and was playing a "space filling curve" strategy to bleed off some of the length. Looking at the leader-board I suspect some people are just sending off their own custom submissions [1].

[1] https://kevinalbs.com/spherical_snake/leaderboard/


There is a maximum theoretical length and the sphere actually allows you to wrap around it, Rod of Asclepius style, until you get there - picking up an apple on each cycle. I suspect it's not more than a few hundred segments though so those ~600 submissions are probably someone gaming the submission with a forged score.


now there's 9999 and 1337 for scores. Imma guess there's not a lot of security on the scoreboard of a fun little game


I cheated (for science)


I love the picture of politicians sitting by themselves, annoyed by something as all other people are, and thinking "there's nothing I can do about it". Good on Vietnam for actually doing something about it.

I got a taste of this from an EU MEP that I proposed something to, and they replied "it can't be done because of the law". I then replied "but you make the law, it's literally your job!" - and they looked at me, blank faced. Imagine large rooms filled with people who mindlessly act within a framework they dislike, whilst being the only people who could actually change it, and not having the will to do so. It sounds like some special type of hell.

I shudder to think how many people sitting in positions of power just mindlessly continue doing a thing because of some form of complacency. Madness.


"Hurr durr we're monitoring the situation."


I have been thinking about this myself, but am still not convinced about how to run untrusted Python code. I'm not convinced that the right solution is to run the code as WebASM [1].

I have been looking towards some kind of quick-start qemu option as a possibility, but the project will take a while.

[1] https://github.com/mavdol/capsule


I see what you mean, but i think there is room for both approaches.

If we want to isolate untrusted code at a very fine-grained level (like just a specific function), VMs can feel a bit heavy due to the overhead, complexity etc


What you really want to do is decouple the sandbox specification annotations from the sandbox implementation backend, yes?


What's the problem with WASM? It's a mature target, and was created primarily, if not solely, for running untrusted native code.


See the linked project at the end: https://github.com/mavdol/capsule


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: