skysight-inc/HackerNews huggingface dataset:
Readers of your code are not reading only a single class's code; when I hear "20 different functions that all internally deal with price" that doesn't mean the state is shared, but the linguistic context of the project is still shared. Just because in the real world we have conversations among small groups ignored people within rooms that encapsulate sound and information doesn't mean that within a large organization we don't find ourselves confused when someone says "price" without indicating what might or might not be included in that price. If you are using terminology inconsistently within the implementations of separate classes--or as the person you are responding to notes even if you aren't but the mistake is common--you could at least provide a glossary (if not use a longer name).
Waaay out in the water see it swimming
This is not needed, almost nobody uses that, not even in intrinsics. Due to CPU downclocking. Only the recent AMD/Arm/Power SHA extensions might be useful to be added.
> Scala.js and Scala Native will support Scala 3 eventually.

I'm looking forward to it! Now that the Dotty experiments come to an end and development of the Scala language shifts away from Scala 2.x to Scala 3 I think this becomes feasible!
Not all of us view death as the worst thing that has affected this species, not sure why we should all “fight” against this. Afaik there’s no way for this planet to hold and accordingly feed hundreds of billions of people (us, our kids, our-grand-grand-grand.....-kids, none of us dying), so what will happen in case we were given the “eternal life” curse is that we will stop having kids. I for myself would always choose the world belonging to kids/younger people instead of older people.
Yeah, I admit it would be nicer if the page loaded without the request first so you could see what it's about and then request the access once you clicked the record button.
Poorly!
As a certified "aged one" of seven decades I'm familiar with this. I think of it as simply another accessibility issue. I believe it is unreasonable to expect designers to adhere to any particular standard. They have stuff to sell and audiences to please and since the old often fall outside that demographic, they can be safely ignored. I think it is more important for the older user to have tools that can mitigate the situation as needed: the ability to easily adjust screen resolutions, increase contrast or switch to a plain text display without distractions. I would be happy with that...
All publicity traded companies are the same. The only distinction is the means they use to make money at first. Making money is the only goal, and shareholders demand growth quarter over quarter. This is why the fate of successful public companies is to become broader in scope while leveraging anti-competitive practices. The possible end results are either that the company is killed off, or that it effectively becomes the government or otherwise forces its host country into in oligarchy.
> over 4000 mentions on online medical aggregator PubMed

That is a weird statistic to choose for professing a proof of viability. I’m sure cancer has more than 4000 mentions on PubMed, does that mean cancer is good for me?

Why not cite a review of relevant studies instead? Quoting a meaningless piece of information is suspicious and lazy.
I am totally ready to see the last of the Boeing threads on HN. It's like Groundhog Day.
Objective-Smalltalk ( http://objective.st/ ) is a newish smalltalk that was very much inspired by this very message (no pun intended). And by Mary Shaw's work on software architecture, and, and...

So what might make a good metasystem? The ones we have are usually too specific, too concrete, the metasystem for this particular language, sort of like having a "types" rooted in concrete machine types (cough, C, cough). Smalltalk solved this for the type-system, with the root being something abstract, "Object". If you apply the same idea of creating a hierarchy to the metasystem(s), you come up with something along software-archtitectural ideas of component (procedures, methods, objects, filters, programs) and connector (calls, message-sends, pipes, variable access, ...).

And it turns out that this gives you parsimony, great power, and pretty darn good security of meaning.
The way I remember life before rss was adding a site to my favorite list then visiting them all on friday night and saturday morning to see what was new.
> the first time a debugger appears and you fix the bug in the debugger and just hit the “continue running” button is a rush

That is possible in other many other languages, including system ones like C.
I would stipulate that go channels are closer than erlang.
I.e. Erlang is actors, and actors are CSP. Go does CSP directly.
It's so cute when Americans who parrot the party line sincerely believe it's everyone else in the world who do.
I find non-apology apologies offensive.

https://en.wikipedia.org/wiki/Non-apology_apology

>Saying "I'm sorry you feel that way" to someone who has been offended by a statement is a non-apology apology. It does not admit there was anything wrong with the remarks made, and may imply the person took offense for hypersensitive or irrational reasons. Another form of non-apology does not apologize directly to the injured or insulted party, but generically "to anyone who might have been offended".

>Ifpology: Attorney and business ethics expert Lauren Bloom, author of The Art of the Apology, mentions the "if apology" as a favorite of politicians, with lines such as "I apologize if I offended anyone". Comedian Harry Shearer has coined the term Ifpology for its frequent appearances on "The Apologies of the Week" segment of Le Show.
I was just thinking that it looks great on desktop.
I worked for a company that hired heavily through the H1b. The ceo was a good guy who worked in good faith but he was replaced with a bit of an asshole who moved the office from The north bay to the South Bay, changed to an open office, and banned telecommuting (“because this is what google does”, though evidently the free meals, gym, and other things google does had less appeal to him).

Most of the us citizens quit, but the h1b holders, many of whom were still in the green card queue, stuck it out. I absolutely do not fault them for this. It was during the 2008 banking crisis and losing a job could be a severe setback from an immigration perspective in that market.

However it did mean that the company got away with bullying their workforce in a way that would not fly if workers were free members of the society they live in, rather than people who are allowed here only if they remain in the good graces of their employer.

I could go on about why this isn’t good for the tech workforce in general, but I hope it’s pretty clear. I hope it’s also clear that you can support immigration without thinking this is a good arrangement for workers. In fact I’m bewildered that people think it’s pro immigrant to put corporations in control of the system like this
O here we go with more canned Go insults. It's actually written by a bunch of old guys that have seen the evolution of programming and made the design for very specific reasons that you apparently can't understand.

Error handling is an active topic of consideration, but I kinda like how it is now.

Have you ever maintained production Scala code? I have and it was an absolute nightmare compared to Go.
It’s not that rare. The surfaces can have any orientation, they just can’t be deformed easily.

But the idea here is that it’s easier to understand. If you show an object space normal map, and then show the rendered model, you can say, “aha, it’s really obvious how that works”.

And then you can introduce the tangent space normal map, and describe how you use transformation matrices to convert tangent space to object space. Showing the object-space normal map gives you insight into how tangent space normal maps work.
I just had a delicious dinner (rice, chicken, veggies, soup) for $6 here in Brooklyn. I walked 3 blocks from my home to pick it up.
Acutally, its Yeezyjuice
You literally don't believe that "anti-Semitism led to the death of millions of Jews"? You know what that makes you.
"Notes to a Software Team Leader" - on Audible, is an older version of my print book "Elastic Leadership": https://www.audible.com/pd/Notes-to-a-Software-Team-Leader-A...
Yes, you are (of course) able to replace all occurrences today. However, you either need to call replace multiple times or pollute your code with a regex. This would certainly improve the readability.
Possibly the most beautiful brushstroke in the history of art
I agree we are in a transition period and that more maturity is needed for penetration but we are already underway. If you are an executive planning for the next 5 years, this is one of your goals for your engineering organization.
Nice work. I'm curious about how you built this.
Why do you think apprenticeship doesn't give profound education? The idea of apprenticeship is that you are learning directly from the master, who defines the curriculum. It starts with the theory which the field requires, you just do real work instead of artificial test cases to foster the knowledge.
Yes they are all analogies and metaphors, I don’t dispute that. My point is that even so they are very applicable to the kind of problem solving you might do when actually maintaining a motorcycle. It didn’t teach me to fix stuck bolts, I learned that later. But everything I do with any kind of construction or maintenance is in fact influenced by the philosophy of this book. By contrast, I rarely think of Star Wars or Dune or Of Mice and Men when problem solving, especially problem solving that involves tools.
Named arguments in Smalltalk always seemed a bit clunky to me because the order of the keyword arguments still matters. You have to write the keywords, but you don't get any flexibility over their order, just like positional arguments. I suppose you get used to it, but it seems annoying and not very scalable to having messages with many optional arguments. Languages that support true named arguments don't have this restriction.
What Does C++ Do That Rust Doesn't?
Go + Services = One Goliath Project
So then please don't cite Scala as an example of type parameters being not worth it.
American exceptional is pretty much a religion in the Christan judeo tradition whereby believers possess any amount of faith that they're the good guys and anyone with conflicting interests is evil.
> The ecosystem is fundamentally different from in the US, and western observers dont seem to be aware of this.

This comment misses the whole point entirely. Obviously this is not a simple issue about cultural differences. The key point is that a telecom company that is a major player in the telecom infrastructure busines and is desperately trying to control the world's telecom infrastructure is actually surreptitiously controlled by the Chinese government. This fact is not minor cultural nitpicking.
One of the points that gets overlook in Netscape's downfall is the company's decision to rewrite their browser. The company decided that their code base was too deficult to maintain so they went on a year+ quest to make a better engine. The result was a slower browser that was no better than it's previous version and could not complete with Microsoft's version. It was slower and had less features.

It was not the main reason for it's failure but the rewrite sucked resources that could have been used to compete.

In contrast Microsoft bought a browser and continue to improve it.

Ultimately the problem for Netscape was that it could not find a way to make a profit but the rewrite did not help.
Nothing can prevent all errors. Having explicit typing does not prevent `List<Users> bankAccount`, but almost all programmers prefer variable names that encode things not in the data types.

So I disagree that you must check that `employeesById` or similar are still a map type if a PR uses it. If it wasn't a map type, I would have expected that to be flagged in the PR that introduced the variable.
I've read a few stories, with different 'takes' on 'what went wrong'

They're all obviously coloured by the sources/reporter as obviously (in this case) if your pilot/simulator was impacted by cost cuts, then you're going to pin those dead passengers on your pilot/simulator changes.
I'm fine with that. I'd do the same myself.

What scares me though, is that even now the story is still a pile of anecdotal tumble-weed.

What do we know?
1) Enough passengers died for the planes to be grounded.
2) These deaths happened due to:
2.1) Larger engines being bolted onto an old airframe
2.2) Plane not being sufficiently updated to compensate
3) FAA being a bit too cozey with Boeing in certification.

"Mistakes were made"

What I'm not hearing is Boeing going through the stages on this.

Where did they make the mistakes? What should they have done? What have they put in place/restored to ensure it never happens again? etc etc

Boeing needs to try to own what it'll take to get their planes flying again. And that requires them to engage with the bazillion people they've pissed off - to defend why this particular cost-cut wasn't why people died.
On the way in, they leave everything from outside, and on the way out, they leave everything from the inside and take what they brought in from the outside.
I met a long-time collaborator of mine over drinks a while back, and we talked about Perl.

“It’s my second language”, he said.

“What’s your first?”

“English.”
in academia sure, have fun!
>Neuschwanstein Castle

This was a late 19th century project.

The medieval castle originally on the site was likely built by clans that had been bred by the Romans for hundreds of years for this exact purpose.
Did it work the way a scraper does? Curious to know how you did this.
China can organize its economy however it likes, but that's not a reason to expect other countries to be content with a lack of transparency.
You’re right. There will be downsides, but your snide remark at “liberals” was uncalled for. Not every person has the same beliefs. Limping every left leaning person into a “liberals” category is demeaning.
Look at your blog. Looks like you’re working on some sort of input device?

https://www.vivekgani.com/

Did you finish?
I'm not trying to guess where you work, or saying this applies to your company or team, but as usual, FAANG is not a very helpful acronym here.

From what I know there are very successful teams that use mostly Scala, at least at Apple and Netflix.

Now Amazon... I've had some AWS recruiter approach me specifically because I was looking for a new Scala job, who assured me they had a few products 100% in Scala. He then directed me to a team that didn't give a damn and was looking for a generalist. Not the first time I experienced the broken recruiting process at Amazon.
Do you have any good recipes? I LOVE Infant Jesus, I just can't eat a whole one.
Erlang is not running on top of the JVM but on top of its own VM (BEAM).

There have been some attempts to get Erlang running on the JVM but so far none that really made it worth adopting, and frankly I don't see how you could do it without losing everything that makes Erlang/OTP special.
It should be noted that Thomson Reuters would stand to gain from having more of this information published, because it would increase the value of their own products.
That's interesting, but even 2k scans of first gen film straight from the camera is far from razor sharp. What they have is probably a 3rd gen release print from the 70s, so 4k is likely not going to look fantastic by today's standards and definitely won't make use of 4k resolution.
Hiring Java devs is the problem. It's a lowest common denominator language.

Try looking for Ruby or JS devs. It's a lot easier to teach someone from a dynamic background how to leverage a type system than it is to teach an imperative developer to write side effect free code. State is a crutch.
Yes and no. Carl hewit will tell you that erlang's actor model is not pure (and to be sure a process doesn't have to be much of an actor - like Elixir's Task module). But I think that impurity is one of the strengths of the BEAM.

So I would qualify 'best' to meant "easiest system that 95% looks like actors that you can quickly get up and running and doing useful things and or play around with"
is that an actual app?
Can you link me?
What are you even saying? As if the America never stole intel from Russia?
>> outsourcing important work.

That reflects the management trend of seeing themselves as the customer and not the developer (of the company). What better way to reduce the number of opinions that must be considered than to turn your employees into service providers?
http://archive.is/wfhLO
You missed the big one that even made MCAS necessary:

0. Reposition the engine forward on the wing such that the airframe is inherently unstable and needs software for stabilization.
I can totally imagine wanting to reach it that badly -- what else could you do, turn back that close to the bottom? That said, they didn't actually know that a window had broken until they were already there[0]:

> After almost five hours inside their tiny 6ft 4in cabin, the duo touched down on the sea floor at 36,000ft. [...] They spent 20 minutes there identifying the source of the explosive sound – a cracked acrylic window towards the back of the sub's entrance tunnel caused by the immense pressure of the water surrounding them. Due to their extreme conditions, they wouldn’t be able to fix it until they had made the long journey back to land through the silent abyss.

They did still continue despite the sound and vibration, of course.

[0]: https://www.telegraph.co.uk/men/the-filter/true-story-behind...
Now your distinctions seem foreign to me.

Let's look at this structure in Python:

["qwe", 1.1, True, None, [], var1]

Is this an array, a linked list or what? Can an integer-indexed map be mapped onto this structure?

To me it looks perfectly cromulent for making a Lisp.
Wow, didn't know polar bears could go that deep.
ROI for bribery/lobbying is up to 22,000%.

https://www.npr.org/sections/money/2012/01/06/144737864/forg...
Satellite Internet has always been plagued by high latency, in the order of hundreds of milliseconds, plus slow uplinks and generally high costs.
Unless of course I missed some new development, which I think is unlikely because it would have made big news everywhere.
Tons of Apple money can solve the cost and speed problems, probably something can also be done about latency by keeping everything in house therefore reducing the number of hops, but IMO it would still be too much say for online gaming, and barely usable for realtime VoIP.
For Reddit on mobile: https://i.reddit.com
Shareholders by definition are not short term investors. Short term investors own bonds, short term ones to be specific. So it makes no sense that shareholders are scapegoated for everything. Even if someone trades in and out of Boeing stock in a millisecond, the existence of someone to sell to depends on people having an indefinitely long view of the company.
my ipad overheated while browsing the page
Ask HN: Best books you read in 2019?
Mine were the Three Body Problem and The Unicorn Project
I have no idea why you've been downvoted since you're plainly right. Do people think it a coincidence that the products found to be doing this seem to all be black market? Adulteration is common practice in the criminal drug industry. That's one of the major reasons so many people supported legalization in the first place, how could people have forgotten this?
I instinctively blocked access before reading the page because there was no way for me to read what the page was about before granting access -- and there still isn't, because it blocks scrolling or reading until microphone access is granted.
The quotes you personally selected actually admit that the technical aspects of the accusation are correct, but claim that the ability to exploit the gear to spy on their users was not intentional but instead a side-effect of the company's incompetence.
I initially read this as Boeing push to make trains profitable...
A Christmas Break-In
I still write Perl to this day on my personal projects and try to contribute as much as I can to CPAN. After more than 10 years it’s still my go to language. I think a lot of people are afraid of learning Perl just because they heard is hard to write or they came across some horrible code, I believe PHP suffered from this not so long ago. If you want a taste of using a really good web framework have a look at Mojolicious, Moose and friends introduce some really nice concepts around objects, there are many other interesting packages. The consistent documentation and testing around most of the packages on CPAN makes working with modules a breeze. Other languages like Python or Node.JS could learn a lot from the Perl community even to this day. The are just a few rules for writing code in Perl, the expresivity of which a lot of people are complaining it’s actually the Perl’s strong points.
>There has always been a lot of fuzz in how fast the Enterprise can actually travel, for instance

Been watching some of the original series and next generation lately. Next generation definitely focusses more on consistancy and explaining how the 'tech' works. I've noticed a lot of TOS is completely inconsistent with the technology and abilities of different things and even people between one episode to the next. TNG, at least for the most part, seems to try and keep the explanations more 'realistic' and consistent between episodes, at least from what i've noticed.
This might be helpful?: https://pullpanda.com/
Yes, I agree wholeheartedly - the H-1B tied hands system is bad (and your story is a perfect example of how it acts as a massive government interference in free markets and what precisely goes wrong).

The application process being discussed here is about green cards, which remove those handcuffs from the workers. Those companies which do sponsor green cards are basically giving up their ability to pressure workers in these ways.

Still, it seems clear to me that the employees are happier staying (and having joined knowing this risk) than going back to their original country, even despite the downsides. I'd say the underlying problem here isn't "Hire American" but "Don't create a class of workers that are stuck at their employer's company." American workers are better off when their H-1B coworkers can credibly threaten to quit.
That's awesome to hear! I'm recalling history, math, science lectures, english classes. Just thinking back to both high school and college there was a lot of lecturing.
Population is set to peak by end of century at 10 or so billion.
Not on this planet no, but the universe is a huge place. Space is the obvious next frontier.
This is one of my favorite things about Android. It's trivial to restrict access using AFWall+ . You can block all access, mobile data access, WiFi access, it any combination thereof on a per app basis. Highly recommend it.
the second derivative is negative
It has nothing to do with this task.

function replaceAll(str: string, pattern: string, replacement: string): string {
return str.replace(new RegExp(escapeForRegExp(pattern), "g"), replacement);
}
I considered mentioning this, but the way it works is editors ask specific scientists to review articles for them (for free). The editor sends the article (the "product") for them to review, in advance of possible publication.

Sometimes people agree to review articles because they get to see research before everyone else.