skysight-inc/HackerNews huggingface dataset:
Check out C++ it‘s modern versions translate almost verbatim from python (throw in auto and semicolon and replace . with ::). See for example the pytorch c++ api or nlohman‘s JSON library. At the same time it allows you to program a 16kB micro controller with ease.
Ask HN: Common hardware based USB analyzers that support wireshark exports?
I am working on a university project regarding analyzing USB packets between two embedded components. Right now I am using the Beagle 480 USB protocol analyzer but the export does not follow the PCAP specification and is really hard to read out.

Are there any hardware tools out there that support Wireshark exports?

My guess is that penetration testers would probably use these tools.
Node Management in GKE
Interesting how the total installed capacity is pretty respectable at 96GW, even though there are only 5 turbines above 5MW. In Europe the 7,5 MW Enercon onshore turbine is fairly common, and offshore the 8-10MW turbines are very much in fashion. For reference, the EU has 179GW installed as of 2018 https://en.wikipedia.org/wiki/Wind_power_in_the_European_Uni...
Apple watch is for people who already have an iPhone. It's not a game changer for a wider market it's a peripheral. a successful peripheral.
If I were implementing it, I would definitely want to be able to test it using qemu without Windows.
>I find it absurd that, in criticizing C, you conflate that with the underlying machine.

It could be argued that assembly language doesn't always run on the underlying machine either, given the amount of microcode used in modern CPUs.
What are you smoking? That's what happen when you try to impose your language on us through some education policies. That's what happens when you remove the Tamil name with some name in a language somewhat foreign to us.

And calling us racists? Who coined the name madarasi for South Indians? It's the north of Vindhya.
It is only ability to focus that goes down so for a person without myopia only near vision is affected. This is still bad as it affects the gatherer part of hunter-gazerer society, but it does not imply that evolution has not tried to optimize vision for people over 40 years old. They still can spot a lion far away.
Global warming
Develop without having to buy a Mac.
That kind of extreme heating/AC can sound like a luxury in an abstract sense, but it's not even practical IMO. When I go to countries that do that, I tend to get colds or sore throat from the sudden changes in temperature from outside to inside or vice versa, and I need to be putting on and taking off clothes all the time, which is hardly my idea of comfort.
I don't think this is about anthropocentrism. Death and cancer are reasonably well-defined concepts across a vast range of species. Plants do get cancers, it's just nowhere near as fatal as it is for humans.
Stark partisan divisions in Americans’ views of ‘socialism,’ ‘capitalism’
(AFAIK As Apple stated too,) to give confidence to customers that are skeptical due to keyboard issues.
Wonder how long will it take for prices to take notice, doesn't seem to be happening yet:
https://fred.stlouisfed.org/series/MNXRSA
I have done sessions on Focusmate [0] every day for about 3 weeks so far. I personally do other work, but a lot of people I match with use the sessions to meditate. I've found it to be a surprisingly effective anti-procrastination tool.

[0] - https://www.focusmate.com
I tend to treat C like English: you don't have to learn it, and you can certainly get by without it if you stay within a certain semi-isolated community where it's not really used. However, it is certainly something that's a nice thing to know, if for nothing else that a lot of other people will know it too.
I think this conversation is at cross purposes. In algebra, the statement:

x = x + 1

is meaningless. Algebraic variables are not the same as what are effectively names for value storage locations, which is the common meaning of a "variable" in most imperative languages.

Of course, with FP, the concept of a mutating variable is frowned upon in general. Mutation is effectively a performance hack.
What is the source?
In order for a cancer-like mutation to kill a plant it would probably have to cause mechanical damage. Tumors completely circling the trunk of a tree might have an effect like girdling the tree and kill the tree. A tumor growing in the center of a stem might compress the xylem and phloem enough to choke them off.

This kind of fatality happens with humans, too, even if the cancer doesn't spread beyond the origin site.
Am I the only one on HN who actually likes the Butterfly keyboard?

I find that I type faster on my 2018 Macbook Air than on my 2015 Macbook Pro
Go from Powerpoint to UI in Seconds
Not actually unless it's a native OS exception with a well-defined hex code. I was talking in .NET context, and when you get e.g. some SocketException related to setting up UDP multicast parameters only textual description helps for highly relevant search with double quotes. Often there are just no results at all in local language for highly specific complex conditions.
Use an app connected to a computer to send sms messages. That’s the only thing I want back after switching.
What meddlepal is saying is that it works in SimCity (4), not that it works in the real world.
This is often the path that a lot of legislation takes thru the legislature.
Theoretically, SGX allows you to assume that your data is in danger only if Intel and your service provider are cooperating in order to access it.
SGX has had vulnerabilities before, and there are likely to be more, but it still seems like a sane way to secure your customer’s data.
I guess there would have to be one success per generation.
What are symbols and how they can be useful to you
AMD Ryzen 7 3700X levels with Intel Core i7-9900K in Geekbench
Imagine everone would follow this conservative view on optimal resource allocation - we wouldn't have none of the BSDs, no Linux, nothing open source/ free software at all. Windows wouldn't have been forced to modernize, instead we would probably all use a late descendent of windows 95. The open web probably wouldn't exist, instead we would all use AOL or one or two other private network providers, paying roaming fees wor inter-network communication.

I absolutely applaud people sinking their minds into interesting niche projects like these. You never know the macro results 10 years down the road.
SmallTalk would beg to differ. Javascript as well.

And I worked with large, fairly OO-oriented codebases in JS, and it was fine and I didn't miss inheritance.
But you really shouldn't try to pass it off as philanthropy demanding new taxes for yourself, when you, in fact, created the problem by evading current tax regime using loopholes. This would just create a new tax that would be circumvented through new loopholes and the problem remains. If multinational corporations paid their taxes in full it would generate exponentially more tax revenues than what this proposed tax would. And like I said, this would be circumvented with tax havens like many other taxes are currently, so this really seems like a populist move rather than an actual solution.
Several of the solvers require that you have an academic email (or even IP) adress. If you don't but still think you qualify, I guess one would need to contact them and go through some work-around, possibly every year to renew?
I bought my Macbook for OS X as well. I was extremely unhappy with Windows 10 (and Linux wasn't an option because one of my core uses is music production which is barely supported)
The solution would have been to allow use while charging, but once battery is full, pop up regular warnings to unplug it to "prevent battery degradation" or some other white lie
America should follow the example of progressive countries.

Point 1. Residential highrises should become the main housing option

Point 2. Stop subsidising suburban lifestyle for the rich

Point 3. Massive public investments into infrastructure

Point 4. Replace zoning regulations with something less extremely specific or go for sanitary code type regulation

Point 5. Stop requiring people without cars to buy unneeded parking space on their own plot
There's some discussion about unsafety in the face of concurrency from Rob Pike here: https://talks.golang.org/2012/splash.article#TOC_13.

> There is one important caveat: Go is not purely memory safe in the presence of concurrency. Sharing is legal and passing a pointer over a channel is idiomatic (and efficient).

> Some concurrency and functional programming experts are disappointed that Go does not take a write-once approach to value semantics in the context of concurrent computation, that Go is not more like Erlang for example. Again, the reason is largely about familiarity and suitability for the problem domain. Go's concurrent features work well in a context familiar to most programmers. Go enables simple, safe concurrent programming but does not forbid bad programming. We compensate by convention, training programmers to think about message passing as a version of ownership control. The motto is, "Don't communicate by sharing memory, share memory by communicating."
- Share apps with other people

- Write apps for the iOS platform in Linux/Windows/etc.

- Extend storage with SD Cards

- Live download/upload speed meter on the status bar

- Use phone as a wireless hot-spot without installing a SIM card or enabling data (2G/3G/4G)

I missed these when moving from Android to an iPhone.
BMW Says Diesels Will Survive Another 20 Years and Petrol Engines 30
Man this is really cool thanks
And Dropbox is just sshfs, ftp-mount etc. There is a huge advantage to having an all-in-one, it just works, solution. Active directory is such a solution and does really well. Login to a different mschine and things are just setup. Push programs, setting, updates. Change security. It's great.
Title of the piece: Why plants don’t die from cancer.

If the title were "Why cancer is nowhere near as fatal in plants as in humans," then your rebuttal would hold water. But that's not the title, so it has no bearing on my critique of the actual title.
If it works, the butterfly keyboard is a very good keyboard. For a laptop. It boils down all the nerd arguments about why the IBM model M is still the best keyboard in the world (tactile and overall feedback) and brings it to the modern era. Combined with the restriction of mobile devices. Perfect. If it would not break down so easily.
OOP is great as long as your inheritance stack is at most 2 classes deep: abstract base classes for different backend implementations, or for holding heterogeneous objects like a syntax tree or, idk, inodes in the kernel, or even just one actual implementation and additional implementations for tests. At which point you may as well call the base class an interface.

Can't think of any sensible 3+ classes deep hierarchy that I've seen in a sensible project. I've seen some that are not sensible.
Really for cases like this the only way through is the Nuremberg one: "only following orders" is not a defence, especially if you can't or won't say who gave the order.
Reddit in 2019 === Facebook of 2010
cvxpy is only for linear programming (LP), but does not support mixed-integer programming (MIP), so you can only use it for some problems.

Also, I think cvxpy might implement an interior point method, not a simplex method, so you don't get a "vertex solution", which often has some nice sparsity attributes.
Indeed, but I prefer SwiftUI's syntax though, and the property wrappers + view modifiers paradigm, as well as Apple's Combine framework for processing data/events. Appears to result in less verbose and much cleaner, modular code compared to Dart+Flutter.
How to get the real number of pageviews of a static site
If you need thread-safety you must at least use atomics anyway Either your platform has transactional memory, double-wide cas or you need to fall back to locks.
I have a Transmission gui on my phone, set to be the default opener for magnet links. It's easier to download torrents on my phone than my laptop.
(non-native speaker, learned programming before English)
I think this is a bad idea for a few reasons:

- More languages = more barriers. Gosh we have enough problems with silos within the software dev community as well as languages in real life being one of the main hindrance to mobility.
- Learning how to program is a great opportunity to refresh your mind and adopt a new way of thinking, why carrying along the burden of your flawed human language?
My comparison is always solar and wind against nuclear. Here's a very good analysis on solar alone: https://solar.lowtechmagazine.com/2015/05/sustainability-off...

In short: in the very good case of an insolation of 1900 kWh/m2/year and panels built in Spain (who has a relatively clean electricity), a reliable system of panels+battery will have emitted 85gCO2eq/kWh over its life. If we correct for the more realistic case of 1000kWh/m2/year (the average in Germany) and panels being built in China with its dirty electricity, the system will have emitted 217gCO2eq/kWh. On the US the insolation is higher, at 1700 kWh/m2/year, so it is going to be around 100gCO2eq/kWh. Here's a map of insulations here:
https://upload.wikimedia.org/wikipedia/commons/1/1e/Global_M...

In contrast, nuclear is at 12 gCO2eq/kWh (https://en.m.wikipedia.org/wiki/Life-cycle_greenhouse-gas_em...). The disaster that solar is should be clear for everyone.
I agree.

Getting rid of the headphone jack is to me much like getting rid of the floppy. I love having four usb-c ports on my mbp that is either power or data transfer. I bought a 13” mbp last year when they got four cores, loving how portable and light it is, and just connecting one cable gives me display, power etc,

Every day I love my expensive current rig of mbp, iPad Pro with pencil, AirPods and bose q35.
It's "easy" to move, but not cheap - particularly for all the clubs which have thousands invested in 2m repeater hardware.

There are many thousands of repeaters around the world, worth hundreds or thousands of dollars each, mostly in remote locations or on private land, and almost entirely funded and maintained by volunteers.

The loss of this band would definitely hurt ham radio!
> he kept trying to parse JSON by splitting the string in Java

I truly do not understand the mindset that, when presented with a simple means of doing a complex task, will do it manually[0].

If a junior dev did that in front of me I'd seriously start doubting their capability for the job.

[0] The one single allowable exception is doing a crappy task manually the first time so you know how, before switching to a tool. My first parser I ever wrote I did manually rather than with flex/bison so I knew how to. After that it was tooling all the way.
Rich(er) Learning Environments for Developers?
Areas that seem interesting to me:

1. A focus on discoverability. StackOverflow has set the bar on being able to find extremely specific results; could a similar experience be brought to course content?

2. A way to "layer on" complexity. I always find the early exercises overly simple; try to jump ahead; and then have to go back to try find where supporting info is addressed. Being able to navigate this explicitly. Start with a complex example; peel back the layers to underlying concepts - go up and down the levels over and over.

3. A platform which allows linking through all related topics. Similar to following articles in wikipedia - being able to start in a course on
https://github.com/zio/zio and end up learning the relevant Category theory (I think; or whatever theory ZIO is build ontop of)

4. Always interactive and being able to immerse in real world ASAP. The jump between "exercise tasks" and "real world" often is large; but with environment support, and leveraging open source, the context of the lessons could be enriched.
I'm assuming Duplex can just figure out how to solve the captcha.
The original iPod is a peripheral for people who already have Macs. Even later on, the iPod is a peripheral for people who already have either a Mac or a Windows PC.

My point is, peripherals can be successful and game-changing.
And yet most of software for quite some time was/is written in OOP languages.
Reddit thread on what it's like in correctional facilities for troubled children
I dont know as to why you would infer that I am calling a couple of hundreds of million people racist. I will restate what my assertion is. Identity politics is the political paradigm in India. Majority of the populace in India votes on basis of identity, caste, creed or religion. The linguistic identity of people is the best and only identity politics that is there. Now if reorganisation of Indian states on basis of water considerations will lead to situations were politicians will exploit and portray the reorganisation as imperialistic designs of north Indian hegemonies of Hindi and Hindutva policies even though the policy will be based on water considerations. Add to this the influx of Chinese and Pakistani influences and situation may get worse and we might have a humanitarian crisis on our hand.

And I do reiterate that I am not against linguistic units of governance.

And also this is the worst case scenario but nevertheless a scenario. All depends upon how our politicians portray these to citizens and when it comes to politicians, we never know.
It is something experts must fail to do. Documented extensions fall under "undefined behavior", and a lot of real-world coding requires them. Oh, and use of header files and functions not in ISO C is undefined behavior. On a POSIX system #include <fcntl.h> provides definitions of things like F_DUPFD. But there is no reason why on some non-POSIX system, #include <fcntl.h> might not cause the rest of the translation unit to be compiled as Fortran 77. The include mechanism per se has the well-defined behavior that, if the header is found, it replaces itself by the content, which is thereby incorporated into the translation unit. But if that header isn't coming from the program, or from ISO C, then the content is not defined by ISO C.
Quite a bit breaks down with age including a massive reduction in night vision. https://www.allaboutvision.com/over60/vision-changes.htm

This might not seem like a major issue to us, but would be if trying to walk around by starlight at night.
>> you want to know if any of your contacts are on it already.

> For me that is an anti-feature and something which I have so far never wanted to do.

This is also true of me. I have no reason to want to know if any of my contacts are available through the messaging app I just downloaded. I downloaded the app because I want to communicate with a particular person or set of people. I already know about them.

These people who would like to know if anyone in their contacts list is available on their new chat app -- why did they download it in the first place?
D doesn't belong in this category. If anything, D should be put next to Rust, C++. D is a very complex language compared to C and it offers all the C++-like features like templates and OOP.
A General Project Structure That Works in Any Ecosystem
how much is Coca-Cola[1][2] to blame for this. Afaik it has been the center of criticism in India for over a decade now:

Coca-Cola operates 58 water-intensive bottling plants in India. In the southern Indian village of Plachimada in Kerala state, for example, persistent droughts have dried up groundwater and local wells, forcing many residents to rely on water supplies trucked in daily by the government.

[1] https://www.thoughtco.com/coca-cola-groundwater-depletion-in...

[2] https://waronwant.org/media/coca-cola-drinking-world-dry
When the magma has cooled enough the rock would be in space or in the upper mars atmosphere at least, not touching anything.

Anything growing on mars surface would burn, only an hypothetical floating microbe could land in this rock after cooling, but would be like expecting a bacteria landing in a bullet, surviving the impact and then sticking to the surface whereas still alive (and much later surviving a second impact against earth after years in outer space). Seems unprobable.
If I go to/from work and there's a huge difference in AC and outside I get the following effects:

1) Cold at work, warm outside. Need different clothing at work, such as a longsleeve.

2) When switching from traveling to/from work the difference in temperature is huge.
Twenty years ago I wrote C++ code that was easily verifiable to be memory safe and free of leaks, just by using a handful of smart classes and sticking to them.
An embedded persistent key-value storage for Rust
Overdeliver
I think a semi-detached is a duplex, but the latter term is more broad, covering also two-story apartment buildings and such: https://en.wikipedia.org/wiki/Duplex_(building)
The article also does not mention that not only Excel Formulas are localized, but VBA was localized in Office 95 as well [1].

This is German VBA:

Funktion VorherigerGeschaeftstag(dt Als Datum) Als Datum
Dim wd Als Integer
wd = Wochentag(dt) ' Wochentag liefert 1 für Sonntag, 2 für Montag usw.

Prüfe Fall wd
Fall 1
' Auf Sonntag wird Datum vom letzten Freitag zurückgegeben
VorherigerGeschaeftstag = dt - 2
Fall 2
' Auf Montag wird Datum vom letzten Freitag zurückgegeben
VorherigerGeschaeftstag = dt - 3
Fall Sonst
' Andere Tage: vorheriges Datum wird zurückgegeben
VorherigerGeschaeftstag = dt - 1
Ende Prüfe
Ende Funktion

[1] https://de.wikipedia.org/wiki/Visual_Basic_for_Applications#...
Exploring Async/Await Functions in JavaScript
Isn't dual apps a miui only feature ?
I work from home, family of five and 100 is not enough.
all my tv comes over internet. three TVs, often two on at the same time. add kids with tablets, and streaming radio, teleconference and virtual desktop and 100Mbps is struggling.
Latency is the tough part, less latency matters for most interactive activities.
i work from home: 360Mbps up, 35Mbps down.
Der Spiegel smashes Audi e-Tron: low range, buggy charging infrastructure
How is this bad? They are providing a service. If somebody does marketing better than you, why shouldn't they be able to make money from that?

If the restaurants don't want to work with them they can just not. That they do proves that it is a net benefit.
Well, here's what people over here tend to live in:

https://en.wikipedia.org/wiki/Khrushchyovka

These buildings were developed in massive numbers back in post-WW2 years, across the whole Soviet Union. with the task to move people out of barracks in some sort of relatively comfortable housing. Back then there wasn't much money to spare (still isn't). They typically have pretty bad insulation and are built out of, as we say, "cardboard" walls.

When it's cold enough outside (-35°C and lower), you can see the energy losses with a naked eye, as hot air escapes through every crack in the building (and there are a lot of them). No need for thermal cameras.

People over here just don't give a fuck about nature. Now it's the middle of summer, it's +33°C outside. I am sitting in the office with two ACs running at full capacity and with all windows open, because "there isn't enough air". I tried arguing with this, but it's pretty difficult to go against all my coworkers at once. It's a cultural problem, and I have no idea how to fight this.

Thanks for the sanity check, though, at least I know it's not me going crazy.
There was always some criticism of OOP, even when it was at its peak in the era 1995-2005. Paul Graham, and many others, wondered why OOP was enjoying such a vogue. But after 2005 the focus began to shift. I tried to cover a bit of this history (the long term trends) back in 2014 when I wrote “Object Oriented Programming Is An Expensive Disaster Which Must End”

http://www.smashcompany.com/technology/object-oriented-progr...