Better HN
topnewbestaskshowjobs
Log inSign up

nirui

2,087 karma · joined Jun 12, 2019 (7y ago) · 706 submissions

You know, I figured if I run this undefined behavior long enough, eventually one day that server will just jump down the shelf and fix the red black tree by itself.

[ my public key: https://keybase.io/nirui; my proof: https://keybase.io/nirui/sigs/oi8UKCZcYxKij-Pi43fDt35S1cHWmEKrFeMHZ4wW5Mo ]

Submissions

comment 3y ago · link · parent

I'm never an user of ByteDance/TikTok, but somehow this makes me sad for TikTok.

If you don't know, many Chinese companies sees the "overseas market" (mainly US and EU) as a backup plan. If something went wrong in China (say the Jack Ma situation during the past few years, and many other unsound ones), the leadership of those companies can just pop to another country and then party cannot reach for them, which is what ByteDance CEO did.

Now, without this market option, these companies can only dig in in China now, probably their eventually their own graves too, but business is better than no business, and overall China treat them more fairly this time. Even Jack Ma has returned to China just few days ago, he probably smelled something.

You might think, "wow, good plan, hurts China very well". Well... you hasn't seen what it would be like when a Chinese company gone full-loyal towards the party. The party is probably writing love letters to who proposed the act. A win-win for the party and the US, I'd totally say.

comment 3y ago · link · parent

I'm genuinely curious on which part of the comment above triggered such down votes, and why. Not that I support the ideas mentioned, I'm just curious.

comment 3y ago · link · parent

It's odd to me that the Cyberspace Administration of China or other "related departments" are really quiet on this. Isn't this is one of the very things that they should be keeping their watchful eyes on?

Add to the funniness, there is a report posted by CNCERT just last month on their website showing their tests on Chinese online shopping apps[1] which includes Pinduoduo. If you see their investigations and numbers, you probably think Pinduoduo is fine (really, take look the report), LOL. (Note: in case you're wondering, corruption on a small routine report like this is very unlikely, but CNCERT probably did not look very deep into the rabbit hole at all)

[1] (It's obviously in Chinese): https://www.cert.org.cn/publish/main/8/2023/2023020210325795..., https://www.cert.org.cn/publish/main/upload/File/shoppingapp...

In the end, you still need independent experts such as like Liu Huafang to alert the country through public exposures, just like, you know, what has happened few years ago.

comment 3y ago · link · parent

If I would guess, this kind of wording reflects a view which is quite common in Silicon Valley companies: an employee is an (human) asset for the company to utilize. Once the skill of the employee is no longer needed, they can be dispose of. If I may guess it further, this view might be shared across many high-paying industries.

Tech companies in China had similar mass layoffs in the past few years, which prompted many highly skilled tech workers to seek formal opportunities in state controlled companies/entities. Why state controlled companies you might ask, well, because those companies rarely perform this type of layoffs. Once you're one of their formal employees (not employee of contract), you're set safe for life. And even if some "difficult change" has to happen, those state companies will try to compensate the effected workers with other (often equal, sometimes better) opportunities.

I know Chinese state controlled companies are heavily criticized by western view points, but you have to admit, they treats their own people fine.

comment 3y ago · link · parent

It depends on how many competitors will enter the market. At current stage, I would say the chance of them to increase the price is high. The current price is so cheap, it might as well work for a saturated market, which is not what the actual market is currently at.

I guess their current pricing is designed to attract new users to bring use cases/ideas to them, which would be a field where their the imagination is lacking.

comment 3y ago · link · parent

> While the product has a loyal following, over the years usage has declined. So, on July 1, 2013, we will retire Google Reader.

Back when Google was an underdog company in the market, they were desperately capturing the market share, and their strategy was basically throwing a lot of things at the wall and see what sticks (in a calculated way). I'd say Google Reader was one if the lucky coincidence they hit.

Sadly, after Google stabilized at it's market position, they no longer need these loss leader products, so they just removed it. A completely normal business decision, if you give it a look today.

I often use this as a reminder when I found myself developed a fan-altitude towards a company, so I can convert my altitude to "Nice product, I hope it make money" then proceed to use their product with an understanding that maybe one day I'll jump to another ship.

comment 3y ago · link · parent

I hope they eventually give the word Open another meaning, for example, they can make their technology and method more open (source, maybe), and/or create a standardized platform to allow people to freely play with and extent their technology without the fear of big daddy restriction.

On the other hand, if they ended up chooses a different route, go patented everything and starts suing, then maybe it's better off for them to remove "Open" in their title just to make things more clear.

comment 3y ago · link · parent

> If you're delegating all of your coding skill to the framework and expecting it to just magically work no matter what dodgy code design you throw at it then you're going to build a shitty app.

Not to disagreed with you here, but there are many frameworks out there which either claiming themselves as "full-stack" or trying to be as full-stack as possible.

The developers who uses these frameworks might just expect "(delegating your code to the framework) is how it suppose to be used"(, while blaming people who write "raw" JavaScript code as "hacky").

This is a problem which will occur whenever you want to standardize the workflow as well as the knowledge base for your team. Some approach is discarded in this process and what's left in the end are often "common practices" which nobody has reason to reject. If the "common practices" is to let the framework to do it, then that will be that.

comment 3y ago · link · parent

If it's truly a mistake and I were tasked on handling this issue, I'll probably publicly notify the US about the the incoming balloon and tell them "feel free to shot it down before it reaches the US to prevent the balloon from causing any trouble".

The silence before the event went public tells me another story through.

comment 3y ago · link · parent

Is it weird for me (a Chinese) to reply this?

I don't really think the three-buses-wide balloon is a good idea for spying since everybody (including the radar) can see it coming, but I imagine this will be quite effective for search and rescue support, battlefield surveillance and all the other short-term missions that could put such disposable flying electronics better good use.

If I remembered it correctly, China Mobile has tested a drone-based base station which can provide cell service over a short period of time, and they were using the system during a earthquake rescue with some success. Maybe using balloon is an better idea.

PS. Funny thing. I was planing to build and release a water probe since I live very close to the Yangtze river. Thought I can probably measure the water speed with the probe by letting it send back it's GPS position, plus some pretty pictures via cell/SMS. I haven't started the project though, due to many hurdles. One of them is to figure out what trouble I can get myself into after the probe encountered something it shouldn't have (because I have no control over it after release). I don't really want to have a chat with CIA, or even worse, the water police (yup, and they got jet boats).

comment 3y ago · link · parent

> you can't expect to feel the same about someone no matter what because if that person you once had is gone, what is left to love? it is merely your imagination, your memory. it simply turns to grief.

You can still love the good moments, the good memories and all the happiness comes with it.

One of the thing that I grown to accept very early in my life, is the fact people change, so as their promises. Love is not a contract, it's more of an emotional statement, a statement which only applies to a specific context (sometime very narrow).

If love needs to be dissolved, make sure to do that in a fair manner so nobody gets hurt (at least not too badly), so the good moments in the past will always be good moments instead of painful memories.

comment 3y ago · link · parent

> Much smaller and lower power and heat than a desktop, yet much more powerful than a Pi, Jetson

This brings me to my biggest complain about (all kinds of) Pi(s): while running a Pi 24/7 CAN save some power compare to a 24/7 running T430, the T430 can do Wake Up On LAN, which means you can just turn it off when it's not in-use and turn it back on remotely based on demand. Many (if not all) Pi(s) can not do that, you have to run it 24/7.

Of course there are Wake Up On LAN power switches, but they are hacky and require extra care to setup properly. And if you did it wrong, you might risk losing data or damage the storage on the Pi.

comment 3y ago · link · parent

The article only provided one small example, and the code is not really that ugly. There are many third-party projects/libs that exposes way more ugly APIs, specially those which heavily utilize generics and `where`s. These things, while small and can be improved individually, wears programmers down quickly.

The syntax design of Rust is adding to the situations as well. For example, Rust is probably the only language that makes me cautious about the usage of semicolon, as you might have loads of unsound problems if you misused one.

My experience with Rust has been generally great, but I think these small details really deserves some thoughts from the Rust team.

BTW: I also wouldn't really trust those people who have to navigate through all the quirks of something, and then calling their experience "Great". There are people who memorized the entire `:help` book of `vim`, just so they can use the editor at hyperspeed instead of lightspeed. Those people are monsters, they can eat RAM chips and then spit out the bits cache line by cache line. You give them a grab of sand, they'll make a computer out of it and play DOOM on the computer. So of course those people well have great experience on almost everything (Or they just been polite, like me)

comment 3y ago · link · parent

A good developer knows how to utilize the features provided by the tools while endure it's limitations.

Tooling grow as the ecosystem grow, and modern hardware features don't necessarily give you a good game. There are many good games out there don't rely on modern hardware, and yet they are still fun to play.

It eventually comes down to how smart the developers are, not how many modern features gets utilized.

Plus, with help of game engines, a game can run on multiple platforms, including both native and WebGL. Some company might be interested in expanding into this territory.

comment 3y ago · link · parent

Not an American so I probably should not complain. But when I opened the page out of curiosity for the first time, I found many terms that require explanations, such as what is AGI?

The "What Is IRS Free File?" section below it explained most of my questions, so I think the "What Is IRS Free File?" section should exchange it place with the "Choose from IRS Free File" section. This allows the reader to have a clearer mind when preforming the filing process.

Just my two cents.

I wouldn't take the matter lightly though, because based on my understanding and what I've learned from the movie Everything Everywhere All At Once, IRS tax filing is a serious manner thus the tools designed to do that should be more user-friendly. I don't think getting kungfu-attacked by the IRS lady is enjoyable for any American (as well as going to jail/getting fined for misfiling).

comment 3y ago · link · parent

Don't stop there. You can also dynamically update the game program by sending WASM/JavaScripts via WebSocket/WebTransport.

WebGL games will have a bright future.

Also, this game is very well designed, I found all 5 secrets and I loved the process :)

comment 3y ago · link · parent

I think "either this or that" type of thinking is unfit for the topic. A better strategy is to setup a priority: making the name descriptive should be very close to the top, and making it also cute should be somewhere down the line.

Also, cute is really subjective. Personally I think "Continuous Integration/Continuous Delivery" is cute and "cli-anal-stats" is very cute, even through you might not think of it the same. The advantage of descriptive names is that it's more recognizable, you read the name, you knew what they do, and that's cute for me.

comment 3y ago · link · parent

By "ease of use" they probably mean that the ecosystem is so advanced, one can easily write a HTTP handler in the language/framework of their choice.

In reality through, now days it's a nightmare to implement a HTTP server/client (at least for individual developer like myself). HTTP/1 is already a struggle by itself, HTTP/2 is much worse with all the new concepts & HPACK etc it added, and then you have HTTP/3 which introduces an entire UDP transport for you to implement. There is no easy part in HTTP if you choose this route.

comment 3y ago · link · parent

> Officials accused the pair of feeding feral cats near the courthouse, claiming it had resulted in thousands of dollars in property damage.

Can they prove it? I would love to see the evidence showing feral cats causing thousands of dollars worth of property damage near a courthouse as a direct result of the two women feeding them.

It makes a good video, you know? The cats finished their free meals provided by the two evil witch women, then they gears up all riot geared and start throwing molotov and grenades near the courthouse, counting dollars while doing so. I would totally watch it even if it's longer than 10 minutes.

comment 3y ago · link · parent

> Infinity pool; car lift; cinema; iPad-controlled fountains; a full-size replica of James Dean’s motorbike; candy room… The toilets (in all fifteen bathrooms) cost over five grand each. (Featuring Tornado Flushing! Just $5,600!)

Talking about why I'm not hard at work... Nothing mentioned on the list motives me towards money at all. Just take a look of the photo of the house, I don't want to live in a place like that even if I have the money. And the motorbike? Dude, have you read the news about organ donations today?

The End Poem (https://minecraft.fandom.com/wiki/End_Poem) was the only text in the game that I completely read through. It rolls up, and I sat there read the entire thing. I'm the kind of guy who starts to load another game while the ending cut scene is still playing. GLaDOS starts to sing again? Time to load up Left 4 Dead and find a server. And yet, I read the entire End Poem of Minecraft.

That text makes me feel that somebody behind Minecraft actually cares, understands and put hopes in their game to make people inspired. It's kind sad that the truth comes up to be this.

comment 3y ago · link · parent

And this, makes all the dark humor in this thread even more dark.

comment 4y ago · link · parent

Sort of reminded me the whole social media saga. The platforms should connect people around the globe and bring the age of understanding, love and rainbows. But instead, it turns out people really love rants and shit.

Yeah, you might argue that some bad actors took advantage of the tech and turned it into the endless of darkness. But I think, the fundamental reason here is simply lack of creativity.

You give people a protocol that is really good at distributing (large) files, guess how they going to use it? The cheapest use cases comes on top, of course. Make something both productive and beneficial is hard man!

comment 4y ago · link · parent

It sounded bad, but how much donations that you'll receive don't actually always link to star counts. Stars on GitHub is more like "how many people added this project to their bookmark" than anything else.

That said, as how things goes, there are "high value" projects as well as "low value" ones. If you want to make money out of your open source project, target those "high value" use cases might help. Some fields just don't make a lot's of money even if you tried really hard.

comment 4y ago · link · parent

This is actually something to worry about.

Most Mastodon instance are hosted by individuals. Granted, I would assume most people are hosting the service with good faith, but there is no binding way to ensure that. With Twitter, doing something feral will (at least was possible to bring) doom to the company and it's investment, which is far bigger balancing factor than just someone's honesty.

I'm not promoting Twitter here, but for Mastodon, something needs to be done to protect the integrity of the content posted, so the admin cannot modify it easily (moderation can still be done through deletion).

comment 4y ago · link · parent

I must've set it up wrong. My Twitter home page is filled with posts that I don't care from people I don't watch, Twitter repeatedly recycles and then pushes those content to me because it thinks I'll be interested. How arrogant.

In my case, Twitter already has an algorithmic timeline.

Now I read my daily news update from few subscribed newsletters, websites as well as r/worldnews. These are far better sources of information than Twitter.

Don't get me wrong, other platforms that I enjoy such as YouTube and Reddit also has algorithmic timeline, but I've never seen such bad implementation before straight to the level of annoying and begging for uninstall.

comment 4y ago · link · parent

The author of the article tried hard on distinguish Moderation from Censorship, here is something I want to point out:

When you talk about censorship, you must also talk about freedom of speech which usually is a well-defined legal term in countries that supports it. On the other hand, moderation is a form of management. Depends on why and how the action is carried out, moderation could be better or worse than censorship.

And,

> If the Chinese government couldn’t censor - only moderate

This is exactly how most censorship is implemented in China, through moderation. See the funny part there?

The point is, I don't think the word Moderation must inherently better than Censorship, it all depends on the why and hows.

comment 4y ago · link · parent

> ... but are motivated by altruism, passion, recognition, etc.

The real question here is, is that sustainable? No body can survive on just these three, that's the reality here.

Altruism dies down, passion runs out, recognition fades off. Then what? Eventually, rationality kicks in and then you'll have a Sorry letter detailing why some repository that you probably already forgot ever existed now needs a new maintainer.

Don't get me wrong, I'm not a completely self-centered person. In fact, I created a few FOSS projects myself, and I also put in my efforts just to make my users happy (well, some of the time), it's all done free of any charge. But to me, altruism is still extremely harmful, and should almost never be relied upon. On the same note, passion and recognition too must be justified to be productive, and then verified to be effective.

Also, let's don't ignore the fact that, even though some founder/maintainers of FOSS projects don't actually need to be reward by money, monetized support is the only realistic help most people welling/capable to contribute. So if the founder/maintainer accepts it, why not?

comment 4y ago · link · parent

> Now they added some very very cheap plans as well which is fantastic for them

Can you share a link to their new plans? The pricing listed on their old page (https://www.heroku.com/pricing) still showing $7/mo as their cheapest option and it's already an overkill for my applications. In comparison, the cheapest option on fly.io is $1.94/mo (https://fly.io/docs/about/pricing/).

Note: I know $7 is the maximum cost, but by default their hobby tier app will not sleep, so I guess it still costs $7/mo to run in the end?

Thanks!

comment 4y ago · link · parent

kernel.org still showing 5.19.12 at this moment. Guess it will be updated soon :D

comment 4y ago · link · parent

GTK can run on Windows, Linux and Mac. It's open source (LGPL), fast enough and the ecosystem is fine. QT is another one.

The truth is, Electron is easy to use, quick to hire and cheap to build on, that makes it the best choice for many companies, even when the user might (highly-likely) hate it.

1
131415
24