skysight-inc/HackerNews huggingface dataset:
Does anyone use Scala on Android?

I’m sure it requires more resources than Kotlin but phone hardware has greatly improved in the last 5 years.
Steps Some of the Most Sustainable Countries Are Taking to Protect Our Oceans
JavaScript Execution Context, Call Stack and Scope Chain
The Art of War by Sun Tzu.

It might be a bit of a cliche but it really is profound and is actually more useful than I first thought. Especially "show strength at your weakest, show weakness at your strongest" is something that I've used during negotations and presentations. It sounds like common sense when you read it, because you've seen a lot of this stuff work out ahead of reading it, but it's only once you read it that it becomes abstract and defined enough for me to apply it.
You'd have to come up with a good source to convince me that 16bits per sample is not good enough for consumer audio (or that you could tell the difference even in perfect conditions. So might be able to hear it, the vast majority of people won't) but beyond that it doesn't really matter in this discussion because vinyls have a much worse fidelity. If you sample vinyl audio at more than 16bits you'll just be sampling noise anyway.

>pretty much all CD players have garbage-tier DAC implementations.

A true audiophile I see, anything consumer-grade is "garbage" in order to justify the purchase of ridiculously overpriced equipment. The truth is that it's very cheap to design a decent quality DAC or ADC these days, mainly thanks to digital processing and the fact that those chips are made in huge quantities. Digital filters are high quality these days and the use of oversampling makes it a lot easier to design good analog filters.

Audiophiles are very hard to take seriously because the hobby is 95% snake oil and 5% reasonable engineering. I'm sorry if you're part of the 5% and I overreacted but it's one of these hot buttons for me. I've spent so much time arguing with people that, no, it made to mathematical sense to want 32bit samples or 160kHz audio...
I think you're blowing it out of proportion. Call your project some other name. Say that your interpreter is compatible with Python 2 and that you provide continued support. It will probably be hard to find volunteers because most are moving/have moved to Python 3, but I don't think the threat of lawsuit will scare anyone away except those who want to infringe on PSF's trademarks and in that case...good?
Yes, I mostly hear it in a religious (catholic) context. Fasting lasts a couple of months for them, I think.
I use JsonServer and that has seriously changed how I prototype web apps.

How's this better?

https://github.com/typicode/json-server
FYI: This is from 2016.
It's always good to see such big movements but as a truly peaceful p2 dev, I'm not even considering to upgrade my projects unless it'd cost me labor not to upgrade.
I would like to see the performance differences between the original and obfuscated. Most of the compiler optimizations are being made impossible by removing static access. Plus, a reverse-obfuscator is trivial for all those static-to-dynamic and base64 encoding.
hasn't this been for years? I mean you pay online for this when searching of plate numbers.
Okay, didn't realize it was only Juul/Pax that had that hidden interest. I'm mainly in Eastern Europe these days and Philip Morris is pushing IQOS hard (I know it's in a different category but I think it eats at the same market share, younger more affluent health-conscious users who know cigs are bad but still want to smoke something)

You mention there probably being safer methods - any idea on them or where I should look for more info?

I've been researching tobacco, mainly taxation (which in theory is one of the most powerful ways to get people to quit things, by jacking up the prices) but I'm generally interested in the field, and it seems to me that a potentially even better methodology than making things too expensive for many to afford is to innovate and develop something that's just way healthier a replacement that gives consumers the same benefits.
On the Sensations of Tone by Hermann von Helmholtz

The Road by Jack London

all of the Oz books by L. Frank Baum

The Scottish Students' Song Book

Heart Songs

The Age of Reason

The Art of Money Getting by Barnum
> sound is a waveform so even the loudest notes will oscillate around zero

Sure. When I refer to "peaks and valleys" I'm talking about the envelope of the waveform. I think that's standard usage in audio engineering.

I think you should download Audacity or equivalent and look at some waveforms of both uncompressed and compressed music. I think you'll see that there are loudness variations on a much shorter timescale than you expect, and that compression reduces these considerably.
Try following a news agency—I like Reuters. They gather news reports and then sell them on to newspapers/broadcasters/etc. who add their spin and choose which details to focus on or ignore, so it's a bit like buying your food fresh from the farm.
If iam correct it is in this on wwdc[0] that one of the Swift engineers talks about how they implemented the Strings API for Swift and how it works under the hood. It is fun and interesting to watch. It starts around the 28 minute mark.

[0]https://developer.apple.com/videos/play/wwdc2017/402/
One possibility (especially for "home Kubernetes" case) is not exposing the services to the outside world at all and using ZeroTier to access them https://www.zerotier.com/
It's L2 mesh VPN, and I believe you can even use MetalLB with it with some minor trickery.
You can, of course, set up WireGuard or OpenVPN for yourself, too, but from my experience zt is the simplest for accessing the boxes behind NAT as you don't even need to set up any servers with real IPs.
A Paper Predicting the End of Democracy
It's now not far-fetched to believe they're fake.
Found this incredibly interesting. The concepts really strongly overlaps with a social media startup last week that I discovered which is trying to tackle the same kind of issue. https://www.springchatapp.com

It will be interesting to see how they deal with info gerrymandering in their smaller chatroom concept.
Swedes are now using implants in their hands to replace credit cards
Pretty much. I’m open to extremely narrow exceptions as in my snowmobile comment. But I suspect that would probably satisfy approximately no one who wants to fly drones or engage in other sorts of related activities that are generally prohibited in National Parks. There’s plenty of BLM etc. land where a lot of activities are allowed.
Continuing a fork under the original name would be confusing to everyone and bad manners, aside from infringing the trademark. But nobody is stopping people from organising around a fork called "Omphalos - a Python 2 fork" or whatever
The PSF isn't stopping anyone from continuing support. They are only stopping people from calling it Python 2 which is 100% reasonable given that (1) that is trademarked and associated with them and (2) they don't want others' confused about their association with the projects.

By the way this is market opportunity that HN readers might consider. If you think you can make money supporting Python 2, then start working. Who knows it could be a gold mine.
That's my point, I think what the parent is asking is antithetical to the vinyl experience.

That being said what I propose with 3D-printing is almost certainly what effectively happens with vinyls these days. I doubt music labels maintain a completely separate and parallel analog workflow in order to have "pure" vinyls at the end. Why bother when you can take the digital master and dump it onto the disk and nobody will be able to tell the difference?
It was announced in 2014 that support was ending in 2020.

It seems a bit wrong to surprise a customer now.
The other aspect is that, especially for older music (say anything recording over 30 years old), the CD master is often different than the Vinyl master. In some cases this difference in mastering can lead to people preferring the vinyl over the CD and claiming vinyl "sounds better", when in fact all it is is they prefer the way the vinyl was mastered.
"Human civilization will die an embarrassing death."

The language used here isn't speculation, it's absolute. If the author was to prefix the statement using speculative terms then I wouldn't have said a thing.

The remark came across as highly negative, unsubstantiated and not useful so I called it out.

Edit: Downvotes? You're going to have to do better than that before I change my mind.
So you are in management position?
This situation we're in is making me really uneasy. WW2 was preceded by tariffs and a freezing of global trade, which messed up the German economy too much, pushed it into an inflationary debt crisis and eventually created Nazism. Nazism was a response to a perceived foreign threat that "did a lot of damage to our people, and it's time for us to be the best".

Say the trade war ends up badly and the Chinese debt bubble pops. How easily can the mainlanders be convinced that it's "the West", in particular America, fucking with them, as they already believe is the case in Hong Kong protests. Then collectively mobilize into a military response, starting a process that will take tens of millions of lives.

We're all people, please never forget that. The single thing all of us want is not to be drafted into the military and give our lives in a service of some dogma, bleeding out to death on a street in some remote corner of the world.
Why would a hand-written lexer have fewer mistakes than a regular expression using an off-the-shelf regex engine? They would need to encode the same lexical grammar, so at that level there is the same amount of complexity.

Writing a lexer by hand is just trading ten lines of regex (a widely known declarative DSL) with hundreds of lines of custom code. I don't see how that would be more maintainable in the long run.
I think devs often make bad decision makers because in some sense tech is often an addiction rather than a pragmatic choice.

The cycle of picking a tech, jumping ship to it, religiously evangelising it, riding the wave and then jumping ship to the next related tech is typical in my opinion.

I try hard to correct for this bias but sometimes struggle with exactly the same thing. There's just something about wanting to have a uniform "world-view" with fewer explanatory variables that never stops being motivating.
The article you link about repeatedly heated oils, specifically reusing oil when deep frying. That doesn't seem relevant to the use described above.
It was, we know basically everything there is to know about the next iPhones for quite a while.
Yeah, if only they had a page that says "Smoking harms nearly every organ of the body, causing many diseases and affecting the health of smokers in general. Quitting smoking has immediate as well as long-term benefits for you and your loved ones." https://www.cdc.gov/tobacco/basic_information/
It is a bug, but in the CPU. Until recently, on intel cpu, the popcnt instruction had an implicit dependency on its output register, which can be a performance issue. Explicitly clearing the register (which is very fast and almost free), is an easy way to workaround it.
Advantages of Non-Contact Linear Sensors
IronPython is a dead project at this point…
The John Carter of Mars books have traveled remarkably well through time.
The last paragraph discusses that this will be the topic of the next blog post.
I mean this announcement is not a threat, it's a warning. After a certain point there is diminishing returns on not upgrading.
This information is given in the paper. Look for terms like capacity (mAh), specific energy (Wh/kg), and energy density (Wh/L).
Thermistor Applications
Aren't JS obfuscators futile? The code will still end up in the JS VM, and you can't really obfuscate the actual AST.
A rout (or disorderly retreat) is probably not what anyone wants
Yes, you are free to do it, no one is stopping you, but don't call it Python.
Are you referring to that "Python 2.8" thing [1] that happened some years ago? A comment from PSF [2] makes it clear that they don't have any issue with people continuing to develop their Python 2 codebase further. It is what their open source explicitly permits after all.

They do have issue with people using a trademarked name and not making it clear that their work isn't endorsed by the Python Foundation.

[1] https://www.naftaliharris.com/blog/why-making-python-2.8/

[2] https://news.ycombinator.com/item?id=13147972
This. I remember when I started reading the tome (1800 pages IIRC) someday, 30 years ago. I simply couldn't put it down, literally. I went on reading almost non stop for 2 days and 3 nights, barely sleeping.
You've asserted this twice on this post, both times without any evidence. I Googled, couldn't find the threat you're basing the claim on, but DID find that the PSF Trademark Usage Policy (https://www.python.org/psf/trademarks/) explicitly allows most sorts of freely distributed Python-related products to use the name without permission:

> Use of the word "Python" in the names of freely distributed products like IronPython, wxPython, Python Extensions, etc. -- Allowed when referring to use with or suitability for the Python programming language.

We can quibble about whether a Python 2 fork would technically meet the definition here, but it seems to me that it would meet it at least as much as IronPython does; going after such a fork would contradict the rule implied by the examples in this section, even if it doesn't unambiguously violate the definition. I think they've already granted the public the right to use the word "Python" in a Python 2 fork and couldn't successfully sue over it now even if they wanted to.

What's your basis for suggesting that they've threatened to do so?
> SDL_TTF doesn't break lines on Chinese punctuation characters (.,;:!?)

Those aren't Chinese punctuation characters. Chinese punctuation characters are full-width, including the spacing that should follow them (or in the case of "(", precede) within the glyph itself: （。，；：！？）. (You may also notice that the period is radically different.) Chinese text should almost never include space characters.

Chinese applications seem happy to break lines anywhere including in the middle of a word, but punctuation seems like an especially good place for a line break, so I'm confused why SDL_TTF would go out of its way to avoid breaking there.
> Politics is the art of making other people want the things that you want.

I would say tactical negotiation and leveraging personal connect is healthy, but manipulation for personal gains at the cost of a larger good is what is my definition of "politics".

I have seen couple of managers in my career who, while were poor managers based on employee voice surveys in the company, ended up with large charters due to being good at politics/"rubbing backs". I want to say that end result was they screwed it up since their directs ended up leaving their team, but in reality, they thrived despite losing folks and not delivering projects, again due to politics. As an engineer, I failed to appreciate that.
You don't even have to automate all that and still achieve the goal of destroying both the human civilization as we know it: it was already existing in practice, simply by delegating (human) responsibilities and effective since the thermonuclear bombs were stockpiled. It's documented in the book: https://www.bloomsbury.com/us/the-doomsday-machine-978160819...
And the Pellucidar series too.
From the arxiv pdf: "We disabled Turbo Boost and set the processor to run at
its highest clock speed" for their comparison.

Doesn't their setup bias towards the AVX2 solution?
No, you don't need more than a regular expression. If you want to extract elements, i.e. match start tags to the corresponding end tags, then you need a stack-based parser. But just to extract the start tags (which is the question) a regular expression is sufficient.

The original question is a question about tokenization, not parsing, which is why a regular expression is sufficient.
Agreed, although I'm not sure I'd echo your thoughts on the engineers.

My Aunt is in a wheelchair, and it's notable just how much of the world is cut off. One step renders a building inaccessible. The nearest analog most people get is probably pushing round a pram, but try doing that without lifting the front wheels off the ground.

Unfortunately it's a hard problem to solve. You have many different demands on the streetscape and there's so much legacy infrastructure.
in c++20 you can use

if constexpr(std::is_constant_evaluated()) {
// hand coded implementation
} else {
// use builtin
}

but yes, it is annoying.
We went through a lot of pain to get this right in Tamgu (https://github.com/naver/tamgu). In particular, emojis can be encoded across 5 or 6 Unicode characters. A "black thumb up" is encoded with 2 Unicode characters: the thumb glyph and its color.

This comes at a cost. Every time you extract a sub-string from a string, you have to scan it first for its codepoints, then convert character positions into byte positions. One way to speed up stuff a bit, is to check if the string is in ASCII (see https://lemire.me/blog/2018/05/16/validating-utf-8-strings-u...) and apply regular operator then.

We implemented many techniques based on "intrinsics" instructions to speed up conversions and search in order to avoid scanning for codepoints.

See https://github.com/naver/tamgu/blob/master/src/conversion.cx... for more information.
His History of Western Philosophy is really great, too.
Here's a tl;dr I made that reduces text by 92%. (I'm a bot)

AFP Huawei says it wants to bring high-speed internet to Canada's north.

"There's a real battle right now about where government investment is going - there's a lot of money up for grabs," says Laura Tribe, the executive director for internet advocacy group OpenMedia.

Huawei Canada announced in July that it will be partnering with local telecommunications companies ICE Wireless and Iristel to expand satellite coverage to 70 communities in the north.

Floating just 2,000km above the planet, low-Earth orbit satellites provide much faster internet than older-technology satellites, like the one Huawei will use in the north.
Dev Pill – a drug for news addicts
React Suite 4.0 Release
Job security for us Pythonistas? Porting all this outdated code to Python 3.
First rule: don't panic :)

Also disclaimer: I've been working on games which were translated to >20 languages including some exotic ones, but I'm in no way an UNICODE expert.

- most important: consider using UTF-8 as text encoding everywhere, and only encode and decode from and to other text encodings when needed (for instance when talking to APIs which don't understand UTF-8, like Windows)

- be very careful in all places where users can enter strings, and with filesystem paths, this is where most bugs happen (one of the most popular bugs is when a user has Unicode characters in his login name, and the game can't access the user's "home directory", happens to the big ones too: https://what.thedailywtf.com/topic/15579/grand-theft-auto-v-...)

- get familiar with how UTF-8 encoding works and how it is "backward compatible" with 7-bit ASCII, there are good chances you don't need to change much of your old string processing code

- rendering is where it gets interesting, and here it makes sense to only do what's needed:

(1) The easiest case is American and European languages, these are all left-to-right, have fairly small alphabets and don't have complicated 'text transformation' rules

(2) East-Asian languages with huge alphabets can be a problem if you need to pre-render all font textures.

(3) The next step is languages which render from right-to-left, the interesting point is that substrings may still need to be rendered left-to-right (for instance numbers, or "foreign" strings)

(4) And finally there are languages like Arabic which rely heavily on modifying the shape of 'characters' based on where they are positioned in words or in relation to other characters, you need some sort of language-specific preprocessing of strings before you forward them to the renderer. HarfBuzz is a general solution for this problem, but it's also a lot of code to integrate (we created a specialized transformation only for Arabic).

(5) For actual rendering, all text rendering engines which can use TTF fonts are usually ready for rendering UNICODE text

So basically, the problem becomes a lot easier if you only need to support a specific set of languages.
Notre-Dame de Paris is great too, and similarly deep in historical and cultural reconstruction.
Thin edge of a wedge..

Credit card chip in hands..

Passport chips in hands..

Mandatory Passport chips in hands
> There is not the char concept in Go, only rune, which means a code point.

Go named their char rune. That's a distinction without a difference.
More like

Q) I like Python 2. Can I take over Python 2 maintenence?

A) Sure. Just don't pretend to be us; call your fork something other than Python 2
They're smashing heavy rocks against nuts... Surely there's a huge difference between carving a weapon and finding a rock large enough to smash open a nut.
We have a more complicated relationship with our customers than that implied. Suffice to say they wouldn't actually be footing the bill.
The conclusion of this essay is deeply stupid. The author uses formalism in the same way that he accuses Hilbert of doing, except that where Hilbert presumably remained a closet Platonist, the author is apparently some sort of nihilist. The comparison of mathematical propositions to sheet music is transparently inappropriate: for, if the latter truly denoted nothing, we would not continue to print endless volumes of it. Surely, even music that is absolutely nonrepresentational still has the virtue of being a pleasing or stimulating pattern of sound; so we should discard as just silly the notion that notion that, e.g., an existential quantifier is nothing more and nothing less than a backwards E printed on paper, and that the endless volumes of text containing the symbol are produced for no reason.

I am not a Platonist, nor a formalist, nor an intuitionist, but there is a completely coherent interpretation of mathematics, entirely fleshed out in my mind, which is none of these. I could summarize it here, but I’ve grown rather tired of broadcasting my ideas pseudonymously in random comment threads only to see them published a year or so later with no attribution (and why not; why cite a random commenter?). Whether you believe me or not when I say that there is another way, the nihilism in this essay can clearly be rejected as an abortive train of thought.
Ubuntu 18.04 has support for Python 2.7 til 2028 I think.
It's also an instruction in WebAssembly, which has a pretty sparse instruction set. There are only 29 integer operations, and this is one of them. There are also "clz" and "ctz" which count leading and trailing zeroes. Other than that all the instructions are run-of-the-mill arithmetic, comparison, bitmasking and shifting.
And now remind yourself that there are self driving cars out there and autonomous digging equipment that is based on ROS, which doesn't have any plan or intent to move to python 3.

Fun stuff...