37,790 karma · joined Sep 7, 2019 (7y ago) · 9,208 submissions
comment 3y ago · link · parent
That's fine, doesn't make the truth any different that it doesn't actually read TS without compiling it, as parent said.
> There likely will never be an actual TypeScript runtime because that doesn't make sense as a concept [...] TypeScript is metadata for devs
It does make sense to have a runtime for TypeScript directly. There is bunch of optimizations that can only happen after the runtime understands the type of the values, and if you keep switching the type of the variable value it'll be able to do less of those optimizations.
So you could probably end up skipping a lot of inference if the types gets shipped to the runtime as well as the rest of the source, vs just the source.
comment 3y ago · link · parent
I don't think it does, it comes with a TS compiler built-in, and "can run TS" by compiling said TS to JS and evaluating that. Deno is still using V8, so unless Deno has changed recently, it does not "consume TS" and no mainstream JS engine does.
comment 3y ago · link · parent
Any large application who extends the number of features forever leads to high latency and slowdowns, unless you structure things as extensions/plugins and load them ondemand/allow users to disable/enable them.
It has nothing to do with Electron, same thing would happen with a application written in C/Rust. Might happen faster with JavaScript, as JS developers tend to have less focus on performance, but it is less about Electron vs the World and more about who the developer(s) is.
2560.
Specific Area Message Encoding (Same), Protocol Used for Emergency Alert System(en.wikipedia.org ↗)
1 points · by capableweb · 3y ago · discuss
comment 3y ago · link · parent
That last part has always irked me in settlements like this. Like how is it not an admission of wrongdoing if you finally say "Ok, I'll give you money for this problem to go away". You might say that you're not admitting you're at fault but the conclusion of you paying "victims" what they are "owed", you are admitting you're at fault.
Imagine someone stole something from you, that you value at 100 USD. Then when you try to convince them to give it back because they took it from you, they say "Ok, I'll give you 100 USD but that doesn't mean I'm admitting I took it, I just don't want to deal with it", wouldn't you take it as that person actually admitting they took it, although they don't want to confess to it?
comment 3y ago · link · parent
According to what I can find, it's missing something called a SAME header that the tones are supposed to be prefixed by, maybe that's why FOX thought they could get away with it?
Edit: For clarification, the particular message that needs o be sent to be considered "Emergency Broadcast" is not just the "Attention signal", it's has many other vital parts (like the header in the message that it begins with). Besides that, the Attention Signal has to be at least 8 seconds long as long, otherwise I'm assuming it should be considered one. The one FOX broadcasted seems to have been ~3 seconds.
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
> uses 2% less CPU time. That's because the external gzip can run in
> parallel on its own processor, while the internal one works sequentially
> and avoids the inter-process communication overhead.
> What are the benefits? Only an internal sequential implementation can
> offer this eco mode, and it allows avoiding the gzip(1) requirement.
It seems like they changed it because it uses less CPU, which makes sense in a "we're a global git hosting company" perspective, but less so for users who run the command themselves. They intentionally made it 17% slower to save 2% of CPU time, which probably makes sense at their scale, but for every user who run the command locally to lose 17% more of time?
2569.
3 points · by capableweb · 3y ago · discuss
comment 3y ago · link · parent
Discussed 10 days ago on HN (1024 points | 642 comments): https://news.ycombinator.com/item?id=34446673
comment 3y ago · link · parent
To be honest, the whole thing sounds like a farce, just trying to get some understanding from perspective I don't myself hold.
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
Edit: I see now you mention the bandwidth difference and saying to use LoRa just for emergency broadcasts, that'd make sense.
comment 3y ago · link · parent
To expand, the following was common before destructuring but with CommonJS:
var some_func= require('some_module').some_func
Which, as you know, would probably usually be done like this today, where we have destructuring: let {some_func} = require('some_module')comment 3y ago · link · parent
comment 3y ago · link · parent
Number of online nodes per network as of today:
- NYC Mesh: 1281 (https://www.nycmesh.net/map)
- Freifunk: 42,524 (https://www.freifunk-karte.de/)
- Guifi: 37,721 (https://guifi.net/en/node/3671/view/nodes)
comment 3y ago · link · parent
Most of them are using commodity hardware from Mikrotik, Teltonika and Ubiquiti. Basic setup for a personal node is just an antenna + router. Then they usually have the concept of "supernodes" who are responsible for hooking up multiple personal nodes, and have uni-directional antennas + multiple ones + bigger routers to facilitate the routing.
I'm not sure you'll be able to put together a supernode with decent range for under $100 though, think the cost would be more than that, but I would be happy to be proven wrong.
In terms of firmware, I've almost exclusively seen OpenWRT being used (and the rest running default Mikrotik/Ubiquiti firmware), with various self-made patches done to it before installing it on the hardware.