HNHacker News
TopNewBestAskShowJobs

cprecioso

963 karma · joined April 30, 2016

meet.hn/city/41.3825802,2.1770730/Barcelona

Socials: - bsky.app/profile/precioso.design - github.com/cprecioso - linkedin.com/in/cprecioso

---

[ my public key: https://keybase.io/cprecioso; my proof: https://keybase.io/cprecioso/sigs/1X7I415iPxyBFFOSmQxGPcv4TWbhRi-3AHEjw2gU-Zw ]

I'm linking my keytrace.dev: did:plc:h22ajfwlv7pvlhxqzi3dsiaj

submissionscomments
cprecioso··on A preview of x64 emulation on Windows for ARM
Maybe the iPhone model? But definitely not the Xbox one. In the newest console, every part of the console is designed not to trust each other. IIRC, even the CPU instructions are encrypted. This is in order to assure game developers that their games will not be pirated -- but I suspect it might be paying quite a large performance price. I don't think Microsoft or Apple need that much distrust of their own packages in regular computing.
cprecioso··on Pointer Pointer (2012)
Exactly. Looking at the JS code (even minified), you can see that it's calling a setTimeout for effect - possibly also waiting for image load-, but all the data is there already.
cprecioso··on Mapbox-gl-js is no longer under the 3-Clause BSD license
Link to the new LICENSE terms https://github.com/mapbox/mapbox-gl-js/blob/v2.0.0/LICENSE.t...

IANAL, but it seems you can only use the library if you have an active account, and you can still modify the code except billing and analytics. The it links to the TOS ( https://www.mapbox.com/legal/tos ).

cprecioso··on WMR – Tiny all-in-one development tool for modern web apps
Rollup doesn’t import automatically, Parcel does.

`npx`’s specific use case, though, is specifically to run scripts that you haven’t installed - else you’d use `yarn/npm run whatever`.

cprecioso··on Facebook Says It Will Stop Operating in Europe If Regulators Don’t Back Down
So long and thanks for all the nothing
cprecioso··on VLC and Qt – A History [video]
VLC has already been a media catalog app for quite some time - on mobile, but also on the Windows app available on the Microsoft Store: https://www.microsoft.com/en-us/p/vlc/9nblggh4vvnh . This version looks quite a lot like those slides.
cprecioso··on ByteDance asks federal apeals court to vacate US order forcing it to sell TikTok
I much rather enjoy The Verge's headline: "TikTok says the Trump administration has forgotten about trying to ban it, would like to know what’s up"
cprecioso··on Crouching T2, Hidden Danger
Media DRM isn’t dead, as it runs in the Intel IME (DRM is the only part of IME Apple haven’t disabled)
cprecioso··on Neue Haas Grotesk (2011)
I suggest “The Elements of Typographic Style” by Robert Bringhurst. Already the first 5 pages come with a quick guide to typographic elements and history that made me fascinated.
cprecioso··on Ask HN: What is your favorite method of sending large files?
Firefox Send doesn’t work anymore
cprecioso··on How to Write in Plain English
Of course there are. What I mean is that each letter is only pronounced one way.

For example, in English the "o" in "woman" and "women" sounds different, with exactly the same syllabic structure. However in Spanish, every time you write the "o" it is pronounced the same as every other "o". In some accents/dialects some letters will have slightly different pronunciations or intonations (e.g. c turns into s, or s at the end of a word will turn silent), but within that accent, most sounds will remain stably linked to a letter.

EDIT: Of course, I am not a linguist and I'm sure every word of my example can be debunked a million ways; but this is the experience of the language for a native Spain Spanish speaker.

cprecioso··on How to Write in Plain English
Spanish spellings are quite standardized around the world, the “language academies” of each country collaborate together. Moreover Spanish writing is phonetic so there’s only really one way to pronounce a written word.

On the other hand, in Spain we’re famous for “cecear”, that is to pronounce “c” as the z in zombie; while in the rest of Latin America the pronounce it more like an s.

cprecioso··on Telegram files EU antitrust complaint against Apple’s App Store
WeChat is the whole OS. The mini apps are the actual apps people want. China runs on them. Apple can’t afford not to have it, so they’re basically allowed to do (almost) anything.
cprecioso··on Show HN: An alternative RSS reader and search engine for news and content
Amazing! Just a tip, set the <html lang> attribute or browsers will try to auto-detect the language ( https://developer.mozilla.org/en-US/docs/Web/HTML/Global_att... ). At the moment, Chrome is saying it's in portuguese and translating it by default.
cprecioso··on Poland puts computer game “This War of Mine” on school reading list
I’d definitely add The Beginner’s Guide, as a game with a message that would not be possible in any other medium. It’s from the same people as The Stanley Parable.
cprecioso··on Show HN: Quickly check the last 50 songs you heard on Spotify
For anyone curious, the website is basically a UI for the following Spotify APIs:

https://developer.spotify.com/documentation/web-api/referenc... https://developer.spotify.com/documentation/web-api/referenc... https://developer.spotify.com/documentation/web-api/referenc...

The website itself is made with Next.js, and data-fetching is done through the SWR library.

cprecioso··on Show HN: Quickly check the last 50 songs you heard on Spotify
Hey HN! I'm submitting this super small and focused tool which shows you the last 50 songs you listened to on Spotify. It can play them on the browser (if supported) or in connected Spotify clients (if any). It's especially useful if you forgot to note down a song you heard a bit of time ago, for example.

Spotify on desktop already has a "History" option, but it's only available on desktop, and only shows you songs you listened to in that desktop client. My page shows you the last 50 songs, regardless of client.

Hope you find it useful!

edit: BTW, it is all open-source! https://github.com/cprecioso/lastify

cprecioso··on Next.js 9.4 – Fast Refresh, Incremental Static Regeneration
`next build` makes a server that needs to be run with nodejs. Dynamic pages keep being JS code. the fact that some pages are optimized down to html is an internal implementation detail.

`next export` makes a folder of static resources (HTML, packages client JS code, CSS). It also forces every page (even dynamic ones) to compile down to HTML.

cprecioso··on Next.js 9.4 – Fast Refresh, Incremental Static Regeneration
In Next.js there are only four commands:

- `next dev` starts the dev server with unoptimized code and webpack hot-reload

- `next build` compiles all your code to be ready for production (optimizations enabled and not hot-reloading, pages that aren't dynamic server-side get turned into regular HTML, etc)

- `next start` serves that production-ready bundle, with a bare-bones (but production-ready) server

- `next export` forces every page to compile down to HTML and gives you a folder of static markup and js you can upload to any static host

So yeah, `next start` is indeed production-ready, and similar to what major websites already do. (Also there's no soft, hard, or default dependency between webpack and react, but the starter template uses it to make life easier for devs)

cprecioso··on Pointless
Yes! LiveScript was so fun! I’m pretty sad none of the JS dialects from that time (CoffeeScript, ICS, Coco, LiveScript...) could hold a candle for how much TypeScript improves the experience; or that none could integrate it in a sensible fashion.
cprecioso··on How to trim video clips instantly without reencoding
Also concat videos one after the other!
cprecioso··on Server-Side Only React with Next
I will definitely use this approach in some of my Next sites, but I got a bit sad that the writer’s removing React but then has to go back to vainilla JavaScript and global libraries to recover the functionality they’ve lost.

At times like this is when I most think of Svelte’s aspiration, to remove the framework and compile its uses to regular DOM calls. It just bothers me so much with their magic syntax.

PS: Maybe something similar could be made for React Hooks? If a component doesn’t use any hooks it’s marked as static and doesn’t need the framework or to be re-hydrated. If it uses any, we only need to create a discrete React root for that component and its children.

cprecioso··on “Just walk out” technology by Amazon
In the Netherlands, the two leading supermarket chains have handheld barcode scanners. You can walk around the store, scan whatever you put in your bag as you do it, and then the cashier just reads your scanner and charges you.

There are random spot checks of course, but I don't think this would work elsewhere, not with the high level of citizen trust that there is here. I'm sure they lose some money to people enticed by easier stealing, but the flow of people is so much faster that it's probably worth it many times over.

cprecioso··on WireGuard Gives Linux a Faster, More Secure VPN
What is the difference between this and ZeroTier? https://www.zerotier.com/
cprecioso··on API responses should be signed
While I agree with your point, and think AMP should not need to exist, Signed HTTP exchange might actually be great for other types of very cheap, dumb caches or CDNs that only have to rehost one file to cache a page, and not even serve it through SSL.

I know I might use it as a web designer to send interactive snapshots of how the website currently looks/works to the client; instead of using an ephemeral URL and a tunnelling/proxy service.

cprecioso··on API responses should be signed
Reposting the comment as top level, as I haven't seen it mentioned anywhere.

Google has developed Signed HTTP Exchanges https://developers.google.com/web/updates/2018/11/signed-exc... that can then be bundled https://web.dev/web-bundles/ .

Its main motivation is the rehosting of AMP pages while verifying that the cache hasn't tampered with them; but it could be extended to sign and bundle API calls for redistribution if needed.

cprecioso··on API responses should be signed
Then this new technology might be useful

https://developers.google.com/web/updates/2018/11/signed-exc...

It's part of a family of technologies developed by Google to rehost AMP pages without losing the origin.

cprecioso··on SapphireDb – Open-Source Alternative to Firebase
Network Load Balancer
cprecioso··on Forced migration to Google Sheets API v4
I am not claiming that this would be a perfect solution, but Google Sheets (and Docs, Slides, Forms...) allow for [Apps Scripts](https://developers.google.com/apps-script/).

Once you get the hang of it, and use tools like [clasp](https://github.com/google/clasp), you can create semi-complicated automated workflows; which I still find delightful.

For one of my jobs, I created a form, that either on submit or on demand, creates a PDF with the data based off a template made with Slides, and emails it to me and to the person who filled it.

The code is as concise as the API allows, that is, not much. But it's saved us the need to have a manual workflow, or setup a server just for this service.

cprecioso··on The Unison language
Content-addressed, immutable code? Reminds me of https://thedailywtf.com/articles/the-inner-json-effect
← PreviousPage 5 of 9Next →