Hacker Newsnew | past | comments | ask | show | jobs | submit | jlokier's commentslogin

It depends which key combination or trackpad gesture is used to trigger the desktop switch, because they use different animation curvdes. It looks like they have different application focus or redraw behaviour too.

- Control-Left/Right takes about 1 second.

- Four-finger swipe left/right takes about 1 second.

- Alt-Tab to an app on another desktop takes about 0.25 seconds.

I'm using Sonoma 14.8.3, but from the comments it sounds like the timing distinction is similar on other versions.


I've worked on a hobby database that did something like this, but instead of "flat" dictionary compression over columns, it used a tree of compression contexts - trillions of them.

Data was compressed in interior and exterior trees, where interior trees were the data structure inside blocks (similar to B-tree block contents), and exterior trees were the structure between blocks (similar to B-tree block pointers, but it didn't use a B-tree, it was something more exotic for performance).

Each node provided compression context for its children nodes, while also being compressed itself using its parent's context.

As you can imagine, the compression contexts had to be tiny because they were everywhere. But you can compress compression contexts very well :-)

Using compression in this way removed a few special cases that are typically required. For example there was no need for separate large BLOB storage, handling of long keys, or even fixed-size integers, because they fell out naturally from the compression schema instead.

The compression algorithms I explored had some interesting emergent properties, that weren't explicitly coded, although they were expected by design. Some values encoded into close to zero bits, so for example a million rows would take less than a kilobyte, if the pattern in the data allowed. Sequence processing behaved similar to loops over fast, run-length encodings, without that being actually coded, and without any lengths in the stored representation. Fields and metadata could be added to records and ranges everywhere without taking space when not used, not even a single bit for a flag, which meant adding any number of rarely-used fields and metadata was effectively free, and it could be done near instantly to a whole database.

Snapshots were also nearly free, with deltas emerging naturally from the compression context relationships, allowing fast history and branches. Finally, it was able to bulk-delete large time ranges and branches of historical data near instantly.

The design had a lot of things going for it, including IOPS performance for random and sequential access, fast writes as well as reads, and excellent compression.

I'd like to revive the idea when I have time. I'm thinking of adding a neural network this time to see how much it might improve compression efficient, or perhaps implementing a filesystem with it to see how it behaves under those conditions.


That's the addressing problem, although I have some bad news on that: NAT is used with IPv6 in some places.

The reachability problem is, even with public addresses, sometimes you have to do the same thing to "configure port forwarding" with stateful IPv6 firewalls as with double or triple NAT IPv4.


Some recent HN comments about CRT implosions people have experienced.

https://news.ycombinator.com/item?id=46355765

"I still have a piece of glass in back of the palm of my right hand. Threw a rock at an old CRT and it exploded, after a couple of hours I noticed a little blood coming out of that part of hand. Many, many years later was doing xray for a broken finger and doctor asked what is that object doing there? I shrugged, doc said, well it looks like it's doing just fine, so might as well stay there. How lucky I am to have both eyes."

https://news.ycombinator.com/item?id=46354919

"2. Throwing a big big stone to an abandoned next to the trashcan CRT TV while I had it placed normally because it didn’t break when I threw it facing up and the next thing I remember after opening my eyes which I closed from the bang was my friends who were further down the road looking at me as it I were a ghost since big big chunks for the CRT glass flew just right next to me.

CRTs were dangerous in many aspects!"

https://news.ycombinator.com/item?id=46356432

"I'll never forget the feeling of the whoosh when I was working as a furniture mover in the early 2000s and felt the implosion when a cardboard box collapsed and dumped a large CRT TV face-down on the driveway, blowing our hair back. When the boss asked what happened to the TV, I said it fell, and our lead man (who had set it on the box) later thanked me for putting it so diplomatically."


Some people don't have a choice. See https://news.ycombinator.com/item?id=46698278

"The company I work at gives all new developers a pair of 1080p displays that could have come right out of 2010."

I have the same problem. The monitors at the office where I currently work are all low-DPI.

Work is quite irrational when it comes to spending decisions. It's not just penny pinching. They waste a lot of time and money at the same time as they block and worry about much smaller expenses. Asking them to provide one or two good, modern monitors at non-trivial cost would likely be described something as a "luxury" or "treat", which is how they described my personal laptop when they found out how much it cost.

At least I'm able to use my own laptop at the current job. It's much more powerful than anything the company would provide.


> If you are British at birth they can't strip your citizenship and kick you out

Not true. If you have dual nationality at birth, typically because you have one British parent and are born in the UK, then you are British at birth but the Home Secretary has the power to strip you of British citizenship anyway.

So, paradoxically, a child born in the UK to a British mother can end up with stronger UK citizenship rights if the mother doesn't reveal who the father is.

That's not as bad as if you are a naturalized British citizen. In that case, the Home Secretary has the power to strip you of British citzenship and leave you entirely stateless (you have no citizenship anywhere), which you can imagine is a very difficult status to live with.


This is what I thought until last week. Then I read the actual legislation. The 2014 changes apply to naturalised citizens. If you are born with two citizenships you aren't naturalised.


It's not from the 2014 changes.

From https://commonslibrary.parliament.uk/research-briefings/sn06...:

"Someone who was born British and has no other nationality cannot be deprived of their citizenship in any circumstances."

"Deprivation now affects people born in the UK, not just naturalised citizens"

"Until 2003, however, deprivation was only possible for naturalised citizens."

"The Nationality, Immigration and Asylum Act 2002 extended citizenship deprivation to British-born dual nationals for the first time."


Pi falls out of infinite sums, exponentials and differential equations all over the place. It's a universal constant, first discovered via geometry, but it's independent of geometry.

For example,

pi = the square root of the sum of 6/x^2 over x = (1, 2, 3...).

pi = the smallest positive value of ln(-1)/i.

pi = half the period of non-zero solutions to the differential equation f = -f''.


> If the input image is only simple lines whose coverage can be correctly computed (don't know how to do this for curves?) then what's missing?

Computing pixel coverage accurately isn't enough for the best results. Using it as the alpha channel for blending forground over background colour is the same thing as sampling a box filter applied to the underlying continuous vector image.

But often a box filter isn't ideal.

Pixels on the physical screen have a shape and non-uniform intensity across their surface.

RGB sub-pixels (or other colour basis) are often at different positions, and the perceptual luminance differs between sub-pixels in addition to the non-uniform intensity.

If you don't want to tune rendering for a particular display, there are sometimes still improvements from using a non-box filter

An alternative is to compute the 2D integral of a filter kernel over the coverage area for each pixel. If the kernel has separate R, G, B components, to account for sub-pixel geometry, then you may require another function to optimise perceptual luminance while minimising colour fringing on detailed geometries.

Gamma correction helps, and fortunately that's easily combined with coverage. For example, slow rolling tile/credits will shimmer less at the edges if gamme is applied correctly.

However, these days with Retina/HiDPI-style displays, these issues are reduced.

For example, MacOS removed sub-pixel anti-aliasing from text rendering in recent years, because they expect you to use a Retina display, and they've decided regular whole-pixel coverage anti-aliasing is good enough on those.


In the case of a URL it might be.

If the domain is registered with the client named as the formal owner, the client may well be the owner even if they haven't paid for it yet.


Then the client can move the DNS for the domain and use a server they control and have paid for.


The company owner didn't dissolve it, the registrar did as a penalty for not filing accounts within about 4 months of the due date. The owner might not even know it's dissolved yet.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: