HNHacker News
TopNewBestAskShowJobs

npn

260 karma · joined June 7, 2021

submissionscomments
npn··on Show HN: Turn Markdown into React/Svelte/Vue UI at runtime, zero build step
I'd rather convert them at build time, thank you.
npn··on It is worth it to buy the fast CPU
it is not about the chips or cores. it is about the pcie ssd that you torture it with high temperature for a long period of time due to a laptop poor cooling.

or the battery, it does not like high temperature either.

you only regret it when it happens. and it will happen.

npn··on Materialized views are obviously useful
This is silly. The proper way is to keep a task_count field on projects table and update it on create/delete action. Way more flexible and perfomant.
npn··on It is worth it to buy the fast CPU
I find it crazy that some people only use a single laptop for their dev work. Meanwhile I have 3 PCs, 5 monitors, keyboards and mouses, and still think they are not enough.

There are a lot of jobs that should run in a home server running 24/7 instead of abusing your poor laptop. Remote dedicated servers work, but the latency is killing your productivity, and it is pricey if you want a server with a lot of disk space.

npn··on Grok 2.5 is now open source. Grok 3 will be open source in about 6 months
Open source those models would enable major lawsuits for copyright violation. And I doubt that they own the rights to the training sets either way.

Open weight models are still useful to extract knowledge from. With much lower cost compared to hitting the API

npn··on How Not to Buy a SSD
I have bought like 20+ used enterprise ssds from taobao (for my various PCs). Only a single one dies because I forgot to add the heat-sink. I think the most important thing is how trustworthy the seller is.
npn··on Show HN: Bolt – A super-fast, statically-typed scripting language written in C
There are likes 10 similar languages out there with the same promise, why I need to specifically choose this one to contribute?

The point is pretty simple, if the author is too lazy to do some basic research about this common problem, he is probably too lazy to do other important stuff, too.

Time is short, there is always new languages out there to test.

npn··on F-Droid build servers can't build modern Android apps due to outdated CPUs
Because some dumbass decided to ban Huawei before, forcing Chinese brands to split itself to multiple sub brandings that operate independently.
npn··on Show HN: Bolt – A super-fast, statically-typed scripting language written in C
I don't understand why people still choose the syntax `import xxx from yyy` in the current year. It is a major source of complaining for languages like python or javascript, because it makes autocomplete does not work well.

make me instantly lost interest in the language.

npn··on We'd be better off with 9-bit bytes
This is such a dumb article. All of those examples are nonsense. We can also have thousands of examples about how 6 bits is enough or 10 bits is just right.
npn··on Open models by OpenAI
It is not a frontier model. It's only good for benchmarks. Tried some tasks and it is even worse than gemma 3n.
npn··on Building supercomputers for autocrats probably isn't good for democracy
I'm just here to remind all of you that US democracy is a terror for the whole world.

You have already killed ten millions people and you still do not have enough?

How much bloodthirsty you are?

npn··on I failed a take-home assignment from Kagi Search
What I'm saying is that it should be able to interact with all the email services out there, not rely on a single 3rd party service for the functionality.

Sure, for the demo they can choose postmark as a mockup server. But he should keep in mind that postmark is not a hard requirement, eventually they need to switch to something more controllable/cost effective.

Failing to knowledge that is already a considered failure.

npn··on I failed a take-home assignment from Kagi Search
Is it just me or he missed the point completely?

Look at all the third party services he uses! Nobody sane would pick that solution. That would be a completely maintainment nightmare.

He did not write an email client, he wrote a wrapper to some email client, which handles all the heavy lifting.

At the very least, write something that interact with a real (or fake) SMTP server. Other things are just cherry on top.

npn··on Zed: High-performance AI Code Editor
an editor that made by mac-only developers and put macOS support at is highest priority will be always shit on other OS.

sorry, but to me it is just pure garbage.

npn··on A faster way to copy SQLite databases between computers
???

Why not just compress the whole database using `gzip` or `lz4` before rsyncing it instead? `zstd` works too but seems like it had a bug regarding compressing file with modified content.

better yet, split your sqlite file to smaller piece. it is not like it needs to contain all the app data in a single sqlite file.

npn··on Shame and Revolution: Vietnam’s potent and storied anticolonialism
> Imagine if South Vietnam had remained independent. If it had become a thriving prosperous free democracy like South Korea or Taiwan.

will never happen.

it annoys me to no end that ever americans out there always assume that the war was between north and south vietnam, while in reality it was not. VCs were mostly southern people, the conflicts were mostly between south vietnam and the National Liberation Front of South Vietnam which was found and led by southern vietnamese.

which mean the conflict would never stop, even without the help from north vietnam or soviet.

npn··on Crystal 1.16.0
If you write some script that run for 30 minutes or so then Crystal is a great choice.

before using crystal I mostly used Ruby for scripting, but there were a lot of problems - the program often crashes after running a while due to typo/nil handling, causing a lot of time wasting - it was too slow for my case, which involving with dealing with large amount of data - doing things in parallel (fetching websites, parsing multiple files) is a lot of work, you need to use external gems for the task, and it is not always the way you want it to do

there is a lot of works spent on crystal to make it enjoyable, you almost never need external libraries to do stuffs. the standard library is big and helpful.

npn··on Crystal 1.16.0
>Can't rely on AI either, as it constantly confuses it with Ruby.

I'm currently using github copilot with claude 3.7, mostly for auto complete, work pretty well although sometimes it does return ruby variant of the code (it call the ruby methods that not existing in crystal)

but for my use case, copilot works pretty well.

npn··on Crystal 1.16.0
> gc latency I don't know, never care much about it, haven't cause any issue the 6 years I run my web services using Crystal.

> long running programs depends, I write several services that running 24/7. Some runs fine for months, some just refuses to response after a few day. Too busy to track for the cause so I just automatically reset the affected services at 4AM.

npn··on The role of developer skills in agentic coding
Big words from one who does not code.
npn··on DeepSeek Open Infra: Open-Sourcing 5 AI Repos in 5 Days
I don't really care. True intelligent discussions happen in some closed groups everywhere. It's been this way since forever. Only open discussions always attract unwanted users.
npn··on Svelte 5 is not JavaScript
It does thought. You can't assign new meaning to $ and $$ and expect that it works flawlessly with magic statements and the stores.

At the very least the conversion between the versions will be very messy and error prones, especially using the migration tools.

Not to mention the designs of runes was still unstable back then. Heck even now it is still very awkward to use runes with sveltekit. You need $state and $effect everywhere for the page data.

npn··on Svelte 5 is not JavaScript
To be fair, the reason svelte 5 is that awkward to use is because they still need to be compatible with svelte 4 code.

Without svelte 4 compatibility, you can just replace `$state` with `$`, `$derived` with `$$` or even some simpler mechanisms. Heck, I have vague intuition that we can reuse the `$: ` statements someway too, and still keep the new deep reactivity feature.

Might be svelte 6 will give us the proper answer. Or some newer fancy framework will take the hint and do it sooner.

npn··on Svelte 5 is not JavaScript
I'm so tired of those comments. It's almost always come from those who refuse to research before they talk, only echo what they learned from other people.

Do you know why there are new frameworks, new versions every time? Because web is a moving target. New js/css/html5 features are released every day and the libraries have to update to adopt them.

Back in the day you do not have css variables, so you have either use sass and do all the math inside the preprocessing process, or crazier, using those shitty css-in-js libraries to calculate css properties on the fly. Nowadays you can pass around the variables and it can cover almost all the case. In able to pass the css property to the component, you need to improve your framework.

Another example is html5 history API, back in the old days people implemented link components in SPA with buttons (hilarious but it happened), only after History API is introduced there raised the need to manipulate the history properly, thus another rewrite issued.

before that, ES5 introduced `class`, proving yet another way to write js code, which in some situation make cleaner code than the plain old js functions.

everything in the web is moving, new nice things are introduced every month, if you want to create a modern and performant web application, you need to keep up with the new fancy things, frameworks are no exception for that.

npn··on We were wrong about GPUs
> The biggest problem: developers don’t want GPUs. They don’t even want AI/ML models. They want LLMs.

No, I want GPU. BERT models are still useful.

The point is your service is too expensive that only one or two months of renting is enough to build a PC from scratch and place it somewhere in your workplace to run 24/7. For applications that need GPU power, usually downtime or latency does not really matter. And you always add an extra server to ensure.

npn··on DeepSeek gives Europe's tech firms a chance to catch up
>What am I missing?

Like everything. You do not even mention your machine spec, so I'm assume you just pick the ones that fit, which probably the quant versions.

Quant versions of the "small" models do not perform that well. Not the way you expected them to be.

npn··on Israel, Hamas reach ceasefire deal to end 15 months of war in Gaza
How many square kilometers of land does Israel gain this time?
npn··on Ntfs2btrfs does in-place conversion of NTFS filesystem to the open-source Btrfs
I tried this one before, resulted in a read-only disk. Hope it improves since then.
npn··on Learning to Reason with LLMs
"Open"AI. Should be ClosedAI instead.
← PreviousPage 6 of 9Next →