HN user

bencyoung

86 karma
Posts0
Comments38
View on HN
No posts found.

Unless your memory allocator runs a form of garbage collection, which most of the advanced ones do! Worst memory performance issue I've ever seen was in a C++ program where the deallocation of a large object graph from one spot completely trashed the performance of the application across many threads...

Sorry for the delay! It's fairly simple. 1. You have a column on your objects you want secured as an LTREE[] 2. You add a GIST index on that column

The values should be the different hierarchy paths to access the object starting with a "type" e.g departments.root.deptA

When you run a query, depending on how you want to access you use a <@ query. E.g. I'm a user with root access to all depts "col <@ 'departments.root'::ltree" or I'm a user in dept A "col <@ 'departments.root.deptA'::ltree" etc

Sorry for the delay! It's fairly simple.

1. You have a column on your objects you want secured as an LTREE[] 2. You add a GIST index on that column

The values should be the different hierarchy paths to access the object starting with a "type" e.g departments.root.deptA

When you run a query, depending on how you want to access you use a <@ query. E.g. I'm a user with root access to all depts "col <@ 'departments.root'::ltree" or I'm a user in dept A "col <@ 'departments.root.deptA'::ltree" etc

Having worked in HPC a fair bit I'm not a fan of autovectorization. I prefer the compiled code's performance to be "unsuprising" based on the source and to use vectors etc where I know it's needed. I think in general it's better to have linting that points out performance issues (e.g. lift this outside the loop) rather than have compilers do it automatically and make things less predictable

Odd that c# has a better stable SIMD story than Rust! It has both generic vector types across a range of sizes and a good set of intrinsics across most of the common instruction sets

Cheapest MSK cluster is $100 a month and can easily run a dev/uat cluster with thousands of messages a second. They go up from there but we've made a lot of use of these and they are pretty useful

Kafka is great tech, never sure why people have an issue with it. Would I use it all the time? No, but where it's useful, it's really useful, and opens up whole patterns that are hard to implement other ways

I almost did a PhD with David but ended up working at Transversal instead, which was a company he co-founded to do some interesting work in the search engine space! It's what got me into software development as a career so I'm always grateful to him

I think it's more that western cultural cliches become invisible to western audiences rather than moving on. E.g. the "superhero" is definitely a western cliche. "A lone operative defies the rules to do the right thing because might is right if you're right. Individual exceptionalism triumphing etc". Somewhat shallowly examined in some films but still turns up all over the place.

Ok I drilled down a bit and looks like you are right, although I'm still not sure I've built up a clear understanding! (https://physics.stackexchange.com/questions/187917/thought-e...). In fact that question (series of onions) is exactly how I visualised it...

I'm not quite sure from that discussion why an event horizon is equivalent to a body moving outwards at the speed of light but it does make some sense. GR is always fun!

I still don't have a good idea of the "slow moving crossing the event horizon" case" but I'll read around it some more

Maybe the difference is between "free fall through an event horizon" vs "hover" (as much as is possible) at an event horizon

Seems amazing similar to the changes a junior would make (jump to the solution that "fixes" it in the most shallow way) at the moment

Thanks! Hmm, I think we're talking about slightly different things but it's been too long since I studied it to put it in the right words :)

I completely agree that spacetime can be "flatish" for a large block hole, but the event horizon does still represent a boundary right?

Consider the edge case of crossing the event horizon itself at some speed <<c (because you've got magic thrusters fighting the pull). At some point your feet will be through the event horizon and your head won't be. Do you agree that at that point you won't be able to see your feet?

I agree that your head will pass through the future light cone of your feet, and so could do somethign to affect your head (by emitting something falling slower than your head), but I'm not sure any light rays could follow that path.

You can do plenty of experiments to see if you are falling, e.g. hitting the surface of a planet you are falling towards. The event horizon is a surface like any other with a location in space and you can definitely see when you hit it (it's the bit where no light is coming out). And once you've crossed it, literally no EM radiation can move further from the singularity

Consider that every "surface" inside the event horizon is like a stronger event horizon so passing through you'd certainly notice things like not being able to see your feet any more as the light wouldn't be able to travel out to your eyes! There would be a lot of other stuff happening too so you may not notice exactly, but the event horizon is definitely noticeable!

From what I remembe of Undergrad physics this isn't actually possible. According to GR, within an event horizon, space-like pths become "time-like" which effecitvely means the singularity is unavoidably "in the future". No matter how big a black hole is, you can't just drift around inside it as literally all paths lead downward (hence even light not escaping)

If you were inside a black hole you wouldn't be able to see light from "deeper" because it wouldn't be able to travel towards you.

This is not what we see within the universe, so I don't think we can be inside a black hole