skysight-inc/HackerNews huggingface dataset:
> What is "legacy code"?

> "Legacy code" is a term often used derogatorily to characterize code that is written in a language or style that (1) the speaker/writer consider outdated and/or (2) is competing with something sold/promoted by the speaker/writer. "Legacy code" often differs from its suggested alternative by actually working and scaling.

Oh? To me legacy code is code that's been put into production. The moment it's in production, you have to maintain it, you have to worry about backwards compatibility and interoperability. The moment it's in production the field is no longer green.

Perhaps production code is only legacy code the moment you want or have to change it, but since that almost always ends up happening, so the moment it's in production, it's legacy.
> Dany Shoham

So the same guy that claimed ISIS have biological weapon? Other than public information, so what does he know that others don’t? this guy has no credibility to begin with.
Say iMessage, for example?
Rust is close enough to that language.
Aren't these cables notorious for fraying and breaking?

https://frayedlightningcables.tumblr.com/

Anecdotally, my friends' cables always seem to be frayed. I personally have not owned an apple phone in many years, but I recently bought an apple brand usb-c to 3.5mm adapter at an airport because that's all they had and I forgot mine at home... It stopped working after about a month of very gentle use. It's in perfect physical condition.

The point is, if you have to keep replacing them, it's not a reduction in e-waste and runs counter to the spirit of the ruling.
In some countries it is considered the ‘cost of doing business’.
>first of all, you only expose yourself as being a terrible human being by making that comment at all about now deleted comment from the troll.

That person wasn't a troll. They were actually trying to help you.

Yes, their advice was somewhat callous.

>why did you feel the need to even say that?

Because you created this thread asking for help.

Sometimes people in certain mental states aren't even aware they're in them, because being in that state blinds them from seeing that there's anything wrong in the first place.

The post you deleted included:

a) Calling the guy an "NPC pedestrian"
b) Quoting Galileo, in Latin.
c) Talking about how you're speaking truth to power.
d) Hiding your power level around Normies [sic]

Likewise in your reply here, you immediately launched into a screed declaring me a terrible human being, part of the societal-level problem, and proceeded to rail against "Big Govt".

I'm not offended, nor am I out to get you. What I'm saying is, none of that is remotely healthy—let alone conducive to solving your immediate problems. You almost certainly need to seek psychiatric care.

There's no shame or stigma in it, and there's plenty of developers here on HN that are gainfully employed with successful careers only because they're on medication.

>and what do you think those links to city services provide?

At best, what they say they do. I know the system sucks and I'm sorry it isn't better.

Either way, I wish you the best.
It's rare that such large sums would go through the campaign-finance slot. Supposedly Biden received only $200k from the credit card industry for his awful bankruptcy "reforms". Of course larger bribes are paid, but they are less direct and less public. One method I've seen up close (I worked for Lucent back when they were in business) is to hire close relatives of favored politicians at vastly inflated salaries for "show-up" jobs for which those relatives had no observable skills. Those relatives would eventually transfer large portions of the millions they "earned" to the politician, but there was no hurry. In addition, there are sweetheart "investment" opportunities that somehow are only offered to politicians. We've all heard about the exorbitant "speaking fees". ISTR a mayor somewhere published a book and arranged for certain constituents to buy thousands of copies of it. Avaricious politicians have imagination.
Try working with a large 5 year old JS codebase that's been hammered on by dozens of devs. The problems are no longer just pin point bugs but a systemic lack of modeling.

Static typing is not that much about preventing bugs but more about forcing the code to operate over a well defined model.

Can you write good code without static typing? Yes. Can you scale and maintain it in a large organization, probably not.
It’s surprising considering how cheap SIM card chips are. It’s not hard to do secure elements these days, at least at scale.
Apple should balk and just pull out of Russia over the whole thing. At $3 billion market size for iPhones (according to the article they were not clear if $3B was TAM or rather the iPhone segment of a broader mobile market), that means somewhere between 3 and 6 million Russians are going to be forced to abandon their iPhones. Nothing is more pitiful than watching a long time iPhone user try to operate an Android device. Thats how you end up with a Russian Spring kind of situation right there.
Microsoft Ad Monetization platform shutting down June first
I took this as a Silicon valley joke.
One of the many Asian shopping centers near me in Santa Clara County (Wolf Road, Cupertino) was much emptier tonight than it usually is. I think people are staying home out of fear.
I want to name my kernel Lennox
Which are some books focused on IRs you’d recommend?
32gb, the beef grafix card and 2tb ssd and the lg 27”
5k display here with No fan issues.
Microsoft Advertising is the only realistic ad platform for Microsoft Store apps and this eliminates a huge swath of business models. IMO the writing is on the wall for Microsoft Store apps.
My understanding is that none of the Type-C magnetic cables support TB3 or high power options. So they can't be used for connecting a laptop to a docking station, for instance.
So you're saying it's 100%, without a doubt bribery, but we're just going to use some tricky language so it doesn't sound like that.

America is corrupt to the very core, don't try to explain it away with newspeak or some kind of roundabout language. It's extremely common to buy the favour of politicians.
A scalable photonic computer solving the subset sum problem
Why not just use USB? Standardise all instruments on USB and use adaptors for backwards compatibility.
If one is of the tinfoil hat persuasion, then

https://en.wikipedia.org/wiki/Underhanded_C_Contest
They have happened at some place at some point in the past seems pretty weak to go on. A lot of things have happened in the past, doesn't mean they're all potential causes this time around. Seems to me we need a bit more than we've had bio lab incidents before.

I mean by this measure any time someone crashes a car it could be an assassination attempt. It's happened before.
I presume it should also be possible to reduce the threshold for my contacts/friends... so that strangers emailing me for the first time need proofs, but frequent contacts don’t.
The same way pulseaudio stops playing when the screen locks. Most annyoing behaviour I've ever had.
Interesting. Probably missed a Cache-Control header opportunity in the Lambda function.
Bigger may be better.

After all these devices are hard to use in part because if the tiny screens.

Since most of the time you don't carry them in your pocket it does not appear to be a problem if they are bigger.
You have a boner for the NSA. Seek help.
USB-PD doesn't use the data wires (dp/dn or the two high speed diffpairs), it uses a sidechannel (CC). You can have a full PD implementation without a host controller or any data connection.
Sabbath: From Arrogance to Destruction
> the HSM

Which HSM? There are multiple vendors.
Tesla vehicles (and their superchargers) use standard connectors in the EU.
Ah. You were thinking ios as mobile. ios is not the only mobile. Xmpp is fine on android.
Just bought the book. Thanks for replying with some valuable insights!
Nonprofits in California are allowed to take out loans to acquire capital. They are also allowed to spend money to improve the service they offer in the furtherance of their tax-exempt purpose, so long as the capital expenses don't count as self-dealing (like the .org sale, allegedly). There's no legal basis for either of those claims. The thing they can't do is go out and sell equity for VC money on their core purpose, or exceed the legal threshold for unrelated business income. But neither should be necessary to improve the nonprofit, especially given that it already has a surplus of money.
"there’s only two participants in this prisoners‘ dilemma, and they are both, theoretically, under the purview of rigorous enforcement in countries governed by law."

What? No.

There are 1000's of participants, and few of them are under the purview of the law.

1. Someone wants access to a Malaysian Air exec at some hotel event. Bribe someone for info.

2. Someone is overseeing the aircraft regulatory body, their findings will sway one way or another. Bribe them.

3. Someone is drafting legislation to support the state-sponsored purchase of aircraft. Bribe them.

4. The brother of the 'deciding individual' at Malaysian Air hints he can help access. Bribe them.

5. The people responsible for lower-level contractual affairs are putting up a fuss over some little details? Bribe them.

6. The 'respected international consultancy' is putting together the business plan for the national airline strategy. Bribe them.

7. The executives making the purchase want a kickback. Bribe them.

These bribes come in all forms, some of them more or less legal, or more or less ethical - depending on the law.

Does giving the son of the Malay MP drafting relevant legislation a job at Airbus constitute a bribe? Or just congeniality?

Does flying in a team of officials for an all-expenses-paid, swanky getaway at a high-end swiss resort for 'a meeting' constitute a bribe?

In the West, a lot of this happens in fuzzier ways, borderline ethical. In other countries, it's just how business is done.

In other places, like Nigeria, it's pretty straight forward. Once you get to the Nigerian Minister of Natural Resources, he will have spelled out for you by people in his periphery beforehand nature and expected size of the bribe, how it gets transmuted so that nothing 'impolite' happens directly in his presence.

If you're an American IT company that has support offices in the Middle East and Africa that subcontracts the work to local companies, but then wants to end such contracts in favor of direct hires ... and said subcontractors are connected - you will 'pay a bribe' out of the sunshine fund.

If you're IKEA and want to open a store in Moscow, you will pay x% of your revenue to a local 'businessman/thug'. If not - no store! So you wait a decade and realize you have no choice, and so you just pay the appropriate tributes.

Again - the issue is how the plebes in the West are going to react when they start to learn how everything is working.

The only way to 'end' this is to have a lot of various powers on board, and it's going to be different in every country.

It might work out differently in every country, and maybe at different levels of scale, or happen in a different way, i.e. instead of 'kickbacks', execs get lucrative contracts somewhere else or some other kind of benefit.

This will take a few centuries to sort out.

Edit: to be clear I'm not advocating at all for any of these shenanigans.
The EU regulatory bodies are full time fully funded bodies whose job is to keep developing regulations. It is not like you and I who are trying solve each problem as it comes up and move on. Their job is to find problems to solve first. If they get harder and harder to find they look harder and harder or lower the bar.
One was taken down by 12.7 mm ammunition. Clearly the Su-25 was not an extremely robust aircraft. It even has turbojets (hotter exhaust than turbofans) that are completely visible from the ground. A bit of armor around the pilot doesn't make an aircraft equivalent to an A-10.
I read that 66% of California voters approve of SB50. It is pretty easy to understand that allowing sensible, 4 story apartment buildings to be built next to transit/BART stations will help increase the housing supply, which should make housing slightly more affordable.

https://sf.curbed.com/2019/5/17/18629809/sb-50-housing-trans...

Still, California has a 2.5 million housing unit deficit to repay by 2025 or it risks a further escalation of the homelessness epidemic.
America is corrupt to the very core

Not long ago, I stumbled upon an old book in my uni library - Congress meeting notes from 1860s. It was fascinating to read about some dude who bribed congressmen to get his book published/distributed (the $50 book was about some tax rules, thousands of copies sold). One of his trial responses has stuck in my mind: "You gotta know someone to get things done". Nothing has changed. Oh, in that particular case, back then, a couple of congressmen lost their jobs, but no one went to jail, even though it was proven the bribery took place.
> Also some services straight up refuse to send SMS to cloud phone providers meaning you can't sign up for certain services that needed a verified phone number (unless they had an option to receive a call with the verification code which worked like 25% of the time).

I've ran into the same issue with this on Google Voice. Though sometimes I wonder if I could have gotten the best of both worlds by just porting a number from a traditional carrier to Google Voice/Twilio.

Are these kinds of checks only against the number itself? Or is there some kind of dynamic registry?
Ctrl is always a modifier.

So "C" is the letter C, "C-x" is ctrl-x, "C-c" is Ctrl-c, and there's no ambiguity. You can't bind anything to Ctrl on its own.
> Help, I'm using CPU intensive apps on my laptop and the fan is coming on!

If you had read it properly he said one time he had just booted it and had 3 Apple apps running (Mail, iMessage, and something else) and the fans were still loud. He says he'd understand if he had Photoshop open with many layers...
Isaac Asimov’s Throwback Vision of the Future
That is a great idea, but that’s not in there yet. I took note of it.
Loved the simple concept. I made it to the end of the game, and was a little sad because of what had happened. Nice touch.
First thing I did was search the article for the words activity monitor. Nothing. Moving on.
Let's agree that protection against physical access is extremely difficult.
HTTPS productscop com zylophin rx
Zylophin RX
Zylophin RX is a totally rare specimen of a male enhancement product that isn't handiest completely secure as a product however is also completely product of extracts of the natural herbs which might be organic and natural. moreover it's miles a key aspect that the substances that are used in it are chosen with a fantastic amount of care.instructions to use it:Zylophin RX is the product for you as being a very consumer-pleasant complement it's been extensively normal in addition to loved by the populace. additionally it’s no facet impact nature is likewise significantly praised by way of every one and that is additionally claimed with the aid of the doctors to be absolutely safe for any kind of consumer.
https://productscop.com/zylophin-rx/
> The APIs (D3D, etc.) do use matrices

D3D API exposes a way to pass constant buffers to shaders. You can pass whatever you want there, even integers. There're couple limitations, size must be multiple of 16 bytes, and can't exceed 64kb, but I don't remember anything specific to matrices.

Now, the only place I can remember which specifically targets matrices - mul intrinsic in HLSL. But that thing is just a syntactic sugar, usually compiling into dp4 dxbc instructions.
With the Clintons, the big conflict of interest is the Clinton Global Initiative and the Clinton Foundation.

It's a charity (which apparently does pretty good work) but it pays for a lot of things for the Clintons and gives them tremendous status.

Hillary Clinton accepted 100's of millions into her charity from officials with whom she, as a rep. of the US was directly doing business.

She was caught once, directly conferring titles to an individual who contributed to the fund, and the title had to be removed.

Even though I do not generally believe that this is a form of corruption, it's a massive conflict of interest. Just like an exec how owns 90% of a company and takes office has to put said investment in a 'blind trust' - I believe the Clinton Foundation should have effectively been turned into a 'blind trust' as well.

But there are 100% cases of soft pay for access going on here.

Edit: to be more precise, the Clinton charity accepted money from officials of countries and other orgs that the US was dealing with, wherein Hillary was a rep of the US Gov. Not necessarily individuals she was dealing with directly. I'm not throwing flames here, just saying 'conflict of interest'.
Yeah but with those you still vaguely know what the port is used for. I have devices with a type c and a micro USB port that only use the micro port for charging. I have devices with a type c port and a separate power connector that can charge over the type c port but only at 500mA. I have devices that can output video through their type c port but only when using a Display Link adapter which on paper needs USB 3 but the device only supports USB 2 data throughput.
> if languages like ... can operate either at/near the performance of C

That depends entirely on how you define and measure performance. If total throughput is your metric, then it's no problem - for example, Go is perfectly acceptable for web services.

Predictability of latency, however, is absolutely _not_ on par with C code. For example, 3D rendering with a GC can easily result in perceptible stuttering if care isn't taken to minimize allocations and manually trigger the GC at appropriate times.

> some sort of symbolic annotation that allow you to manually control GC

It's not that simple. D tried to sell this at one point, but it just doesn't work for large multithreaded programs and things aren't single threaded these days. Manually controlling a global GC means manually balancing, for example, one block of threads that perform lots of allocations and deallocations (and will starve if the GC doesn't run regularly) with soft real time networking code and hard real time VR rendering code. And (for example) you certainly don't want your rendering loop pausing to scan the _entire heap_ (likely multiple gigabytes) on each frame! Alternatively, in the case of Go (and depending on your particular workload) you might not appreciate the concurrent GC constantly trashing the caches.

Custom allocators and non-atomic reference counting are fantastic though.
One advantage that MIDI 1.0 had (and still holds) over USB is it's simplicity to implement on low power controllers and devices.

I got into programming 12 years ago thanks to MIDI, I wanted to control some of my guitar pedals with an Arduino, and the simplicity of the protocol definitely contributed to helping me hack things together and learn. I'm not sure it would have been the case if I had to learn the contrived details of the USB stack just to send a simple ProgramChange message (2 bytes) to my pedal (which uses MIDI DIN plugs, no USB there).

I can't wait to see how to get those 2.0 extensions into the library I built for Arduino [1]. Hopefully it will remain simple for newcomers to learn and enjoy programming by interacting with their musical instruments, like I did.

[1] https://github.com/FortySevenEffects/arduino_midi_library
> So you're saying it's 100%, without a doubt bribery, but we're just going to use some tricky language so it doesn't sound like that.

Possibly, but it'll depend on your POV and where you draw the line on what's bribery.

Scenario 1:
I represent a mega-corporation and I want legislation changed to make it easier for my factories to comply with pollution laws by changing the definition of pollution.

Is it bribery to say to politicians "Our friends see the current standards on pollution are an impediment to the way we do business. Friends help each other out. Would you like to be our friend?"

Scenario 2:
I represent a small business, and there's legislation proposed that would make it illegal for me to trade on certain days.

I've always given small donations to my local politicians because they've done things that helped my business, but now there's this threat that could ruin my business.

Is it bribery if I tell them "If you support this legislation, we, and all the other local businesses owners like me will no longer be donating to your campaign, we're going to support your opposition instead".
Because it happened before means it's happened again?

The amount of novel virus to have emerged from labs so far is probably very close to, if not zero.
I literally just explained to you, in a courteous and civilized manner, that many (in my opinion - most) people don't use the term that way. That includes me.

The irony of you ignoring my comment/experience, doubling down on your claim, and then going on to preach that "refusing to engage in any dialogue is exactly how polarisation begins" would be hilarious if it weren't so depressing.

People seem to have lost the ability to listen. That makes me sad.

Edit: Grammar.
Known weaknesses are actionable. Unknown weaknesses are not.
so it's a string of random hunches, all rotating around novel Chinese viruses and hiv

damn they're lucky!
I think the main difference is that in today’s compilers the parser is such a small part that whether you use a parser generator or roll your own recursive descent parser is mostly just a footnote.
..."In three years, the iPad will be more robust, Adobe Photoshop for iPad will be here — and for all I know, AI will just edit my photos for me in the cloud..."

AIs will just make make their own photos. The cloud does not need you.
I tried searching for "Armin Van Buuren" and then clicking on the name but it just kept loading after that :(
https://www.nature.com/news/inside-the-chinese-lab-poised-to...
So this is the only part of that wiki article that suggests you're right:

>The U.S. Supreme Court in Crandall v. Nevada, 73 U.S. 35 (1868) declared that freedom of movement is a fundamental right and therefore a state cannot inhibit people from leaving the state by taxing them.

I'm having a hard time finding a controlling case that says states can't do the inverse, i.e. levy fees on those who want to move to their state. I don't have the time tonight to read the whole case and its references, but I'm happy to be proven wrong here. Levying a fee on people who move in seems a perfectly reasonable thing to do. After all, we all have to pay move-in fees when we lease a new apartment or buy a house.
Hard negotiations: why a softer approach yields better outcomes
Yes, but. Suppose you build a thread-per-client service before you realized how much you'd have to scale it. Now you can throw more money at hardware, or... much more money at a rewrite. Writing a CPS version to begin with would have been prohibitive (unless you -or your programmers- are very good at that), but writing an async/await version to begin with would not have been much more expensive than a thread-per-client one, if at all -- that's because async/await is intended to look and feel like thread-per-client while not being that.

One lesson I've learned is: a) make a library from the get-go, b) make it async/evented from the get-go. This will save you a lot of trouble down the line.
https://www.nature.com/news/engineered-bat-virus-stirs-debat...

https://www.nature.com/news/inside-the-chinese-lab-poised-to...
It is sad when a jokes delivery is so bad no one gets it.