skysight-inc/HackerNews huggingface dataset:
I've been working on GraphQL APIs for a long time. I was never satisfied with the Python GraphQL web stack, so in my spare time I built a new set of libraries that will let anyone put together a GraphQL API in minutes using Python.

The stack is made up of two main libraries:

* ObjectQL (http://objectql.com/) An object Mapper from Python to GraphQL.

* DataRM (https://gitlab.com/kiwi-ninja/datarm) A thin layer on top of SQLAlchemy that simplifies schema definition by using typehints.

The HN submission links to load of open source examples to see how everything fits together.

I've decided to open source the libraries so anyone can use them - https://gitlab.com/kiwi-ninja and they are all available on PyPi.

Enjoy, I'm interested to hear what people think about the design!
I think it's largely in the past now. There's a crapton of regulation, licencing etc. in the US now, maybe a little less than in some other developed places, but it's far from "the land of the free".
Greed is a virtue for them. Fossil fuels are quite profitable especially when you willfully ignore all environment impact.
Why Technocracy Is Nearby
Show HN: Berry – A go package for colorizing printed string on ANSI terminals
I believe that pressing Enter on a result opens the selected file as a buffer for editing. I think they mean that the plugin itself won't modify existing files, not that you can't modify existing files.
Sorry that's my mistake! Am updating the redirect as we speak :-)
Terry Pratchett -

>'OK, lets say I call myself the Institute for Something-or-other and I decide to promote a spurious treatise saying the Jews were entirely responsible for the Second World War and the Holocaust didn't happen. And it goes out there on the internet and is available on the same terms as any piece of historical research that has undergone peer review and so on. There's a kind of parity of esteem of information on the net. It's all there: there's no way of finding out whether this stuff has any bottom to it or whether someone has just made it all up.'

Bill Gates -

>'Not for long. Electronics gives us a way of classifying things. You will have authorities on the Net and because an article is contained in their index it will mean something. For all practical purposes there'll be an infinite amount of text out there and you'll only recieve a piece of text through levels of direction, like a friend who says, "Hey, go read this", or a brand name which is associated with a group of referees, or a particular expert, or consumer reports, or the equivalent of a newspaper... they'll point out the things that are of particular interest. The whole way you can check on someone's reputation will be so much more sophisticated on the net than it is in print today.'

Well, it appears that a children's comedy novelist had more insight into this subject than the guy who ran Microsoft. How would Bill's mystical reputation system deal with this?

edit - I did not think that calling Pratchett a children's comedy novelist would raise so much ire. I think there might be one or two books of his I have not (yet) read and I am currently in a mania of fear and excitement over whether Sky will do justice to 'Good Omens' in the upcoming TV series.

For those who think I am denigrating Pratchett in some way by the description, I am put in mind of the quote from C.S. Lewis - “A children's story that can only be enjoyed by children is not a good children's story in the slightest.”
It's slow and eats a lot of battery on Mac. It's a known issue.
I did for some months, but the synchronisation isn't working yet for iOS. I'll gladly switch to it once they have it working.
> I think the article was saying development is GDP stagnation but increasing quality nonetheless

I don't know what the article is trying to say, really. It talks about "improving the quality of life" but I'm not sure if that includes factors that are already considered in GDP calculations (https://www.bea.gov/sites/default/files/papers/P2006-6_0.pdf) or it's about immaterial quality of life improvements (more hapiness or whatever).

> But growth as defined there, with static energy, I can't imagine right now.

Say you have a factory producing 1000 widgets per day and you improve the efficiency of the process and now you produce 1100 widgets per day using the same quantities of labour, raw materials and energy. Don't you agree that this is growth?
You can disable blocking temporarily (a few seconds to a few minutes) in the PiHole dashboard.
Well it's only buggy on Firefox, so not sure it is their fault. Probably it's just where you can see the inferior asset loading strategy show up more, but I've seen similar issues with other asset/scroll-heavy sites as well (like news sites).
Or even, gasp, profitability for the developers. That's a perfectly reasonable thing for a developer or company to expect.

It would be better, though, if they published pricing and had a self-service purchase process, rather than requiring users to contact them.
You can import those into firefox by going to options -> privacy and security -> saved logins and click on import. I just did it yesterday and it worked well.
I don't really enjoy writing Ruby, but rails is the most productive framework I've ever had the pleasure of working with.

I recommend it without hesitation for startups all the time.
You can develop extensions for the browser on iOS — they just have to use JavaScript inside the page or the share sheet to work. An example of an iOS browser with such extension support would be iCab, though natively in Safari the share sheet is supported too. I commonly load translation apps that way, and once upon a time it was the only way to load LastPass/1Password, etc. And Safari supports content blocker apps natively as well. Not that I don’t support greater choice of defaults and fewer “Reader” apps on iOS, but the situation isn’t actually that dire if you look into it a bit.
Some of my old buddies worked for the NHS. They said they all accept a paycut compared to the private sector because of the value and prestige of the agency itself.

In a way I think those in the spy-ish agencies also think along the same lines but they get no recognition from the public about the benefit compared to national health care.
https://github.com/paulhodel/jtools/blob/master/src/editor.j...

You can do this safer with:

https://developer.mozilla.org/en-US/docs/Web/API/DOMParser

an then just removing what you don't want to have via querySelectorAll() and remove().
Which designer do you need to hire? Cheatsheet included
Apple does allow real third-party ad blockers though.
>Tests have nothing to do with code quality.

I didn't downvote your comment but I vehemently disagree. Mission-critical code such as NASA flight guidance, avionics, and low-level libraries like SQLite depend on a suite of tests to maintain software quality. (I wrote a previous comment on this.[0])

We also want the new software that commands self-driving cars to have thousands of tests that cover as many scenarios as possible. I don't have inside knowledge of either Waymo or Tesla but it seems like common sense to assume those software programmers rely on a massive suite of unit tests to stress test their cars' decision algorithms. One can't write software with that level complexity that has life-&-death consequences without relying on numerous tests at all layers of the stack. Yes, the cars will still have bugs and will sometimes make the wrong decision but their software would be worse without the tests.

High quality software relies on both lower-level unit tests and higher-level integration tests. Or put another way, both "black box" and "white box" testing strategies are used.

[0] https://news.ycombinator.com/item?id=15592392
iOS / Safari / Content Blockers are not as full-featured as Android / Mobile Firefox / uBlock Origin, but I'm quite content with https://1blocker.com/ , it provides several lists (with a less stringent limit than the crippled webRequest API discussed here) of rules to pick from, and the possibility to create your own rules through a Safari extension.
"It's pretty hard to get more than one [term sheet] because every deal is on its own timeline" - yes, but that's a symptom of a loose/poor/disorganized fundraise (IMO), not a hard and fast constraint.

To me, the whole point of running a tight and structured Series A process is that you have the various horses crossing the finish line at the same time so that you have multiple interested parties capable of issuing term sheets concurrently.

To do that, you need to operate essentially a cohort-based funnel. Which is my understanding of YC's Series A program - it provides the structure, batch-processing, and funnel clarity to help make this happen inorganically in case it doesn't organically.

The other big advantage of batch-processing is obviously more efficient use of time.
Thank you so much, I really appreciate the kind words!
I would also prefer an 80/20 split to be in the Firefox favor.

However, I do not see that "many well-running" means "roughly equal market share". Browsers are software and thus easy to replicate. And due to the huge market (> 1B users), even 1% market penetration is meaningful -- that is provides enough users to stay alive and develop.

Linux, text editors, many email clients, etc. were originally hackers toys, not grandma's tools and as such had a small (but vocal and dedicated) user base that cared about functionality and not market penetration. But once certain functionality threshold has been reached a lot of people were willing to wrap the core in a grandma-style interface. It could work for new browsers, too -- the main threat is not low user base, but being eaten by a large corp once it is capable enough to be a potential threat. My 2c.
If you have an index from a previous lookup, that can be a byte index.
Firefox was in a pretty bad spot when I switched about 10 years ago. I would not have recommended to anyone who didn't have an excessive amount of RAM.
Laravel Cashier Is Coming to Europe Through Mollie
Maybe Bill is complicit due to the political usefulness of fake news?
Trackpad doesn't give bouncy overscroll, which is how the rest of my software scrolls. Also don't like the UI for trackpad forward/back.

It's a very non-function related nitpick, but it bugs me constantly so I have a hard time sticking with it.

Sync with the unchangeable default iOS browser is another one, but not a lot Mozilla can do about that.
It looked very promising but GPL for mobile iOS and Android Apps It is impossible, even I release the Apps free it is very difficult to work with GPL on those ecosystems. It is sad because it really looks very cool code.
American and moderately successful entrepreneur here.

I had to look up the Law of Jante. My reaction:

Holeee crap. That's one set of beliefs that is practically guaranteed to block ANYONE from manifesting even a fraction of their innovative potential.

(Is it even real? Can anyone from the Nordic region confirm or deny?)

Going even further:

If someone wants to shape their mindset, etc. into that of someone who is on a path to massive entrepreneurial success, and compelled to create something of lasting impact and value to the world...

You could almost take those rules, reword each to their opposite, and then read those opposites to yourself as daily affirmations.

That'll start to program your beliefs into something much, much more self-empowering. Rather than massively self-limiting.

(Maybe I'm indirectly revealing part of the answer to the OP's question here.)

In the USA, we have the metaphor of the crab bucket, and it's a real social effect. I had to escape it myself in my own family (which I basically did through over a decade of sheer grit and tenacity, plus self-programming with techniques like affirmations).

[Happy ending: having got to the other side of it, I'm closer to my extended family now than ever before.]

But if I got to pick, I'd take the crab bucket over the Law of Jante every day.
Are there cases where company employees are reading your email for some reason other than marketing?

Technical support / customer service.

Email is not the tool for you if you believe you're apt to be arrested and your communications subpoenaed.

If you do not trust the provider you can still use email securely by utilizing something like PGP
It's a really new project, so they're probably still figuring out what model works best and might want to limit the kind of deal they do - e.g. make sure it fits the client and they can support them with development where necessary. Freely selling licenses and then have unhappy customers that didn't evaluate the current state properly would be problematic.
Huawei a key beneficiary of China subsidies that US wants ended
Good thing everyone's memory seems so short. The joke references Freedom Fries from "Team America: World Police" but somehow the negative connotation has been erased.
If you want a single byte and `s` is a `&str`, then `s.as_bytes()[i]` returns a `u8` in `s` at index `i`. If the index `i` is out of bounds, then it panics, but no other UTF-8 checking is performed.

You do not need to do this if you're slicing. For example, if you know that `i..j` indexes a valid UTF-8 subslice of `s`, then `&s[i..j]` returns a subslice of `s` with type `&str`.

The only reason to subslice `s.as_bytes()` is if you want the raw bytes which may or may not be valid UTF-8. And in this case, it is a good thing that it is not automatic to convert that back to a `&str` since it may not be valid UTF-8.
I’m Upset: The “zero waste” people must be stopped
I followed the link logged in to Google, in a private window and through a VPN in another browser. The results were the same and in the same order in each case: Firefox addon, uBlock.org, Gorhill's Github, Wikipedia, MS store, Reddit, Twitter and the Opera addon. The Chrome addon doesn't show up until the top of the 3rd results page.

The suggested searches were for adding every major browser apart from Chrome to the search.

If you add Chrome to the query then uBlock for Chrome appears as the top result.

Seems kind of a strange failing that Google search needs such a specific query to get a result for a chrome addon that their own store page claims has over 10 million installs.
Python has always been sort of an odd language to me. Its syntax has always had a certain strong appeal to a large number of people, but there have always been these underlying performance issues that have been swept under the rug. I was surprised when it started being adopted so much in AI research because of the performance issues (I understand it's really C and other things doing the performing, but at some point you have to do something other than call C, otherwise you might as well just use C).

I do understand the appeal; I think its ergonomics are exemplary and worth being studied by language designers as a success case (if not a perfect or unique one).

Going forward, though, I'd like to see more adoption of languages like Nim, Kotlin, or Julia, that have similar levels of expressiveness but are more performant. The issues discussed in the article aren't really growing pains; they've been there from the beginning.
The core motivation wasn't speed -- it was ads. Chrome was designed to send people to Google Search instead of websites. The address bar auto-completion in Firefox would always suggest actual URLs, but Chrome's would send people to Google Search to click on ads on the way to their desired destinations. The ads started to become camouflaged so that most users couldn't tell them from organic results, and Google continued to make the ads harder to distinguish over time. I'm sure that Google also had long-term worries about ad-blocking and wanted to control the browser.

"We just want to make the Web faster" is what they tell their employees so that otherwise ethical people will write code that does unethical things. (AMP/portals is another example.)
I don't know, and most of the articles that turn up on a quick search are from the very launch of YouTube Red, so their speculation may not have held up in practice. My understanding is, creators get more revenue from Red viewers than from ad-backed viewers. However, I also support many of the creators directly on Patreon, and YouTube itself provides value to me which I don't mind paying for (high quality and actively developed app; decent discoverability features; bandwidth ain't free).
government shutdown / furlough proves that that gov jobs arent stable.
I actually just aimed for simplicity and stuff folks might be semi-familiar with. It might be worth adding a little note that EC would be more efficient all around.
didn't americans do "Freedom Fries" like 15 years ago?

let's not act like this is unprecedented
You need to read more closely.
It will scale well beyond that point if ut is properly organized into services.

Check out some of the comments above about "service oriented monolith".

That being said, know your limits. If you are doing a lot of image processing for instance it may be worth investing in an external service in a language that is a better fit for that problem.
Gates was a blue-blood capitalist, and literally could not imagine people cooperating in a commons with sophisticated computers, because money. Whatever Gates is referring to in that quote very likely has some hobbled assumptions that are hard to conceptualize in 2020.
NTennah's React Newsletter
You laugh, but existing satellite internet like Viacom is probably doable. $50-70/month with a 40GB/month soft cap should be good enough with a local Stratum proxy. Latency is high, so you could lose a small amount due to stale work units, but it’s not a big amount.
Yah me too. I expected more “get shit done” and less “let’s meet to plan when we’re going to talk about putting together the design committee”. It’s an over-staffed bureaucratic nightmare with too many “helpers” and not enough “doers”.

To be fair there is some ENORMOUS talent in certain directorates, but a lot of that has gove over to SpaceX, Blue Origin, et alia.
The Misbehaviour of Behaviourists
You make a good point about other syntaxes like FORTH-likes. That's an interesting concept that I hadn't considered! (Note, for a more "modern" take on FORTH, check out Factor[1])

As for spaghettification, I honestly don't see visual languages any different from textual languages in this respect. Yes, most visual code you see in the wild is horribly spaghettified, but the bulk of this code is also written by non-programmers who never learned software engineering principles (DRY, abstractions, proper naming, factoring, etc etc) and textual code written by the same class of people, in my personal experience, is just as spaghettified. Sometimes worse, even, because I can't put my finger on a line and trace it, I literally have to text search and mentally trace where named things connect.

PS: Even though I don't quite agree with you, I appreciate the discussion! This is how ideas that may eventually lead to a workable solution are formed :)

[1] https://factorcode.org/
I'm a fan of Manning books and I've bought several. But if this jumbled text gimmick was was my first introduction I'd run a mile.
I would imagine that in the future video encoders will start to automatically include a cryptographic signature every X frames, which then players will become aware of and show an indicator for "original / modified" content.
there's lots of gold. eg the "oldreddit redirect", or "background video playback" addon is also nice. kind of a YouTube premium ersatz :)
That was my determination as well. Reading the features of the browsers just lead me to believe they were unhappy with the changes Mozilla was making to Firefox which both improve security and performance.

I wonder what performance is like? I can't imagine it's great.
I use lastpass which works well on my phone too.
Projected losses of global mammal and bird ecological strategies
I use OneTab[1] for Firefox for this. Bookmarks do have the advantage of being integrated to sync though.

[1] https://www.one-tab.com/
Children's comedy novelist?
Talent availability is a major factor in building a viable tech stack for startups.
Apple Pay Express Transit Coming to London 'In the Coming Months'
"Freedom Fries" predated Team America by a year. It started in 2003 and was not created for the movie.
"The Majority", so I guess at least 50% :)

> Currently, new revenue from YouTube Premium membership fees is distributed to video creators based on how much members watch your content. As with our advertising business, the majority of the revenue will go to creators.

From: https://support.google.com/youtube/answer/6306276?hl=en

EDIT: found this: https://www.reddit.com/r/PartneredYoutube/comments/9mj13u/sh...

According to them, a view from a Youtube Premium user nets them 36x more money than a view from an Ad viewing user.
Bill Gates is smart and successful, but that doesn't mean he is omniscient. He has made mistakes and said many things through his career that turned out to be false. As have we all. This isn't a personal flaw, it is just being human. But people do need to remember that his success doesn't make him wise or prescient, just successful.
Inelastic goods that lack subsitutes - usually subsitutes are readily available even if they are inferior. Using wooden plows instead of steel ones is technically a fix to the problem even with the performance loss involved.

The Irish Potato famine technically qualifies as one given Malthusian claptrap was used to excuse exporting grain in a famine as "addressing unsustainable population growth".

The failure there was that the farmers couldn't afford the available food despite being responsible for its production. The rentseekers played themselves too by damaging their investment - Ireland's population /still/ hasn't caught up.
While there are certain a subset of developers who lack the ability to write solid code, more often they aren't given the opportunity to do so. Too often company deadlines, resource shortages and selling prototypes as complete products boxes in the developer teams. Product and sales want constant new features and most companies don't enable a culture of investing in the product with refactoring and reviews and other best practices. Developers are seen as a cost center not the critical cog in the machine. If you fix this, you will get better quality code.
> Captioning his find, Burrows said that the fantasy writer had “accurately predicted how the internet would propagate and legitimise fake news”

It's like when you have one clock, you know what time it is. When you have two clocks they're always somewhat different, and so you're no longer certain of the time, and have less faith in clocks.

Fake news has always been with us and the internet just propagates it along with everything else. Contrary to the claim that the internet legitimized it, it made us more aware of how common it is, delegitimizing all news sources in the way that multiple clocks delegitimize clocks.

But clocks at least can be made quite accurate. I'm not at all sure that's true of news sources.
Culture. America is extremely materialistic, individualistic, competititve and success-oriented. Whereas in many other countries, many people shrug at the thought of becoming a billionaire ("what do I need all this money for?"), in America, the default reaction is "THAT'S AMAZING".

This makes Americans take way more risks with entrepreneurship, as, for them, they are chasing the ultimate dream. It may be bad for them on individual level (as most of them fail, sometimes with serious consequences to their lives), but the US society as a whole benefits, because of the value created by the successful minority.
It's been a long time since I used it, but Dolphin Browser used to support them. Chromium or webkit based, to the extent that early versions also had "Jetpack" available to distribute a newer build of the browser engine than was natively available.

Edit: still has an ad blocker add-on based on the Adblock Plus rules, and the browser has been updated within the past month. I believe it was the first tabbed browser on Android, and supports some useful features like definable gestures.