HNHacker News
TopNewBestAskShowJobs

npn

260 karma · joined June 7, 2021

submissionscomments
npn··on Building Artificial Life Simulations to Learn Crystal-Lang on a Steam Deck [video]
I generally do not watch programming video, as it is almost always a waste of time. But this one is interesting enough. The author took a lot of challenges for making the content: - Learning a new language (crystal lang) - Developing using Steam Desk - Visualization and stimulation Overall it was such a nice video with so little views that I thought it should have more exposure.
npn··on CSS Tip: An em isn't an "m", but an ex is an "x" (2012)
I would rather using rem for line height instead. It is easier to maintain vertical rhythm.
npn··on Large language model data pipelines and Common Crawl
You want to store hashed value in database as effectively as possible, hence the first 8 bytes.

Though I think a 64 bits hash algorithms might be more suitable than sha1. Personally I use fnv-1a for hashing (not the fastest but trivial to implement) instead.

npn··on Old dogs, new CSS tricks
It is not hard to keep track of new css/js features, as the articles pop up very often, e.g: https://developer.chrome.com/blog/whats-new-css-ui-2023

Most of us just decide to ignore them, because a significant portion of our userbase stills stuck with old devices. People who agree with this article probably never get accessed to any website statistic dashboard.

npn··on Old dogs, new CSS tricks
This is a bad article.

> And while support for Container Queries is green in all modern browsers, people still seem reluctant to go all-in, fearing they could break something as fundamental as site layout in older browsers.

Don't you know there are still a fuck ton of people that are still using the old iOS versions with their old phones? I have plenty of them, and they are long term supporters that I just can't shut them off.

There are new css features that are almost harmless and do not affect the usability, some css features on the other hand...

npn··on AI Ruined Quora
Quora was bad when I visited it in 2021. So what year it was good again?
npn··on History of Vietnamese Typography
Picking non convenient consonants works wonders for us now as we can mix almost freely with many English words without causing any confusion.
npn··on History of Vietnamese Typography
> Nothing in it makes sense to me

Understandable, because it was based on how it sounded, not based on the meaning of the compound characters. So it only makes sense for Vietnamese people.

For example, from this wikipedia image: https://en.wikipedia.org/wiki/Sino-Vietnamese_vocabulary#/me...

The first word "núi" (mountain) is made up of 山 and 內, 山 is the meaning of the word, and 內 is how it (mostly) sounds. Without knowing Vietnamese it is impossible to guess the meaning.

npn··on History of Vietnamese Typography
It is not that hard. Nom is pretty much Chinese word meaning + Chinese word pronunciation.

Though for foreign people it will be a challenge.

npn··on Crystal 1.11.0 Is Released
Crystal is a nice language to write utilities with. Usually with utilities you want to distribute it to other people, many of them can't just install the whole toolchain to run the code. So naturally we want a fully portable windows exe file that can be run independently.
npn··on Odin Programming Language
And jakt, the language made by SerenityOS team.

It has a very pragmatic design.

npn··on Odin Programming Language
More like a mix of vlang and JAI.
npn··on The Lack of Compensation in Open Source Software Is Unsustainable
they own the project, not you. open source licensing does not mean giving up the authorship.
npn··on The Lack of Compensation in Open Source Software Is Unsustainable
If he sold his OS like other US companies then his networth would be $50B not $50M.

You can argue that Linux can't reach that kind of successful if it is nonfree, but there were a lot of poorly written OS that sold millions.

npn··on The Design of SQLite4 (2014)
Yes, create your table with a trailing strict statement.
npn··on The evolution of expert communities
> i.e. I follow woodworking but the communities are stale because there is rarely anything new. Woodworking is about old as a human topic can get. It’s just new memes now.

wait what? have you guys already discuss all thousands type of woods, each with its own characteristics, application and unique treatments?

you also discussed in deep all the exotic tools the far east has been using for thousand of years?

and all the wood joinery used by Chinese, Japanese and Vietnamese people? there are like hundreds of those which with different usage.

are you saying that your community has already discussed all of that already? that's really awesome!

npn··on Gnome Receives €1M from German Government
Good for them, hope this will help them hire some one with more motivation
npn··on RegEx Crossword (2013)
Huh, is there more than one? This looks different from my memory
npn··on Some Pirate Sites Received More Visitors After Being Blocked
For me those were some viral videos from the older internet. It is not because those videos violate YouTube policies or anything. The uploaders just closed their accounts. Some videos just exist in my memory now.
npn··on Some Pirate Sites Received More Visitors After Being Blocked
already there, as there is no guarantee that a video will exist forever on Youtube.

many people hoard youtube videos just because they fear that those video will disappear when they need them.

npn··on YAML: Probably not so great after all
because a sane people would delegate the task to a separated script instead.
npn··on Where do you discuss computer related stuff now?
Nice observation. I also noticed that the quality went downhill when HN applied strict moderation.

Sure this place looks friendlier now, but it feels empty as most competent people had already left.

npn··on Where do you discuss computer related stuff now?
HN is a laughing joke now, compare to the old days. For every popular thread there are at least 50% of comments are outright wrong, or unimportant bike-shedding.

To the point some people created a satire website called n-gate some years before just to laugh at HN. And for sure for every top place popular HN thread right now there will be a lot of people posting the link just to laugh at the comments.

npn··on Welcoming Shopify as a Ladybird sponsor
A list of videos when Andreas Kling uses the landing page of Shopify at the sample to implement new features or fix the broken ones, mostly SVG/layout related.

Like it was stated in one of the video, Shopify uses a lot of modern cutting-edge web technologies, so display the site correctly is quite the challenge. You should watch some of his videos if you have free time, it is a pleasant surprise of what Ladybird can do after just some dozen months of development.

npn··on Welcoming Shopify as a Ladybird sponsor
https://www.youtube.com/@awesomekling/search?query=shopify

Maybe this is one of the reason?

It will be awesome if Ladybird can render Shopify perfectly, not to mention all the free exposure.

npn··on Svelte 4
the distinct difference between Vue and Svelte is html in Vue need to be wrapped in `<template>` tag. There is no such restriction in Svelte SFCs.
npn··on Svelte 4
Syntax highlighting and code formatting sometime break because Svelte file is single file component format, which mean it has script, markup and style in a single file. It's rather complex to parse it right, especially when you use regexes to do the job like in VS Code.

It's just the problem with the VS Code Svelte extension, not the framework itself nor because of Typescript. Also for my case, it happens because I prefer to not use semicolons in my code, not because it is typescript.

npn··on I have received a $100k sponsorship for Ladybird browser
It is transpiled to C++.
npn··on Svelte 4
Then it's wrong too. Because it is perfectly valid js code. It is just that they repurpose the label syntax (used for breaking out of inner loops) for the reactive statement.
npn··on Svelte 4
Could be the plugin was broken somehow. Happen all the time for me. Even now the syntax highlighting and code formatting feature would break if I write the code the wrong way.

from my understanding the plugin does some clever tricks like insert some dummy code or create some dummy files to be consumed by the typescript language server. so it is not guaranteed to be correct 100% of the time.

← PreviousPage 7 of 9Next →