skysight-inc/HackerNews huggingface dataset:
> I don't really know much about python, but how is the C API? Because as nice as Ruby may be as a language, I wouldn't want to touch the C API with a laser pointer.

You might want to check out SWIG[0] then. It can definitely help integrate C/C++ libraries into Ruby (as well as a dozen other languages) without having to work directly with the host language's C API.

HTH

0 - http://swig.org/
"that" isn't referring to the line about firefox, because firefox was used as an example of doing it right. "that" referred to the first line:

> I can't use Chrome once my tabs shrink down to this: |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

Chrome tabs don't shrink down to a row of lines anymore.

The current behavior is still annoying but it fits a lot more tabs before breaking and it breaks much less severely.
I find this layout model annoying to work with. Everything is like a loaded spring, and if you forget one constraint, it may rip the whole layout into 0-sized pieces.

This model can't express wrapping, so it can't gracefully scale layouts down from desktop to mobile sizes (when you have a 3-column layout you have lots of control over column widths, but no way of turning them into 3 rows instead).

CSS Grid and Flexbox are pretty good. Conceptually they're messier than mathematically-beautiful constraints, but in practice they're more powerful and more robust.
"Also, common decency forbids all portmanteaux involving munchkins"

This piece has so many wins in it
Agreed that outsourcing risk does not free you from the responsibilities. However, for many many services you have to rely on others to provide the service better than you could do yourself, as you are limited in time, money and other resources. For running production grade databases at startups, it's much more cost-efficient to run on AWS RDS than to hire a systems engineering team with 24/7 standby. For more trivial systems you might be right and managers might be cowards. However, you have to realize it's a spectrum.

Whether you're running it yourself or you outsource it, things will go wrong at some time. When this happens, and you run it yourself, you also have to explain why it went wrong in a post-mortem or RCA. The problem is that your customers have no point of reference for your explanation (how likely is it that this occurs again?). In my experience, the following message goes down a lot smoother: "This is an Azure/AWS/GCP outage which affected not just us, but 1000s of other companies. We rely on {provider} to continuously learn from their mistakes and improve their service and they've shown this in the past. Here's their post-mortem report about this outage.". Note that not all cloud providers fit this bill.
That's a consideration that makes sense though, since France's reliance on fossil fuels is very low and they can rely on nuclear for base load. Germany, instead, has decided to replace nuclear with renewables where something like 40-50% of our energy comes from coal. If that's not insanity, I don't know what is.
> I really want to use Perl but I favour Python because the CPython API vs XS, it's a no brainer.

As I just mentioned in this thread, there is a project called SWIG[0] which might be something you'd want to check out.

0 - http://swig.org/
/I/am/Broot

-- I am Broot

-- I am Broot

-- I am Broot
Tips: How to Watch the World Rally Championship 2020 Live Streaming?
How to Win the High Risk Gamble of a Hardware Startup
Smooth scrolling is a CSS3 feature implemented by (many but not all) modern browsers so you'll be seeing it around a lot - see https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-beha... + https://drafts.csswg.org/cssom-view/#propdef-scroll-behavior
>that generally lead to adopt unadapted, bloated, overpriced solutions to trivial problems.

There's almost no meaningful business downside for choosing poorly.

Most businesses just don't care that someone else thinks they didn't use the right tool for the job.

Should it be that way? Definitely not. But it won't change unless there's consequences (and when that happens, those products will die off quickly)
I just sat through a two day training/workshop session called "Design Thinking" during which we learned about techniques to interview stakeholders, and how to empathize with their needs and concerns (specifically without solving the problem at hand, or trying to solve it.) My perception is that I am closer to the problem than most of the other classroom participants, and I have more than enough experience to solve it by myself, without any help.

It was very difficult to follow the guidelines for the exercise and refrain from simply going ahead and solving a problem that I've solved many times before in a way that was familiar to me. In my view it would have taken less time to simply solve the problem than to engage in this seemingly "pointless" exercise, but I do think I understand better after taking the time to convince myself that those other points-of-view have merit and should be taken into account.

Maybe I simply have a case of the old Stockholm syndrome, but between you and GP, I think I'd rather have a more cooperative and acquiescent person on my project team, for the grade. Sounds like a bikeshed argument. First we said the choice didn't matter, that it was less important than the actual programming content of the class; now we're actively combating and making a big stink until someone does some argument dance about it, and convincing happens, so the justification for the specific choice is judged acceptable. (And I guess you've already dug in your heels by this point, and won't be convinced no matter what the reasoning offered.)

What would be your reasons for rejecting vi, specifically? It seems to me that we've actually rejected the idea that editor choice is unimportant; if it was so trivial and doesn't matter which editor, we probably wouldn't be fighting about it, nobody would mind the seemingly arbitrary decision. Nobody would ask for sound reasons to justify.
As a Mac and brew user I would have needed to see "brew install broot" somewhere - since there is no Mac binary I was not sure how to test this until I looked at the comments here.

I am not sure if you have something to do with the "brew" installer for this on MacOS? Or does someone else create that?

Anyways, looks awesome, I think I'll use this at least for listing files by size.
for the current windows platform there is far manager: https://www.farmanager.com/ Unlike Norton it has plug-ins and there are a lot of them available.
>The State has always been able to look up phone records, bank records, land records, criminal records, medical records etc etc as in order to pursue justice and prosecute.

>How is this any different?

The cost of doing those lookups. Both in money and time.
Looking up an entire life's history would have taken months if not more, and would involve a lot of legwork, from picking up the phone and making calls, to traveling around neighborhoods or farther. That cost limited the charging/prosecution only to people suspected of, or implicated in crimes.
Today you can do that on a whim because you don't like a person or because they are your political/business opponents.
In the NYC area we get a lot of pollution from coal burning power plans in the Midwest. Air currents take all that pollution and dump it here. Probably similar for Pittsburgh.
broot looks really useful - thanks! One comment: on the configuration web page, it states:

"The easiest way to read and edit broot's configuration file is to go the help screen (using ?) then to type :open."

When I do that, I get "verb not found: "open"". Not quite sure what is supposed to happen here. I found the config file and editted it manually, but was some magic supposed to happen with the "open" verb?
I think the key thing they discovered was that it was more effective to pay struggling kids for the activities that lead to better grades than to pay them for the grades themselves.
Like faking a racially-motivated crime?
> I am sure method_missing could be implemented in python using various tricks but nobody, afaik, is doing that.

You could probably implement method_missing in Python using either __getattribute__ or __getattr__.

I think this is a small example of why nobody is doing so. It’s not just culture - Python’s object model is so complex that it would be hard to get right.

> why don't people just write clear, explicit, maintainable code instead of trying to be clever

But that’s boring. Seriously, it always amazes me how many programmers allow their decisions to be guided by what’s best for their personal enjoyment rather than what’s best for the project.
The UN warned that global warming would cause arson? That's dumb. Hitler's method of repeating a lie over and over seems to be your Modus Operandi.
Microsoft also has one of the best and most effective sales machines in the world.

Those direct lines help with customer retention and expansion of services just as well as it provides technical assistance.

Even if AWS has some tech or price superiority, good luck prying those sales teams away from the big orgs and convincing them to go elsewhere - especially after significant ecosystem lock in. Which is another thing Microsoft is better at.

Microsoft simply has the enterprise sales machine completely dominanting and optimized.

It was fascinating watching them role out Azure with the full force of their developer and CTO focused marketing machine which kept hitting me even though I’d never use Microsoft, their ability to penetrate markets was fascinating to watch as an outsider.

This is something Google will never be able to catch up with. And a very important part of these cloud wars which get overlooked while we debate the merits of Microsoft’s engineering yes-to-everything the managers ask approach.
I read in a Chinese programmer forum that they just mark it as deleted when you delete photos,it seems to be a common practice, not sure about google.
>But the way people see the first point will be through the lens of the second.

Only certain people, who think themselves as saints and that others should be too, and judge creators by their failings.

Most people care just for the work -- the fact they actually matters to them in 2020 and that they get to read --, and they could not give less ducks who some creator was and what they did in their personal lives.
Hey, just because layman don't care does not mean that there are not people who actually care and use terminology correctly and discuss it.

You should never be proud about dumbing down concepts in Hacker News. This is not consumer forum.
Any UI library based on web components is your best bet for a 'framework-less' solution. Some more popular ones are:

- Material Design Web Components, https://github.com/material-components/material-components-w...

- Vaadin, https://vaadin.com/components

- UI5, https://sap.github.io/ui5-webcomponents/
Most places would log the IP (for spam prevention, security tracking, etc) which is personal information under GDPR.
Perhaps they want to use https://news.ycombinator.com/item?id=21721049
He revised his estimate from 500 million to 800 million? Did 300 million more animals die in the interim or was his initial margin of error at least +/- 60%?
It's typical in statically typed functional languages to match against Algebraic data type value constructors. These ADTs have a fixed amount of variants, which makes it suitable to do a clean pattern match.

ADTs don't exist in OOP. It gets more complicated to do matches against classes whose abstractions are not really decomposable so easily.
Then I'm going to vote with my European wallet and commit not to visit sites that block me.

Let's see just how much they like that.
I will risk sounding a bit like an american here:

I bother reading those, and it's my fucking right to do so, as well as to stop using a service if I don't think it's worth the data they're taking as payment.

Arguing that I shouldn't have that right, because it bothers some people is like arguing against price tags because "they're annoying" and "Who looks at those before buying something anyway?".

And no, you don't click "I accept cookies", you click something along the lines of "I accept necessary cookies plus everything I've explicitly enabled", otherwise site is not GDPR compliant and you can just report them.
Fb is admitting to election meddling then. As are you.
Basically you are just describing the bare minimum of good practice + respecting your users privacy.
Perhaps a real-time version of this can be embedded into the diving goggles(AR) for murk-free dives.
Great work! Thanks a lot. Can we get somekind of "brew" integration for Mac users as well please?
I'd say python was pretty big in academic circles even before that if memory serves.
This is my primary point. The margin of error is two orders of magnitude. It's a bit absurd to throw a statistic around when it's such a huge unknown. I guess I'd be happier if margins of error were included with statistics at all times. Otherwise people think they are all equally certain
Improve documentation quality with Architectural decision records
I think that people tend to forget that CO2 levels have varied massively throughout Earth's history and that they were quite higher than they are now for a long time over plants' evolution, which might explain C3 v. C4 plants.
>Realistically, very few books keep being read for hundreds years

Considering his first stories came around 1930 iirc, his books are already close to the "hundred years" mark, and still read, so we're past wondering about that...

People might not read Tom Wolf ('The Electric Kool-Aid Acid Test' anyone?) but they'll sure keep reading Asimov and Clarke and Dick and co for a good while...
I agree with you, but you and I do not represent a majority.
As a rule, Betteridge's Law applies to controversial statements where the author wants to provoke people but doesn't have enough evidence to say it affirmatively. I don't think that applies here.
Subsidence of lands under glaciers limits sea level rising, but not equally on the earth surface
Yes, but that's a less informative solution, as you can only see contents of one directory at a time. Broot provides a more comprehensive view of the file system.
Same here, I made it sure that our next project isn't going to be an SPA. It is absolutely madness what is going on in the frontend development space.
The article does describe Asimov as a loser in romantic relationships, so one should not underestimate the harm he did to his own prospects. It's also true that we care a lot more about these behaviors than we did in the 1950s, and that's mostly for the better. But Asimov seems to have had comparatively little of that narcissistic, overentitled attitude which you'd find in so many harassers, and which perhaps should be of most concern.
Absolutely. Just because there are references at the end doesn't mean this is credible. There is a lot of work and expertise that goes into selecting the right and reasonably complete set of references, then accurately and correctly synthesizing information from those references into the current work. Part of this expertise is signaled by knowing who wrote the thing. Otherwise, absent expert peer review, no one should be believing any of this.
Creating Markdown Editor with Python and Tkinter with HTML Preview
Cultural evolution caused historical declines of large mammals across China
I'm just a private individual hosting his blog on Azure, and I've had a stellar experience. I made a post about some gripes I had setting up my website, and a person from the developer outreach program reached out to me and put me in touch with the engineering team directly. Turns out my main complaint (lack of support for managed SSL cert for root domains) was already in the pipeline. They even sent a bunch of MS/Azure gear to my doorstep as a thanks for my feedback.
Maybe its inefficiency is necessary. After all earth is a global eco system, it's all about balance, everything is inter connected.
What if Rubisco stopped missing 2/3 and never missed instead ? What about the global CO2 levels ? Oxygen ? More plants = more food for some animals &c.

This sounds like the typical junior developer starting working on a 20 years old project saying 'Wait a minute, I can rewrite these 50k lines in 500 lines of _insert tech of the day_' while ignoring 20 years of side effects, special cases, well thought decisions, &c.
A Globatio wallet along with an integrated lightweight miner
Interestingly enough, I was one of the poeple who posted the story previously and with the same title and URL. I only posted again after receiving an email from HN this morning, and I thought I’d join the experiment that was described:

Hi there,

https://news.ycombinator.com/item?id=21924263 looks good, but didn’t get much attention. Would you care to repost it?

You can do so here: https://news.ycombinator.com/repost?id=21924263.

Please use the same account (docdeek), title, and URL. When these match, the software will give the repost an upvote from the mods, plus we’ll make sure it doesn't get flagged.

This is part of an experiment in giving good HN submissions multiple chances at the front page. If you have any questions, let us know. And if you don't want these emails, sorry! Tell us and we won't do it again.
And if it actually worked. Seems like they described some kind of experimental setup and then just stopped? I only skimmed it though.
Azure is still catching up in many areas. For example low-priority VMs is a recent addition to Azure, whereas AWS has had these instances since 2009. I also find the Azure interface really clunky compared to AWS and I am definitely not a fan of the AWS console either.
FWIW I don't think Asimov's behavior would have been broadly accepted in "historic times" in general. If you think that groping another man's wife in public has generally been acceptable in the past, see "thou shalt not covet" and the Sermon on the Mount. Of course men, especially powerful men, have often ignored such restraints, but the sexual revolution of the 20th century gave them a lot more license.
Currently it’s only photoS and requires a carefully placed colour chart to sync up the colours.

I don’t think that last bit is automatable with just glasses.
The reason to stick with it is if you're trying to optimize for dollars earned per unit of effort expended, government contracting can't be beat.
> Moore’s Law refers to a doubling of transistors on a chip with each process generation.

Yeah, I can see why Intel would want you to believe that.
I think they are just pointing out that the people who think they love animals actually only really seem to love cute animals. And when you think about that for a bit, it seems less pure.
> wouldn’t it have emerged by now through natural selection?

It could very well be that more efficient photosynthesis is actually detrimental.

Making everything faster/stronger/lighter at all cost is a human thing, nature is about balancing thousands of variables, not optimising the shit out of a single aspect while ignoring the rest.
I'm staring at both lines and I can't tell what you think is a misquote.
How is Twitter disrupting academia?
Not so very long ago the New Yorker was routinely running cartoons showing an executive chasing his secretary around a desk. It was socially acceptable, at least on some level.
What does that even get you concretely? It is marketted nice but ultimately the "GDPR pop up" is a pathological failure case for every party involved.
> Genuinely curious, what makes Python look more like pseudocode? The use of colons?

I used to think it was significant indentation, but if you look at the pseudocode on e.g. Wikipedia, there is no significant preference for either whitespace or begin/end.

Therefore, it’s probably things like `if value in my_map` vs `if my_map.contains(value)` and `[x * 2 for x in my_list]` vs `my_list.map(x -> x * 2)`.
1Password automatically locks after some predetermined amount of time - wonder if those other two do as well. I guess it doesn’t really matter, though, if the malware is smart enough to be reading mem it’s probably smart enough to just wait until the db is unlocked to copy.
The evidence isn't strong for it either. The randomised controlled trials have very small n-numbers, are unblinded, have subjective primary outcomes. Needs a big trial to convince people it works.
His female protagonists were mostly sex objects. The only exceptions I can think of are Susan Calvin (who is portrayed as hardly a woman at all) and Arkady (too young, just).
I suspect you’re doing it wrong, or there’s some niche type of computing you specialize in.

In general purpose IT, looking across an enterprise portfolio of applications, we consistently see customers of Tidal Migrations replatform their applications to cloud and save 95+% in OpEx vs dedicated on-premise hosting.

IMO, The first step to realizing those cost benefits is recognizing that the cloud is not your datacenter and you need to architect differently.

Yes, cloud spend can grow as you open up access to more developers, but that’s why we have a plethora of tools and governance people to help make that manageable. I believe the business benefit of the agility gains that come from instant and decentralized resource provisioning will always trump any cloud bill... especially if you’re in a competitive industry & don’t want to get left behind.
I read a lot, but since there's always so much more to read than I could ever handle, I need some way of doing triage. I skim stuff to get a sense of if it's worthwhile. The claim that you have to read the whole thing in order to evaluate it reminds me of the claim by some religions that you can't refute them unless you've invested many years learning their sacred scriptures. It absolutely could be a true claim; it just isn't feasible.
There's a significant underlying principle there. Commom UI widgets are not prepared to deal with collections of widely varying sizes.

The two-pane file browser (folder tree plus folder contents like Windows 95 Explorer, or two parallel panes like Norton Commander) was a compromise solution that has worked for decades.

But this idea of showing in context a limited view of representative items of each collection could be generalized and exploited in other generic data-heavy interfaces, where there's no business code to show the specific data loads in the best way.
Have you heard of “divide by zero?” ;)

(I agree that math abstractions are less leaky than others, of course)
Not completely related ro tnis article, however there are some good arguments thst road infrastructure played key role in human development. Imagine trying to get from somewhere in Poland to England through forests, swamps and fields... Trade and knowledge sharing went through the roof once people started building roads and connecting towns and cities.
the article implies that it's not effective, not even a "not yet" .. it's dangerous IMO
Scott Adams on Creativity (2011)
Thank you very much.

I've already read more than 50 pages and I love it. It's just incredible how much problems can be now solved by a faster algorithm.

I had an idea of solving lotto design problems, this might be a way to do it quickly.
Honestly I never could relate to this focus I see nowadays on role models and aspirational figures. I think you should at most get inspired by specific actions scoped to the relevant areas of their lives.

Just tell your kids to be themselves. They don't need to emulate anyone.