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

I don't have a lot of experience with async to judge this on its merits, but I loved the way this moved from very simple trivial examples, and then gradually built up the motivation for the next section as we went. Zig will definitely be one of the languages I spend some time with next, in a large part because of Andrew Kelley's writing

They also made sloppy mistakes like naming the Proven owner's partner un-redacted in a document they submitted to the court (which is then available through legal search engines). If they were concerned with privacy they could easily have withheld her name.


The one time security through obscurity would have helped them?


That would be more like: shuffling that document randomly between other documents, or using white font on a white page in Word.


Obscurity is often a valid security tactic, just not all the time and never by itself.


If anyone is interested in the legal side, I'd also recommend 'Runkle of the Bailey' who has a series on this saga but with a focus on the legal shenanigans [0]

[0] https://www.youtube.com/watch?v=y3WVme9LAcQ&list=PLo0bMOObfk...


I know you probably can't share the details, but if you can I (and I'm sure all of us) would love to hear them


I'm surprised that these things transmit at around 1Hz, I thought it'd be on the order of every 10 seconds to a minute. Given that I assume a lot of beacon devices are running on a coin cell battery I would have thought it would be slower. Or is that particular only to this device?


1hz seems slow to me. A company that I worked at was designing robust industrial, apple airtag/tiles with a specific application 8 or 9 years ago.

BLE operates on a very crowded frequency. WiFi, Bluetooth, etc are all on the same frequency and spamming out thousands of packets constantly.

We had to triple our broadcast frequency and period in order to reliably detect a beacon within 5 seconds of a phone being in range.

We settled on 200ms frequency and broadcast for 15ms.

Our decide had a 10 year battery life on a couple coin batteries…


I find it very intriguing you landed on 200ms, considering the default beacon rate of the majority of WiFi access points is 100ms. Clients do not like going much longer before you start dropping beacons and discoverability tanks... which is shown in your results. Genuinely fascinating.


>We had to triple our broadcast frequency

What do you mean by this ?


I think they meant triple how often they broadcast, not using a radio frequency x3 higher on the spectrum.


That answers my question perfectly, thankyou!


1 Hz is slow. Apple's iBeacon standard specifies 10 Hz, for instance. Also, every packet is transmitted on three different channels, so there is actually quite a lot of traffic generated.


I wrote a python library that would build a perfect hash at run-time, it was basically the stupidest way you could do it - it would shell out to gperf to build the library, compile it to a shared library, then link the entry points in (I think with ctypes? I can't remember).

It was just for fun, but in the end even ignoring the startup costs of all of that, the default performance of python's dictionary was better.


I have a question about the rules of school busses (I'm not American). It seems like the expectation is that _all_ traffic is required to stop if a bus is stopped, is that correct? If so, why?

Here (Australia) the bus just pulls over and you get off on to the sidewalk, even children, why is it not the case in the US?


As mentioned, in a lot of suburban areas in the US where school buses are common there are no crosswalks or traffic lights (or sidewalks or physical bus stops, for that matter). Most of the time there isn't so much traffic that stopping all of it is a huge burden.

Also, there's generally an exception for divided highways - if the road has a physical median or barrier, the oncoming traffic doesn't have to stop. I assume the bus route accounts for this and drops kids off on the correct side of the road.


(St)Roads where the kids have to cross a busy road to get to the other side where their house is.

In my case, a rural highway where traffic goes 55mph.

Is better to stop all traffic than force kids to figure out how to frogger through traffic.


> (St)Roads where the kids have to cross a busy road to get to the other side where their house is.

That's pretty different from my experience.

Almost all the school bus stops around here are on small low-speed residential streets.

And while there are surely some stops on faster 2-lane roads...

A stroad or major road would mean 4+ lanes, which in my state means the school bus only stops traffic on one side. No kids will be crossing at those bus stops.


Ah there might be some assumption here that I didn't realise. Typically we'd have a cross walk or traffic light near the bus stop where you'd cross. I'm in Sydney so I don't know of anywhere that you'd be going that fast that would also have bus stops (they max exist I'm just not aware of them)


Rural areas especially, but most small towns in the US don't have crosswalks.

The closest crosswalk to my bus stop as a kid was about 45 miles.


The kids near me (in Melbourne, about 10km outside the CBD) just take the same public transport system as everyone else. You don't see school bus systems unless you're in the far outer suburbs, a regional/rural area, or maybe some other special cases.

Growing up, our school bus stop was on a service road off a 100km/h highway, but it had good visibility in both directions and most of the kids over the other side got dropped off by their parents while they were young.


I'm an Australian also, this is the video that blew my mind.

https://youtu.be/lShDhGn5e5s

It's a long video but the tldr is that Americans don't have foot paths. You would think they would but nope, it's not like Australia where everywhere you walk has a path and down paths to the road.

Even directly around schools no footpaths, and it's all because it's no one's responsibility other then the home owner.


Plenty of Australian suburbs have no footpaths either. The footpath appearing and disappearing thing also happens.


Yes but not like America has it.


In NSW (Australia) that's exactly how it works. And it includes 'pupil-free' days where there are no students present. My old school even had a pedestrian bridge and barriers so that it wasn't even possible to get to the road.

It's so silly, when the obvious solution is to make school zones 40km/hr (25mi/hr) at all times, or to fix the road design. Typical speeds here are 60km/hr (40mi/hr), so anyone making the argument that it would 'slow traffic' is being dramatic.

(There is one exception that I know of - our east coast highway used to go near a school, which forced a change from 110km/hr (70mi/hr) to 40km/hr. In this case I will concede the speed is not the issue, the highway location is the issue)


> (There is one exception that I know of - our east coast highway used to go near a school, which forced a change from 110km/hr (70mi/hr) to 40km/hr. In this case I will concede the speed is not the issue, the highway location is the issue)

They couldn't just put up a fence?


A fence and a pedestrian bridge would do the job. Long term I think that highway is going to bypass all the towns


In Victoria there is usually (not certain if it's always) a changeable sign and flashing lights if it's reduced to 40


I watched a nice video by Stefan Milo about these recently [0] if anyone is interested.

[0] https://www.youtube.com/watch?v=jOBmfHkcWj8


My understanding is that in places where this isn't specifically allowed, pain medication is increased in a wink-wink kind of way when the time comes


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

Search: