skysight-inc/HackerNews huggingface dataset:
No. Specifically, if the user issues the command line "cd ./foo; bar" a bash process is created that arranges for the wd to be ./foo during the execution of bar, but that cd command will have no effect on any subsequent command line (which will be evaluated by a different bash process).

If the target audience for this code were users other than just me, then it might not pay to arrange things that way, but all the motivation I personally needed to remember to treat the cd command differently while using the code I wrote was the very pleasant thought that my giving up on maintaining normal behavior of the cd command means that for my usage patterns, which again do not including using the code I wrote to interact with REPLs[1], no state need be maintained by any code whatsoever outside of the Emacs process except for the usual, expected state of the file system and any state internal to any bash processes and any of their child processes that are currently executing a command line.

Standard Gnu Emacs contains a M-x cd command, and that does modify the wd in a way that persists through the issuance of multiple command lines. (Again, I arranged for Emacs alone to keep track of the wd.)

[1]Standard Gnu Emacs contains the command M-x run-scheme, M-x run-python, etc, for interacting with a Scheme REPL, a Python REPL, etc. I do not happen to use any of them, but if I did start to use one of them, I probably would not feel tempted to re-write it the way I re-wrote shell mode (a.k.a. M-x shell) because I can think of no easy way to arrange things so that no state persists inside the REPL between command lines. What is special about interactive shells is that there is this single dinky piece of state, the wd, that if treated differently, makes the interface between the terminal or terminal-like thing and the shell process "connectionless" in the way that HTTP is connectionless: namely, after a command line finishes, the shell process and the terminal-like thing can just forget about each other.

I would imagine that this arrangement would be even more worthwhile for running shell command lines on lots of remote machines, but haven't written any code to effect it because I personally don't do that often.

ADDED. If I found myself writing "VAR=3 foo command" more than twice I would probably arrange for "VAR=3" to be permanently added the appropriate emacs variable (namely, process-environment IIRC). Basically, in my life the only environment variables that matter can be set once in a config file somewhere and forgotten.
The people that created it.
This is just too cool / creepy!
Abstract:
We present a PaperRobot who performs as an automatic research assistant by (1) conducting deep understanding of a large collection of human-written papers in a target domain and constructing comprehensive background knowledge graphs (KGs); (2) creating new ideas by predicting links from the background KGs, by combining graph attention and contextual text attention; (3) incrementally writing some key elements of a new paper based on memory-attention networks: from the input title along with predicted related entities to generate a paper abstract, from the abstract to generate conclusion and future work, and finally from future work to generate a title for a follow-on paper. Turing Tests, where a biomedical domain expert is asked to compare a system output and a human-authored string, show PaperRobot generated abstracts, conclusion and future work sections, and new titles are chosen over human-written ones up to 30%, 24% and 12% of the time, respectively.
Actually the word should be 'bribe', shouldn't it?
Typically, it is not wavelengths from the visual light spectrum. It is common to use infrared. For example, high-power infrared light can penetration at least 3 cm into the brain.
This is an article by a Democrat, in a left leaning publication, about things Democrats have got wrong politically recently and what they need to do to correct on to the right track. Seen that way, Illustrating it with a fallen Hollywood icon seems particularly thematically appropriate.
>Huawei's microchip vulnerability explained

This article does not explain a single thing about why those chips are vulnerable.

It just enumerate some of the components within it.

Those clikbait titles for ad-revenue are becoming a real issue...
What? Even my local news has had stories about black people claiming they were called racial slurs or subjected to racist jokes at work. Google “GM plant racism” for a national story, of Tesla, or Chrysler. It’s been an issue at all in the last few years.
U.S. Postal Service Starts Testing Self-Driving Trucks
> I bet there are far more low level developers now than 30 years ago, however.

30 years ago every developer at least knew how bits and bytes with logic operations work.

Now, just any minimally proficient C/Cpp devs are genuinely hard to find. I may well say that there are less of them in total now.

C development community shrank a lot over the years.

Things went so bad that now some people suggest running whole web servers on MICROCONTROLLERS to just blink some LEDs!
>Instead of using the "message bus" of Smalltalk or Objective-C's "objc_msgSend()", the world has decided to express the evolution of software via multiple programming languages and runtimes and by the mechanism of software updates instead of depending on a single language ecosystem like Smalltalk to write a metaphoric cell biology system to evolve itself.

I find your post very insightful. I'd just like to add that you have that kind of message passing in Elixir and Erlang, and they also support hotswapping code. So the idea didn't completely lose in the marketplace of ideas. It did lose the war for the name OOP though.

I'm not a fan of what we understand as OOP today either, just looking at the GoF book should make you think whether you want to work in the model that makes all this necessary. So I kind of understand Alan Kay. I just think calling Elixir an actor based functional language is just as good to me.
clickbait/propaganda title. there is no vulnerability in the security sense. i guess they mean an economic vulnerability, because the chip is made up of parts made by american companies. however they don't even conclude this. they actually make a point that the american companies' revenues will suffer.
Yes you are correct, there are more than 5, my bad.

>> Especially impressive given that Iranian F-14 pilots at the time couldn't get more Phoenix missiles from America due to sanctions

That is correct too. There was a short period in which they were able to get some more during the war but pretty much all they had was purchased before the revolution.

>> so there was heavy emphasis on trying to win engagements without using them.

So heavy that there is a story on how the Iraqi fighter had to eject in Kuwait because he used too much fuel (due extensive use of afterburner while shooting their missile). The Iranians were just trying to out maneuver the missiles shot at them since they did not want to use theirs!
Does anyone else think mTLS on the public cloud is a waste of CPU cycles (and therefore money)?
Throwaway for obvious reasons. I was let go due to "financial reasons" because a co-worker brought up her ass to me and my confused reply, which I didn't mean to say it loud but being exhausted it slipped part my filter and I mumbled it out loud, was cited as sexual harassment. I immediately apologized either way. She shook her ass at me despite us having no real relationship, me being married, her being 10 years younger than me and her talking about it, but I was sexually harassing her in her eyes. I can say for certain real sexual harrasment happens and I've even put a stop to it in more than one occasion in my management role or at family settings, but I've definitely been falsely accused. I brought up the conversation to my wife the night it happened and she thought it was hilarious because she knows me. Especially back then I was very socially awkward. Something I've worked at for years to get better at. I now work with multiple female coworkers very well, but they are all adults who don't behave like this to me.
Huawei will suffer a little bit in the short term and most likely come back stronger since they have the home market and resources to develop a new and better phone with non-USA parts.
This trade&tech war is just beginning and is pushed by the USA to do everything without parts/commodities from the USA. So that is exactly what China will do. It will take some time, but China has plenty of resources and
- will buy soy from Russia and stop buying it from the USA
- stop buying tech from the USA and make it themselves.
Not well thought through by Trump and his advisors.
Web Developer Road Map
It's not the chips that are vulnerable - it's Huawei's business that's vulnerable to the US blocking them from obtaining those crucial chips.
The freedom is in being able to use your device how you want, regardless of what Google or the manufacturer wants or decides. This means that you always have access to Google's framework/store if you want it and you'll always have access to updates in one way or another. So, yes, complete freedom. Show me a phone platform that gives you more freedom than that.
I agree completely. It's one of the biggest problems I have with left-leaning activists, especially on Twitter. They abuse terminology constantly (like using rich to refer to the much broader concept of financial privilege) and it causes a ton of problems. So much online discourse is just people talking past each other using different definitions.
Yep. The SATA hat takes in 12v, converts it to 5v power for the nanopi and has a molex connector for powering the hdds.
> What a modern C compiler produces with a little help from the programmer should be reasonably close to what you can achieve by hand.

Unless you're an expert in ASM / have an unlimited amount of time / work on an extreme edge case I'd say the compiler will beat a human 99.9/100
Actually, it's in the first paragraph.

The rest is history.
The article goes to length about backroom dealings but has a lot of unnamed accounts, rumors and speculation. For me this is just an authority argument (trust us but not them) which doesn't work for me since I don't know this organization.

That being said, this kind of sponsored opinions is kind what of the EU does. NGOs get grants, EU asks NGOs opinions on legislation. It can all be fare and right but it sure looks like the same.
Airbus Extends Range of A220 in Bid to Dominate Regional Market
For a guy that did little to make Chicago a better place during his 2 terms as mayor, he may want to spend more time on self-reflection rather than pointing his finger at others.

https://theintercept.com/2019/05/20/chicago-mayor-rahm-emanu...
I fully grant your point that the rate at which Chinese were brought into the middle class is dependent on fossil fuels.

But similar to your point on the infancy of renewables, this is largely because ICE and other fossil fuel technology has been improved on for the last 150 years. It's unfair to compare renewables to this standard as they are still very much the new kid on the block.

What I think will be very disappointing is if we, as a society, decide to blindly continue focused on fossil fuels because we're optimizing in the short term, rather than the long term. In my opinion, we should be leveraging the last 150 years of fossil fuel technology as a stepping stone to something more sustainable.

I think there's a tendency to treat it as an overly simplified optimization problem, as in we need to maximize output at all costs. It's probably better to set it up as an optimization problem with the proper constraints. These constraints may be externalities that the government is involved in regulating. Yes, we may sacrifice some short term benefit for long-term success. But we (hopefully) won't have squandered an amazing resource like fossil fuels for an ill-advised myopic gain.
I think the title is a bit confusing, I'd say pure clickbait.

Anyway, interesting topic, let's see how this ends...
WebRender has come out of Mozilla's Servo browser engine project, which has had influence on the development of Rust itself. The language and the browser engine have been developed together, so this and other parts of the Quantum project [1] (mostly bringing parts of Servo into Firefox) are like the culmination of all this work, and a validation of the language.

[1] https://wiki.mozilla.org/Quantum
sure, after all you have the world writing for you. The best minds out of hundreds of million put their stuff online faster than you could consume it all. However, if that wasn't the case and we were neighbors I might be one of the few people that you could even have conversations of this kind with. Instead of flaming me and then going on to the next link you might "settle" for a less then pristine conversation and there is at least a chance we become friends. Meanwhile in the real world: https://www.psychologytoday.com/us/blog/modern-mentality/201...
This can't be said enough. Taking the time to grow the company for a long term legacy is much more rewarding than a quick buck.
I've modified the original title to hopefully make this clearer
Measure Your Teams’ Effectiveness in 2 Minutes
I think his point is that it should be documented online, in an ever-green knowledge base...
Looks like we're both half right: Safari shipped as the default on 10.3, but Safari 1.0 was made available for 10.2 as a separate download before that.
I so very hope the Chinese government retaliates with a similar ban, it'll be fun watching Apple stock plumet. This trade war is getting out of hand.
I think that was supposed to be the point: a senior engineer doesn't have to.
Apple really does need to get on top of this. It’s easy for old timers to miss as in general you stop looking at things like the programming guides and end up straight to the class reference which generally is still ok. But one of the things about Apple’s stack is that it is built on a lot of years and layers of and is generally not as approachable for someone just starting.

The docs like the programming guides and the framework overview docs really help with getting your head around why things work the way they do. I’d even say that a lot of the frameworks are built with the idea that you have read them. Most developers I know who worked with obj-c and OS X really loved the cleanliness and care spent on this aspect.

I don’t know if they are trying to outsource this work to save a little money or if it’s just neglect but the end result is going to hurt them in the long run.
I only skimmed the article, and I've only driven a Tesla (Model S) for a day, so my review/comments might be incomplete, but I almost completely disagree with this article.

1. I love the size and quality of the touch screen. Nothing in other cars compares. Usually screens are small, low resolution, require forceful touch or aren't touch. (Recent issues with screens failing in heat are a big minus, but I'm sure technology will improve soon.)

2. I barely use any of the "buttons" (or other controls) while driving. I almost always use the same temperature, and usually set it when I get in. Same with navigation destination. Edit: In any case, I think the big safety risk is using central controls at all, regardless whether they're touch-screen or physical buttons.

3. Most controls that you use while driving should be placed on the steering wheel - things like music/radio and cruise control. I don't recall how it was in Model S, but many other cars have this, so I consider it a solved problem.

4. Reverse video camera, in most cars, automatically starts when you start reversing (I don't remember reversing in Model S so maybe they didn't do implement this yet). As this requires the car to come to a stop, even pressing some obscure button can't be "unsafe", at most a nuisance.

5. Some controls are important and are usually not on the steering wheel - things like lock/unlock car doors, and the 4 blinkers button. I think these would best be placed on the driver's door, or alternatively on the top of the center console (above the screen) so that the passenger can also access them.

6. I don't use lane assist, and I'm not sure whether having it is a great idea... people might come to rely on it and thus become worse drivers on their own. It's often implemented as a light in the side mirror, which I personally dislike - the implementation is bad (false positives, or turns on when I'm not changing lane) and the light flashing at the edge of my viewing field distracts me from the road ahead, so I always want to turn it off. I think a useful UI would be, to change the sound that the blinkers make, if the car detects an obstacle on the side.

To conclude, I can't wait until big touch screens are adopted by other car manufacturers and most other buttons are removed.
Ask HN: AWS users: how does your team connect to your dev/prod VPCs?
We've been using OpenVPN to connect our individual laptops to our hosted environments and I'm wondering if there's anything better out there that we're missing. (I'm surprised AWS doesn't have an in-house solution for this.) I'm aware of WireGuard but I'm looking for more of a packaged product like OpenVPN than a bare technology.
The second paragraph is:

"Why did the site shut down? I’ll get to that, but let’s start with a little history"

The history wasn't highly relevant to the explanation. Lead with that and if people want to know more they can keep reading.
I believe that this was done on purpose. Elon clearly wants the driver seat to really be a passenger seat, in the sense that the buyer of the Tesla would simply pop on Autopilot and then be able to focus this attention on the screen. I personally think that this is incredibly wistful thinking on his part, but to his credit if he didn't think big, Tesla wouldn't have gone anywhere.
She “brought up her ass to you” and your reply “slipped part your filter”. What does any of that mean?
> your codebase doesn't solve the problems most of us solve

Why not?

> and use the stacks most of us use

Probably. Or at least not use them the same way.

I am consistently amazed by the time even unit tests take when I join projects. If they have them.

And those unit tests are usually also at least part broken and very incomplete. I would argue those phenomena are closely related.

The unit tests for one of my projects typically run in the ~1 second range, meaning that I can, and do, run them as part of the build process. A build is not complete until the unit tests pass.

This includes Postscript/PDF interpreters, so it's not just testing completely trivial stuff.

(Just checked: currently 3.9s real for 1498 tests across 9 projects, so a bit on the slow side overall)
One need only consider that Orthodox File Managers have been in existence for decades to realize that yes indeed people do like to work with more than plain lists of filenames.

Playing the "doing one thing" card when it comes to ls is rather risky, as ls, with its options for doing things like sorting its output, is one of the favourite examples that people point to of tools that do not adhere to this philosophy in practice.

* https://news.ycombinator.com/item?id=4023265

* https://news.ycombinator.com/item?id=9673975

* https://news.ycombinator.com/item?id=8484718

... and so on.
I wonder who is behind that article - the mention of lobbying against music group copyright extension seems a telling non-sequitior. It is irrelevant to the topic at hand yet they are upset enough to bring it up as they see it as something worthy of bashing.

That isn't complaining about corporate influence but about who is winning essentially and sounds a lot like the agenda of angry old media that the world changed on them.
Nothing wrong with Safari, in my experience.
Excel and its open source variants achieved total market dominance by providing a seemingly future proof technology platform and a generally maintainable (usually by a single human) solution for business. The biggest hurdle with converting these programmable documents into applications has always been long term the maintainability of the replacement solution. Even Microsoft had it's fair share of failures developing simple programmable database solutions (Access, Visual Fox Pro) to meet the needs of businesses and governments that "just needed a little more than what Excel could provide". It's a marketing pitch that never fails because it underplays the cost of maintenance of the new solution and the real value of the spreadsheet.

I welcome solutions that serve this need for "better than excel" without succumbing to its pitfalls but I'm not holding my breath. Even this article just outlines a solution that could be implemented in Excel with a little extra knowledge from the user, making it "no better than excel" for the specified use case.
Is this clickbait? It feels like clickbait, I looked at the title and assumed there was a _vulnerability_ in Huawei _Microchips_ that I had somehow missed. Instead, it's about _Huawei's_ vulnerability to their _Microchip supply chain_. The usage of the word "vulnerability" in this context couldn't have been an accident, the author and/or editor had to have phrased the title this way on purpose.
Things are different in-the-small vs. in-the-large.

You can't statically typecheck the internet. Oh, and no-one said the failure needs to be silent.
More like bad reporting by the US media. Russia can't supply even a fraction of the soy required to fill the gap left by China not buying it from the US, they simply don't grow enough. The headlines gave you a different idea because that helped feed a narrative about Trump and Russia. (In reality, China growing their own soy did more to fill that gap, but that wasn't close to enough either.)

China has been trying to push for local microchip manufacturing for years. Where they haven't succeeded it's not for lack of resources put into trying.
The article explains (very well) what the benefits of dynamic typing are, it's just that Python is a terrible language that spits in the face of Alan Kay's ideas. It's like someone went out of their way to create a language that would not be too paradigm shifting by discarding the crucial elements that Alan Kay keeps raving about and only choosing the most superficial with the only consideration being ease of use and popular appeal.

Try programming in Erlang, Common Lisp or Smalltalk. All dynamically typed languages. All meshing perfectly with Alan Kay's vision. All very different to Python. It's too bad that people's idea of "dynamic typing" has been - mostly - reduced down to Python and Javascript.
The StackOverflow surveys only show you the data from the people who want to answer. It's always going to be skewed one way or another. I use and like PHP, and I rarely do the SO survey because I never see it in time.
IE 5.2 was damn good.
There are current laws on the books which are not enforced when it comes to sharing mental health information with national databases to restrict gun ownership from those with severe mental illness. These aren't recent laws either, they simply never were budgeted at a federal level and there's no desire at the state level to foot the bill.
If only you could modify the title on BBC's end.
That's not my experience. Usually it only takes me a few minutes to fix a bug once it has been caught by an integration test.
you are allowed to disagree, but from my view/experience that's the standard.
Laravel projects can be just as bad of a codebase as WordPress.