skysight-inc/HackerNews huggingface dataset:
I miss Union Station (I moved away)! It's such a cool place to hang out but never tried working there. Where do you post up, the cafe? I don't remember there being a ton of seats in there.
It'll always create a new object but my understanding is that at least in numpy the new and old object will share memory. Am I wrong there too?
Amazon Is Down
I've recently moved back into private sector, and it's been pretty surprising to me just how little of the business world has to do with actual business. There are the expected things, such as relationship building, empire building, fiefdom building, etc.

But, it also seems that a lot of the actual effort people expend doesn't have very much to do with the business. For example, we had an executive whose passion in life was clearly just to speak in front of people. He never did real work, but made sure to take every opportunity to ensure he was speaking in front of people. It's clear that he should have been a public speaker.

I don't mean to pick on this particular executive, but it seems like there's a lot of this here. A lot of people, engaged all day in things that don't produce work. They're more about building some special, separate social hierarchy: determining who is in charge, who has influence, who matters. That seems to take up a lot of time in the private sector. I'm sure it's not universally true, but this has been my ad-hoc experience.

And, I get it: this is what people do, and what people value. We're social creatures, etc. But it sort implies that everyone's engaged in a joint lie. That lie being "we're here to work and we're all hard workers. We're primarily interested in advanced the business." It seems like a more literal truth might be: "We're here to take part in a social hierarchy, and forge friends and enemies, and do enough actual work that no one minds how inefficient our business is."
Editorialize is the word you're looking for.
>confronting those thoughts and feelings directly and coming through the other side will end up being better for you.

I am not sure whether this is actually true, or whether the rumination and pondering will mess me up more
Ouch indeed! :)
In this case the author claims he could have obtained a patent and that code was copied.

Both of these claims are pretty easy to dismiss by simply looking at the respective repositories. They share nothing.
This gave me a good chuckle. Who or what is Qc Na?
I'm sure the push for Kotlin probably has something to do with the bitter lawsuit they're currently embroiled in, rather than a particular love for that language.
Objects do not necessarily mean polymorphism and they certainly don't necessarily mean polymorphism via dynamic dispatch. For example, it's entirely possible to just use objects all within the stack. It's entirely possible to implement monomorphism via generics.

So yes, object-hate characterises the popular but tiresome anti OOP sentiments going around.
This implies a rationality that I have not often seen in my professional life.

The places I have worked, HR has typically let the hiring manager decide if they want to promote an existing employee or start a new search. I don't expect remote work will change that much.

Given that, it comes down to the hiring manager and I wouldn't feel comfortable that they are this level of rational either. They may have some pre-existing opinions about remote workers and those opinions may not all be reasonable.

I think there's also reason for concern when a remote person has to "compete" with an in-office presence for the position. Qualifications and job performance aside, the person who is in the office every day, I suspect, has a real advantage here. I do think it is easier to form relationships in person, rather than over conference calls or Slack.
I think its not possible with same domain name so we are looking for alternative domain and will have subdomains for diff religions.

You can suggest some good top level domain name ideas.
The project cites this blog post[0] on the "anti-pattern" that is Python exceptions, and I honestly couldn't be turned off on this project anymore after reading it if this is the inspiration behind it.

The examples in the README and this blog post just give me huge "nope" vibes. Obviously Python could learn a lot more from functional programming, but this is the wrong way to go about a lot of it.

0. https://sobolevn.me/2019/02/python-exceptions-considered-an-...
So it's the 4chan empowerment bill?
Yes, though it wasn't just baldness. He had the glasses and clothes to match too.
It’s their platform and not some utility or public good, that the current administration believes they can bully the product direction is chilling.
Huh, I've had a wrong understanding of that for over a decade! TIL, thanks.
Cant wait for the snap to be updated.
Facebook and Twitter should face the same liability as the New York Times.

...and every other site on the internet, including this one. Or IRC channels, or Discord, or search engines...
Dared to fact check? No. Step away from TDS for a moment and consider: Twitter interjected its corporate belief in what is truth. You love it now because Orange Man Bad, which is clouding the logical part of your brain that says that platforms should remain neutral unless they want to be treated like any other publication.
> Facebook and Twitter should face the same liability as the New York Times.

They already do? Comments on NYTimes articles are covered under Section 230 just as comments made on Facebook or Twitter.
First, there are not a lot of interpretted (not compiled, that's another matter entirely) languages that are as old as Python.

And there are really few that are even near Python popularity, or used with such diversity as Python.

I mean, you can get away with keeping AWK the way it was 2 decades ago, nobody is going to use it for for machine learning or to teach computing in all universities in the world on 3 operating systems, utilizing C extensions, or processing Web API.

Among the few that would even compare, there are the ones that have accumulated so much cruft that they became unusable from today's standard (E.G: bash). Then you have those who have done like Python (E.G: perl 6). The ones that just tried and failed (PHP 6). The ones that broke compat and told everybody move or die (Ruby in a point release, gave basically 2 years). And the ones that created a huge pile of horror they called full stack to keep going (E.G: JS). Also those that got hijacked by vendors and just exploded in miriads of proprietary syntaxes (E.G: SQL) or completely new concepts (E.G: lisp).

At least, in Python you CAN write Python 2/3 compatible code, and you have a LOT of tooling to help you with that, or migrating.

So, yes, the Python 2 -> 3 transition could have been better. Insight is 20/20.

But I'm struggling to think of any other language in a similar situation that has done better.
None of this is directed at OP.

Not to be that guy, but I posted this many hours ago.[1] I don't care about the karma, but this is a repost.

@dang, can anything be done to help HN not work like this in the future? Why have karma for posts but then allow reposts like this? It disincentivises first posts in favor of gaming the viewers of HN while trying not to get scooped. It sucks. None of this is directed at OP.

[1] https://news.ycombinator.com/item?id=23329790
looks like www.amazon.com is down due to DNS failure
They do worry, and actively moderate, which is covered under 230 and has been proven repeatedly in court, including the 9th circuit decision.
amazon.ca is working.
Yes definitely possible. It just looks more sketchy with two passes. And it should be easy to configure. Perhaps add to the issues with any thoughts? Thanks https://github.com/pshihn/rough-notation/issues
> There is nothing that you can do with an object that you can’t do with a closure

How do you prevent memory “leaks” due to the banana referencing a forest problem? With JavaScript libraries returning a function pointer, the returned function pointer would often have a closure that contained a lot of irrelevant state. There is no easy way to reason about the leak, there is virtually no way to work out the cause at runtime (debuggers can help, but a problem with increasing memory usage certainly is not easy to diagnose why). Even when really conscientious about the problem, it is seriously hard to avoid the problem or inadvertently create a closure e.g. many programmers are unaware that arguments may not get GCed if you add an event handler within a function (closing over arguments and maybe other variables).

Objects have their problems, but the memory leak problem with JavaScript closures is insidious and very very hard to fix.
This is really interesting. I don't know anything about `foreignObject`, but are there possibly security implications of a tool like this? Normally, the computedStyles properties in CSS mask their true values from your JS code so you can't evaluate based on rules like the `:visited` pseudo-selector to identify which URLs are in a user's history.

Are things like that also masked from this SVG rendering? I'm assuming yes, since the library itself is JS. Unless the SVG just gets passed stylesheet references and is able to work on those directly?
All the more reason why the Supreme Court should rule in favor of Oracle.
Efficiently process large amounts of data with Node.js
I had a similar issue for the tweet embedding, so I wrote a Node.js script to download tweets via their API, and construct the HTML and CSS necessary to display it on my own website, without needing to include their JavaScript: https://github.com/umaar/better-twitter-embed

As an example, to display 442 tweets on one page, it's around 2.4mb of network download - most of that is from media which some of the tweets use.

This way, text is selectable and links can be clicked.
It should be comfortable with a lot more than a few connections per second. I've just benchmarked my Pi4 running Nginx on Raspbian from my laptop over wifi, running Apachebench and obtained 322 requests per second with a 34kB html file (the HN homepage).

Running ab on the Pi itself, the CPUs can deliver over 3k rps though of course the network subsystem is an important part of the story.
There was little to nothing to acquire. And judging from the radio silence post interview, the author didn't meet the bar for hiring.
That doesn't explain the YEARS of absolutely false information coming out of most political candidates, oh and China. Can't forget China, or do they get a pass?
I'm pretty sure I dont have an evil maid.

I do wince as my mate, who works as a binman, tests found devices on a Windows laptop.

So far he has got is about a terrabyte of free storage and no problems.
Amazing how many times simple configuration issues can kill you.
Name servers refused query (lame delegation?) [205.251.197.124, 205.251.194.41, 2600:9000:5301:dd00::1, 2600:9000:5302:2900::1, 2600:9000:5305:7c00::1, 205.251.193.221, 2600:9000:5307:5900::1, 205.251.199.89].
> We pay inefficiency and arbitrage taxes on everything we produce and consume. How many cents out of a dollar I spend on bread go to someone whose only value in the process is manning a phone or providing working capital? The sooner those two go away, the better.

Those inefficiency and arbitrage taxes will then be replaced with social security / ubi taxes, as fewer people are needed in the workforce.

Which is probably a good thing, but don't think that you're going to see any substantial savings in the cost of your goods. If it doesn't go in taxation (because it's a unique thing to a few companies), it'll just be additional profit capture for those at the top.
TupiTube Desk – 2D animation software focused on kids and teenagers
Think that'd make a better server than a Raspberry Pi 4 for the price? It's nice that it includes a built-in battery backup, plus screen/mouse/keyboard for initial setup and later debugging. On the down side, it takes up more space.
It's the same. YouTube removing videos they disagree with - factually correct or not - is by definition editorializing.
Aaand it's back.
Same here! There was a brief golden time in Mt. Pleasant when it was starting to get nice out and there were Jump bikes everywhere. So convenient, so nice for doing socially-distanced wanderings of neighborhoods. What a waste! I hope something like them returns.
>Going full remote is a huge cost savings to companies. A cost that is now hoisted onto employees.

Commuting, lunch, tons of cloths/uniforms, (likely more stuff I am not thinking off) is also a huge cost to employees.

I know my mortgage payment is due if I go to an office or WFH. My car, on the other hand, requires loads more fuel and maintenance when I work in the office.

Electricity bill goes up slightly.

Heating / cooling costs goes up a bit. I was already heating and cooling my home though but a schedule made it so I didn't heat or cool as much during business hours (when I was not home).

For lunch I am not going out nearly as much. Mostly because my home is not well positioned for a quick trip for lunch.

Seems to me there are savings on both sides here. I could be convinced otherwise though - I have not read any proper studies where the dynamics here have been fleshed out.

I feel like I am saving lots of money and a fair amount of time with WFH.
Do Bluetooth next! :)
> I'll take some koanic license and combine Norman Adams (alleged source of "objects are a poor man's closures") and Christian Queinnec ("closures are a poor man's objects") into a single great Zen language master named Qc Na.

(From https://people.csail.mit.edu/gregs/ll1-discuss-archive-html/...)
You're assuming they are competent enough to build that. Another assumption: his followers will leave Twitter, where they can harass/abuse everyone else at will, for an echo chamber where they'd basically just be reading Trump's bullshit 24/7.
Who is "we"? I mean, I'm not going to do it. And I suspect it's not going to get fixed before July, but I'd love to be wrong.
“Commodore Emilia”
The code basically takes a .yaml manifest, reads where to find the package and get the installation instructions from an enum. I don't think there was much brain-picking here.
Works fine here in the UK.
If you can't capture the side effects to determine if they're correct, you can't test it period. Property based testing, unit testing, or integration testing, doesn't matter.
Great comment.

NoVa definitely has some strong talent and you're correct in highlighting Capital One specifically (they recruit heavily at my alma mater and I know a number of talented people who work there). You're also correct about talent dilution - I worked for a brief stint at a government agency doing tech work and I would say the majority of contractors are unfortunately, quite untalented and love to hide behind buzzwords.

> what are the other West Coast tech hubs

I would say the Bay is several different tech hubs rolled into one, Portland has a fair bit of tech work, and LA is overlooked but increasingly becoming a big one.
theotalk.net is unclaimed at the time of this writing. :)
Don't forget about @dog_rates :)
Have you ever heard of a second hand bike?

Further, have you ever notice bicycle maintenance shops?

Have you ever heard of tinkering with an old bike for fun?

Just asking.

I mean, WTF. This forum is supposed to be the elite?
I just had a thought. It would probably be counter-productive, and just serve to get one in trouble, but it amuses me nonetheless.

If there were still opporutnity for people to testify in front of the house on this issue, get the browsing history of Pelosi, and all the various other representatives trying to block reform or supporting the naked bill. Then, pick out the most salacious bits, and start reading them off. Then point out you were able to do because a warrant is not necessary to get a hold of a person's browsing history. Maybe personally thank Pelosi for the opportunity to share her private secrets with the whole House and the wider American public.

Like I said, such would probably get one in trouble, and probably be counter-productive in the backlash it would invariably cause. But I would happily donate to the legal defense fund of someone who exploited the consequences of bad policy to embarrass that policy's backers.
Ahh, now that you put it that way, yes, I think you are exactly right. For me, the real reason I started to use LaTeX had nothing to do with document formatting, which I had already figured out how to do with plain TeX (writing a 200-page thesis in it). It was the automatic handling of equation numbers and other labels.
whois / host records point to dynect.net and ultradns.(net|co.uk). But per HN 2016 that is their failover, so it's expected behaviour? https://news.ycombinator.com/item?id=12762915
Could Twitter sway an election? Maybe, but it’s speculative. This move is concrete and would give the president the power to go to any tech company and say “do as I wish or I will gut you” in no uncertain terms.

This is classic power consolidation and is a core strategy of fascist regimes. I’m in no way being hyperbolic here.

I’m not Twitter doesn’t deserve to be regulated, because they do. However, choosing to conditionally regulate companies this way is a great way to fuel corruption because the regulators get to pick and choose who to regulate instead of universally applicable law.
existing discussion: https://news.ycombinator.com/item?id=23341170
Include doesn't work for cyclic types, they need to be in the same "type" block. I do not agree with Araq's stance here, there are often cases when closely-related types need to reference each other, and it's not always convenient to put them in the same file. That's why you see the "types.nim" file in larger Nim projects -- no one has a good solution and just shoves them all together. And, if you use types.nim, you no longer have proper visibility control, since fields cannot be private and there is no package-level visibility. Most languages understand this, C/C++/Rust all allow at least the ability to forward declare a type (and Rust allows cyclic, out-of-order types).
I'm sure there are cases where multiple lines would be nice, but I don't think this is one. This seems easier to read to me:

lambda i: -i * i if i < 0 else i * i

Also, the functional way of doing multiple lines in a lot of situations would typically be to compose smaller lambdas.
"Not sure I totally get your point about my reason for selling. Are you saying I should or shouldn't say my heart's not in it? That's the genuine reason and I've always built in the open and been transparent about my business/ goals."
=> Just phrasing. Say you love something else more than this; saying you don't want to do it has negative connotations. Again, just semantics, but they can seriously influence likelihood of deal & valuation...

Happy hunting!
> Another kind of clean up comes in PEP 585 ("Type Hinting Generics In Standard Collections"). It will allow the removal of a parallel set of type aliases maintained in the typing module in order to support generic types. For example, the typing.List type will no longer be needed to support annotations like "dict[str, list[int]]" (i.e.. a dictionary with string keys and values that are lists of integers).

I think this will go a long way toward making type annotations feel less like a tacked-on feature.
Wow, you've hit the nail on the head about what I need as I continue onboarding on to a new team at work. I was shuffled around right when our state shut down. Indeed, figuring out how and when to ask what questions has been exceedingly difficult. It's super hard to ask for time with people I haven't even met properly.
Wait, why? Won't that outcome turn FOSS into a legal quagmire?

As now everyone will rush to copyright "common" API signatures, and lawsuit troll anyone found in violation of the copyright?

"I see your FOSS uses `parse(string)`. We own the copyright on that API, please buy a license or we'll sue."

So then every API would become i.e. `umvi_parse(string)` to avoid paying. I'm sure all sorts of auto-prefixer tools would pop up to help automate this, but still...
And the underlying hardware should be designed to virtualize its PCIe registers, many accelerators do this, but it should be transparent to both plumb the virtualized register sets into a guest but also interpose those register sets to build a dynamic out of band firewall to same said hardware.
Drauger OS – Make your gaming experience perpetually pleasurable
Which security companies are recession-resistant?
Facebook will verify identities for suspiciously popular accounts
Your curiosity is rewarded: https://disclosurespreview.house.gov/?index=%22lobbying-disc...]

Gosh what an ugly URL. It's the lobbying reports for Twitter. The biggest internet "freedom" advocates are the paid lobbyists of the tech industry.
In the US, the Good Samaritan Food Donation Act of 1996 eliminates the liability of grocery stores from donating or allowing people to "glean" food that it no longer can sell. If you know of a store that is destroying this type of food, please let them know that they can donate it without worrying about getting sued.
That's me. Easily overstimulated, yet drive myself to exhaustion because everything is too damn exciting. If you ask me it's a combination of high dopamine and high neural excitability/high connectivity. I think many programmers are like this and exist in a semi-permanent state of exhaustion.
The question of publisher vs platform is a question of who should be sued for bad speech.

If Twitter / Wikipedia is legally vulnerable for bad claims, such as by Rush Limbaugh, then Twitter would feel incentivized to remove such risky individuals from the platform. If Rush Limbaugh were held responsible for his statements, he may feel poorly about freely disclosing his narratives.
I have a 2014 mbpro. It was working fine but when I try to export from final cut it crashed. After restart I tried to export again and it said that my battery was dying (it was at 55%) then powered down
Love this (and all of Preet’s work).

Made a statistics visual awhile back using roughjs[0], seems like the perfect setting with which to add roughnotation :)

[0] https://www.jwilber.me/permutationtest/
Modern Java still isn’t as nice as Kotlin. It’s just not as terrible as the Java version for Android.
Rust has the concept of "interior unsafe".

The idea is that you build an abstraction and wrap away the unsafety. That abstraction has to be built defensively, which is enabled by the type system enforcing very powerful invariants across the program. You can safely encode the way your structures may or may not be used across threads, enforce exclusive vs shared access, control mutability.

Unsafe is not a "do whatever" card, you use it with the rest of the language as one more tool that helps build safe programs.
100%

Microsoft doesn't let any open source build of VS Code access the VS Code Marketplace. Heavily reduces the benefit of VS Code being open source when you can't use any extension or service built for it without building it yourself.

https://github.com/cdr/code-server/blob/master/doc/FAQ.md#di...
Yep, back up for me, too. Lucky them - DNS outtages can sometimes take a lot longer to resolve (heh).
Verifying the Identity of People Behind High-Reach Profiles
There is a huge incentive for the management to find core competency in the cheapest item on the balance sheet.
this must be the 3rd fear mongering "remote work" article that has hit the front page today... employers must really be missing us :)
Really? The same .py file runs under python2 and python3?

Googling quickly, I find this, which does a bit better than 2to3. I suppose one could write to a somewhat constrained intersection of Python2 and Python3, if one is willing to make at least some boilerplate changes to the original Python2 code.

https://python-future.org/overview.html

That said, if you bring a Python2 script and feed it to a Python3 interpreter, no, in general that will not work. They simply aren't the same language. Even a simple "print x" will do you in.