913 karma · joined Dec 19, 2014 (11y ago) · 74 submissions
comment 5mo ago · link · parent
comment 1y ago · link · parent
comment 3y ago · link · parent
I maintain the vscode debugger and found both the article and your comment interesting--there's a large overlap between "programs with anti-debugger techniques" and "programs that are hard to debug."
comment 3y ago · link · parent
For example, if you have a `binarySearch` function that returns -1 if an element isn't found, a developer might do something. `const result = arr[index]; if (result !== undefined) { ... }`. This would then start returning the last element instead of undefined at that index.
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 5y ago · link · parent
17.
Vscode.dev(code.visualstudio.com ↗)
803 points · by connor4312 · 5y ago · 259 comments
comment 5y ago · link · parent
This will be a huge disaster, but our government and institutions are not apathetic to it.
1. https://www.newyorker.com/tech/annals-of-technology/how-to-s...
2. https://www.seattle.gov/Documents/Departments/Emergency/Plan...
3. https://www.fema.gov/press-release/20210318/emergency-manage... (a 2022 exercise is planned)
comment 5y ago · link · parent
In the west, humans are becoming less employable as they're displaced by automation--https://www.youtube.com/watch?v=7Pq-S557XQU is a good video if you haven't seen it, and it's from before AI/ML took off! Japan seems to have mitigated it by making automation an addition, instead of a replacement, in many cases. It's certainly not the efficient, capitalist thing to do, but maybe it's the better thing to do.
comment 5y ago · link · parent
The solution to that problem is clearly to subscribe to their service so that I can stream from a less-anemic machine.
comment 5y ago · link · parent
comment 5y ago · link · parent
I had the idea to print a couple posters for the occasion, so I made this tool. I linked a redbubble where I uploaded a couple of my favorite designs, but of course you're free to build your own with the tool and print them however you'd like.
1. https://github.com/NAalytics/Assemblies-of-putative-SARS-CoV...
23.
Show HN: Covid-19 Vaccine Sequence Visualizer(covid-vaccine-viz.vercel.app ↗)
2 points · by connor4312 · 5y ago · 1 comment
comment 5y ago · link · parent
The downside of Zigbee is that, as a user, there isn't a strong ecosystem of DIY IoT solutions like there is with, for example, the wifi-connected ESP8266/ESP32 chips. And, of course, it requires a hub and some degree of knowledge to set up.
At the moment I'm evaluating launching a small IoT startup/side-business in an underserved market. As much as I love Zigbee, these devices will probably end up being wifi. I'm not an expert in the hardware side of things, and the ability to pay <$1 for an ESP chip that does everything I need off the shelf is great, and I don't want to create a hub or require users to buy a (often $80+) hub just for my set of (<=$5) devices.
Although it'll be wifi-based, I plan to make these guarantees:
- The cloud service (supported by a small yearly subscription) will stay online for at least 1 year after the last device is sold.
- When the service is shut down, its software and hardware will be released under an open source license.
- The subscription fee will never be increased faster than inflation rate.
- 3rd party analytics software won't be used and data will never be shared with 3rd parties (outside from Stripe during checkout). In all cases a minimum amount of data will be collected.
Maybe this'll make my product slightly less likely to appear on the @internetofshit Twitter account[2].
comment 5y ago · link · parent
This is not the case. I love esbuild and hope to see it go far, but Webpack does out of the box most of what esbuild (today) does as well, with the notable exception of TypeScript /jsx transpilation. For more advanced scenarios, like dealing with css modules, you do need plugins -- but esbuild doesn't support most of these scenarios today at all.
It's like saying VS Code does nothing: you probably want extensions to help you out and let you do more complex things more easily, but it doesn't "do nothing" out of the box.
comment 5y ago · link · parent
comment 6y ago · link · parent
This isn't true for Typescript. TypeScript is a superset of JavaScript, and running JavaScript through the TypeScript compiler will produce identical output code[1]. If you add type annotations to that JavaScript to make it fully pass the strictest type checking settings, that will still be true provided you didn't otherwise rearrange or modify your program.
This makes me doubt their methodology on TypeScript at least, or wonder if they're running a tool like `ts-node` which compiles and runs at the same time, thus counting compile time in their execution time and energy.
1. As long as you're targeting the same language version as the original code was written for. For instance the compiler will downlevel async/await into slower async generators if you're targeting a version of JavaScript which doesn't support it yet.
comment 6y ago · link · parent
It was a big undertaking :)
comment 6y ago · link · parent
I maintain a (/the only?) etcd3 library for Node.js[0], and used etcd extensively on my former team.
None of these things are new to etcd3 API. All of these are present on v2 as well[1], whose API the author extolls, or are built within clients on etcd's base APIs (e.g. there's no 'lock' API, only leases). However, with etcd3 we get stricter typing, better performance, and better semantics (e.g. watch streams and lease streams over polling) thanks to GRPC.
In general these rich APIs allow 'average' engineers to build complex distributed apps more correctly. I've built reliable sharding, hash rings, elections, and so on based on etcd's API--none in more than a hundred or two lines of code (more in Go, less in Node.js). All of these are classic hard problems that etcd makes easy. Sure, there's innumerable standalone services for each of these things, but often there's no need to take the cost of many tools when one would work.