HNHacker News
TopNewBestAskShowJobs

zzzcpan

4,245 karma · joined December 27, 2011

submissionscomments
zzzcpan··on How to detect web bots?
This is completely irrelevant to the conversation about technical solutions. My example is just about probabilities and how to use them for bot detection.
zzzcpan··on How to detect web bots?
And your point is?
zzzcpan··on How to detect web bots?
I somewhat agree, but those can be good signals though, you just have to gather statistical data on them from known good users and combine with other signals. Like what are the chances for an agent to be used by a real person if it doesn't download images, lacks mouse movements and, for example, is coming from a datacenter? Obviously pretty low. The same way access patterns alone don't give you much, but are good against scrapers when combined with other signals.

And putting captchas or logins on anything you have to protect from bots also "protects" from real people, most of them simply leave and don't bother with those thing.

zzzcpan··on 64 Core Threadripper 3990X CPU Review
What ease of concurrency are you talking about? See concurrency bugs in Go paper: https://songlh.github.io/paper/go-study.pdf
zzzcpan··on 64 Core Threadripper 3990X CPU Review
Elixir uses slow interpreted vm, you can't put it into the same high performance category and golang, java, c++ and rust can't do well on massively multicore systems on their own, you would have to fight them to do it, ditch idiomatic ideas and effectively build your own runtime and use your own concurrency model (not shared memory multithreading!). So they are more like every other language that is somewhat close to the primitives that OS and hardware provide, not actually well suited for the job itself.
zzzcpan··on Wacom tablets track every app you open
iPad doesn't run professional software that tablets are mostly used with.
zzzcpan··on Wacom tablets track every app you open
Yes, it doesn't apply to Linux. Also on Linux libinput and synaptics drivers support wacom tablets, so you don't necessarily need to even install linuxwacom (in my config I do "xinput set-prop ..." for both cases to setup pressure curve).
zzzcpan··on Destroying C with 20 lines of Haskell: wc
The only way I can think of this could be true is if you made a mistake in setting an env var.
zzzcpan··on Destroying C with 20 lines of Haskell: wc
I got 5.6x speedup on just wc alone with:

  export LANG=C
(obviously in both cases with prewarmed filesystem cache)
zzzcpan··on Dashlane's Super Bowl ad proves password managers have arrived
What "security" could you possibly get from password storage with subscription and automatic updates that you can ignore the risks involved?

You are giving a centralized 3rd party identifying information about you because of the subscription, control over your passwords because of the updates and you have to believe and trust it's never going to deny you access even without payment, issue an update to steal those passwords or be hacked by someone who does the same or hacks you through it. Oh, and they can do all the surveillance capitalism business models since they have access to the websites you visit.

zzzcpan··on Silicon Valley Abandons the Culture That Made It the Envy of the World
> it is surplus capital of monopolistic firms that enables innovation

This is purely ideological assertion that just excuses predatory behavior. Surplus capital does not enable innovation whatsoever.

Innovation is more like quality, it is habitual and cultural. Give all the right people an opportunity to apply themselves and you get innovation and, of course, give everyone a chance to become the right people, to raise their children that way, educate them the right way, not indoctrinate, etc. The role of capital and startups here is not creating such people, but that of wealth and power: to take ownership of future innovations that could be created by such people and remain wealthy and powerful.

zzzcpan··on Why events are a bad idea for high-concurrency servers (2003) [pdf]
Well, no, you are just hacking it to support your claims. A split-stack work-stealing implementation is ok, nothing special, basically goroutines. But you are not addressing the most important difference between events and shared memory multithreading - synchronizing access to shared memory. Idiomatic event driven applications don't do synchronization and have to be sharded to scale to multiple cores. Choosing memcached and running it multithreaded is particularly bad, as memcached is not a decent event driven applications, it mixes threads and events and suffers from all that synchronization overhead. At least you should run it in one process per core configuration [1]. But it's much worse than that, there is some serious research in this area that addresses those problems, in particular the Anna paper [2], it kills any possibility for shared memory multithreading as a concurrency model to compete with anything, it's just too broken on a fundamental level.

[1] https://github.com/scylladb/seastar/wiki/Memcached-Benchmark

[2] https://dsf.berkeley.edu/jmh/papers/anna_ieee18.pdf

zzzcpan··on Why events are a bad idea for high-concurrency servers (2003) [pdf]
I don't think there is back and forth anymore. Actual high performance research (e.g. when the cost of a single mutex is more than the whole CPU budget for processing something, like say a packet) has been devoid of threads since they got into the mainstream, so like for almost two decades already. They are still used, because this is what hardware and OS provide to do something on each core, but not for concurrency or performance.
zzzcpan··on Advice to avoid public Wi-Fi is mostly out of date
Since version 1.16 certificates can be dynamic, no need for reload.
zzzcpan··on Advice to avoid public Wi-Fi is mostly out of date
> One thing I would love to see in the future is the addition of LetsEncrypt support for major web servers like Nginx and Apache. I think this could go a long way.

This is not as useful as you think. In nginx you only need a couple of extra lines of configuration to let an external program issue and renew certificates independently from nginx, without reloads, etc. Definitely not worth developing a C nginx module that starts a helper process that does that just so that a few people who run nginx on a single server could get their certificates issued with only one line of configuration.

zzzcpan··on Advice to avoid public Wi-Fi is mostly out of date
You are talking about "HSTS Preload", HSTS doesn't do anything on first access.
zzzcpan··on London to deploy live facial recognition to find wanted faces in a crowd
> Imagine an organized government subversion cell that is willing to harm civilians to further its objectives and is skilled at hiding in public (one doesn't have to try very hard given the nature of asymmetric warfare in the 21st century).

That cell harming people you want to imagine would be some other government agency acting as part of a covert operation after a long time of planning and preparation, with plenty of spies deep in the government. And they don't actually harm people all that much, not the point, they do just a few acts of terror with a few deaths for war propaganda. But once they are caught on surveillance it's already too late, it means they are ready to approach the head of police and start using serious military weapons, and plenty of people are already on the wrong side of war propaganda.

> where sufficiently-organized individuals use modern technology to harm innocent people and government cannot stop them

Such things don't really happen anymore, governments are too authoritarian already and really like their monopoly on harming people. The only way sufficiently-organized people can coexist with the government is for them to subvert law enforcement or to originate from law enforcement. Governments can deal with either case by replacing everyone or by letting them have their corruption in exchange for being loyal to the government.

Basically surveillance is not the tool for anything you talk about, it's role is the exact opposite: to keep people from disobeying the government, the ruling class, the whole systems, no matter how much harm they do to the people.

zzzcpan··on Threads Are a Bad Idea for Most Purposes (1995) [pdf]
> Basically any process in real life you do that involves collaborating with multiple people is a collaborative multi-threaded process.

That would be actors or processes communicating with each other, not a collaborative multi-threaded process.

Real world has pretty much no natural notion of threads, only of actors.

zzzcpan··on Threads Are a Bad Idea for Most Purposes (1995) [pdf]
Yeah, it was hard to realize in 1995, but nowadays pretty much everyone who tried experienced performance problems with threads, or rather with shared memory multithreading concurrency model. It doesn't actually scale if you idiomatically synchronize shared memory access with locks or atomics, you need some way to batch things and amortize the cost of synchronization between cores while also preserving locality, which ultimately implies an asynchronous model where threads are just a low level implementation detail.
zzzcpan··on Make resilient Go servers using timeouts, deadlines and context cancellation
Nope, event loops and asynchronous programming in general don't have a concept of taking a lock, because the code in any event handler already has exclusive access to everything. I.e. everything is effectively sequentially consistent.

There are some broken ideas out there that mix different concurrency models, in particular async programming with shared memory multithreading, not realizing they are bounding themselves to the lowest common denominator, but I was never talking about any of them.

zzzcpan··on My 2020 Hackintosh Hardware Spec
Full experience presumes you buy into the platform and get used to it, drop all the alien stuff and alien ideas from other platforms, especially all the exclusive lock-iny ones that you listed.
zzzcpan··on My 2020 Hackintosh Hardware Spec
> Anyone doing this should

That's backwards. Rich megacorps are the ones that should be pressured to change their behavior, not individuals.

Plus the full Apple experience is just about getting your money, it's not actually better than the full Linux experience or the full Windows experience.

zzzcpan··on Make resilient Go servers using timeouts, deadlines and context cancellation
> cancellation is just as fiddly and needing to be explicitly handled by client event handlers/awaiters

That's not true. In event loops to do cancellation you simply remove event handlers for associated client from whatever event notification mechanism you are using and delete (free) client's data structured, including futures, promises or whatever you are using. Since references to all of them are necessary for event loops to be able to even call event handlers, no awareness of any of it on event handlers' side is required.

zzzcpan··on Obesity Trends in the U.S.
> because fast-food and other harmful food like substances are much more harmful in child hood

How so? Growing children can probably handle a lot more junk food and sugar without any consequences than adults.

zzzcpan··on Obesity Trends in the U.S.
Could be more cars and computers that pushed sedentary life on people or plenty of other things too: more effective sugary food advertising on better screens, food producers figuring out that sugar is addictive and starting to put it into everything, or all of the above.
zzzcpan··on Make resilient Go servers using timeouts, deadlines and context cancellation
Basically the reason is you can't just kill a thread that shares memory with other threads. Go doesn't even have an ability to kill goroutines, so your only choices is manual context tracking and manual cancellation in every piece of code. But if you are in a an event loop, for example, you can just destroy any client at any point. Same with actors, if you are in an actor, you can just kill other actors.
zzzcpan··on Awesome-ld-preload: List of resources related to LD_PRELOAD
> How much RAM does libpng use?

The assumption here is likely that read-only mapped pages of libpng could be shared across different running programs that link with it. But it ignores all the extra read-write pages as a consequence of dynamic linking and that there is basically just libc that is shared across different running programs. So it's mostly wrong, you can probably even reduce memory usage by switching to static linking.

zzzcpan··on Make resilient Go servers using timeouts, deadlines and context cancellation
> You have to worry about the jerk sending requests at 1 byte per second no matter which webserver you use.

Not necessarily. It's just free webservers don't bother dealing with it, but there are plenty of simple approaches. Like just dropping connections that are sending requests slower than some threshold or dropping the slowest connection when some total number of connections is reached. Or more complicated, which also works to protect from all kinds of attacks, dropping the highest malicious score or the lowest reputation score client when some resource usage threshold is reached.

None of these are easy to implement with synchronous multithreaded networking code though, like in Go. Realistically it's only viable with asynchronous single threaded programming models or an actor model.

zzzcpan··on The Era of the Trident Engine
Sure, but not impactful enough to matter in practice. FreeBSD can claim a lot of architectural differences too and yet they don't solve the problems you were talking about. And the actually different OSes that can help with those problems are not really usable except for some niche use cases.
zzzcpan··on The Era of the Trident Engine
But it's not monoculture that's the problem here, it's architecture. Different OS with similar architecture, like FreeBSD, can't solve those problems.

The same way reimplementing Chromium in Firefox can't fix anything.

← PreviousPage 6 of 34Next →