skysight-inc/HackerNews huggingface dataset:
I think this is an important comment. I used to be a late night worker but family and other commitments has made that impossible. I wake at 5AM to get a few solid hours of brain work in before the family stirs. This has been the best approach to retaining the 'late night work hours' and balancing family.
Outdated codebases that still work fine and would require lots of efforts to update?
This comment will also come off as bitter - but why don't you just go and write your code in whatever you have been writing it in before?

Just leave it to those who have used Python for a while now and actually know what it's missing.
[comic]Do you get to choose the best client as a startup?
Note everyone is used to having chlorinated and flouride(d) water so their bodies might have been used to relatively dirty water. Of course, I could wrong in their case...don't know their background
Operam: Full-stack Engineer | JavaScript, NodeJS, React, Python, AWS, Kinesis | Prague (Czechia)/Bratislava (Slovakia) | Only for Engineers authorized to work in EU | more info: https://www.operam.com/jobs

Operam: Front-end Engineer | React, Redux | Prague (Czechia)/Bratislava (Slovakia) | Only for Engineers authorized to work in EU | more info: https://www.operam.com/jobs

If you have any questions, feel free to contact us at work@operam.com
So it boils down to trust anyway. No way a code signing certificate can impose that trust. At the end of the day, it all goes back to human stance towards other beings in this world and own dignity.
I'm confused. Are you saying it's unpythonic but you like it anyway?
I've run my own email for years and I don't have a serious spam problem despite posting my email everywhere. I get maybe 1-2 spam messages a week. The only spam mitigation I use is greylisting and the zen.spamhaus.org blacklist.
> most everyone would agree that a new citizen is just as much a member of the country as any native born person

This is already the case in Europe though; if anything, the racism/discrimination situation seems better than the US, since you don't have to fear for your life if you're black and see a cop.

I'm not sure there is a "nice" solution when some people immigrate for the sole reason of freeloading on the welfare system. I've noticed that in France where some people do not even wish to integrate (the tools are there if you want it), and prefer to stay within their community, relying either on welfare, or will often transition to living off crime (drugs, etc).
Thank you for the information. Very helpful.
I am guessing they are counting cable as fiber. The Swedish competition authority is saying 1 300 000 fiber, 670 000 cable and 960 000 dsl [0].

The things is that the telephone network itself is still essentially owned by the government and multiple companies compete to provide service. And fiber is to large extent operated under a similar model. (950 000 of the 1 300 000 are municipal broadband).

The cable monopoly, including exclusivity contracts, was instead sold to EQT (which later sold to someone else) and of course instead of opening up to competition they kept the monopoly in place.

It isn't that EQT was doing something awful (their schools with inflated grades are probably worse in that regard). Internet connectivity in Sweden is still rather good. It is just that PE firms generally do whatever makes them money, not necessarily what is good for consumers or anyone else.

[0] In Swedish, page 106: http://www.konkurrensverket.se/globalassets/publikationer/ra...
That's literally the point of putting an abstract at the start of an academic paper. A single paragraph containing the most important points of the study, such as (in this case) the sentence "Contrary to common belief, the volume of face-to-face interaction decreased significantly (approx. 70%) in both cases, with an associated increase in electronic interaction."
Spectre Proof of Concept Only Fails in Firefox
Because not all computers that are target of my code are under my control. I apparently have users who simply per policy don’t upgrade often. There are many use cases where “install then just do security updates” is really the best solution. These computers still can need new Python scripts. Even Python 2.4. I’ve just adapted some scripts for that.

It’s still pity that Python 3 isn’t more adjusted to that fact.
If they add anything to Python, it should be the ability to do functional-style programming without hassle. Right now it's almost impossible to compose functions in an inline style such as used in functional programming languages. Yes, there's lambda, but it doesn't extend into multiple lines, and applying a function to a bunch of lambdas directly leads to line-width overflow. Even JavaScript has better support for functional-style programming. Perhaps Guido should spend a year writing Haskell :)
If it were possible to profitably do what they do as well as they do, but at a lower price, someone would be doing it already.

It's $50/year for mails to an unlimited number of aliases on all my domains to go into a single mailbox. Hooking up new domains is easy, as is configuring them to absorb arbitrary aliases. All quite reasonable, as far as I'm concerned.
The ghetto issue is separate and the only solution seems to be to force resettle people. Immigrants gravitate towards cheap housing and people speaking the same tongue which makes integration harder.
You could skip this issue by skipping a generation of course.
It's zooming in and out of the page while I'm trying to play. iPhone x Safari
Synactic sugar means the same thing can be achieved without the sugar. How could you achieve this without the new expression?
Real Life Lore Video: https://www.youtube.com/watch?v=E39GIysMevQ
"Because our personal data is incorporated into a highly networked system (the various ad platforms), is worth much more than if it isolated, or “decentralized.” Actually this is IMHO a myth. It is worth more to the ad companies. But not to me. In fact, my data is more interesting and more valuable to me than to the ad system. When I can run apps (including AI) which work for me doing aggregation across all kinds of data about me they will provide me with much greater power. Personal data integration. AIs which work for me, report to me. Being able to write trusted apps which have read/access to all aspects of a person's life, not just the stuff they shared in a social network silo.
That makes no sense. They had a few hundred employees because their Linux business was small. Now their Linux business is huge, so they can afford to hire more people. Some of those people are sustaining and growing the core Linux business, and others are working to develop new businesses like storage, openstack, middleware, configuration management, containers etc. None of those new businesses are anywhere near self-sufficiency. They are all funded primarily by the core Linux business.

If you look at their 2017Q4 results, it’s very telling: out of $772M of revenue, the combination of Openshift, Openstack, Ansible, Java middleware, IDEs and every other product in the “application development and emerging technologies” group added up to $173M. That’s 22.4% of their revenue coming from their entire “next-generation” portfolio combined. Everything else is basically RHEL.

Hopefully this gives you a better picture of how they pay for their 10,000+ employees.
Learn How to Use Ruby Arrays in Less Than 10 Minutes
The parent poster was talking about shipping "an actual application to a normal human being". A .jar file is a non-starter, as normal human beings these days don't have Java installed and have no desire to install it.

Don't get me wrong: I love Clojure, and it's currently the language that pays my bills. But I'd never consider using it to build an app for end users (except possibly a ClojureScript React Native app for mobile devices).
>>"I can't see how the first half of that isn't a violation of ECHR Article 8. "

The law says ..."except such as is in accordance with the law and is necessary in a democratic society in the interests of national security, public safety or the economic well-being of the country, for the prevention of disorder or crime, for the protection of health or morals, or for the protection of the rights and freedoms of others."

Otherwise I can decide not to school my children.
Yeah, PEP 3113 was quite weak. It didn't even explore alternatives (like fixing the introspection without breaking the syntax).
Show HN: Fie – Rails Websocket Front End Framework
Difference is bigger, C is `if (a = b)` vs `if (a == b)`. Python is `if (a := b)` vs `if a == b`
An awful lot of home broadband connections suffer from bufferbloat and even for the ones that don't, a single host can easily hog all the bandwidth.
If you're used to getting lag in your VoIP or gaming when a house mate starts a stream/download/torrent, this can be fixed :)

The cake traffic shaper in OpenWRT is amazing for fighting bufferbloat in your home network and it can also do almost perfect fairness in dividing the available bandwidth per LAN host with very little configuration. Just get it as part of the SQM tools in OpenWRT and enable it. For the per-host-fairness take a look at the "Make cake sing and dance" from this link: https://openwrt.org/docs/guide-user/network/traffic-shaping/...

If you use an Edgerouter, you can get the cake traffic shaper but you'll have to do without the easy web interface OpenWRT has: https://community.ubnt.com/t5/EdgeRouter/Cake-and-FQ-PIE-com...
I have not tried it yet myself, but heard good things about Proxmox Mail Gateway: https://www.proxmox.com/en/proxmox-mail-gateway
> there are no new semantics

I don't think that's right; what expression/statement is `x := y` equivalent to? I'm thinking in particular about using mutable collections to emulate assignment in a lambda, e.g.

>>> counter = (lambda c: lambda: (c.append(c.pop() + 1), c[0])[1])([0])
>>> counter()
1
>>> counter()
2
>>> counter()
3

It looks like this could now be done as:

>>> counter = (lambda c: lambda: (c := c + 1))(0)

Yet the semantics here are very different: one is pushing and popping the contents of a list, without changing any variable bindings (`c` always points to the same list, but that list's contents changes); the other has no list, no pushing/popping, and does change the variable bindings (`c` keeps pointing to different integers).

Maybe it's equivalent to using a `=` statement, but statements are forbidden inside lambdas. Maybe the lambdas are equivalent to `def ...` functions, but what would their names be? Even if we made the outer one `def counter(c)...` the resulting value would have a different `func_name` (`counter` versus `<lambda>`).

Even the `if` examples that are scattered around this page don't seem to have an equivalent. For example:

if (x := foo() is not None):
do_something()

We can't "desugar" this, e.g. to something like the following:

x = foo()
if x is not None:
do_something

The reason is that we're changing the point at which the binding takes place. For example, Python guarantees to evaluate the elements of a tuple in left to right order (which we exploited in the above push/pop example). That means we could write:

if (sys.stdout.write(x), x := foo() is not None)[1]:
do_something

This will print the current value of `x`, then update `x` to the return value of `foo()`. I can't think of a way to desugar this which preserves the semantics. For example, using the incorrect method from above:

x = foo()
if (sys.stdout.write(x), x is not None)[1]:
do_something

This isn't equivalent, since it will print the new value of `x`. Maybe we could float the `write` call out of the condition too, but what about something like:

if foo(x) and (x := bar()):
do_something

We would have to perform `foo(x)` with the old value of `x`, store the result somewhere (a fresh temporary variable?), perform the `x = bar()` assignment, reconstruct the condition using the temporary variable and the new value of `x`, then `del` the temporary variable (in case `do_something` makes use of `locals()`).

PS: I think this `:=` is a good thing, and writing the above examples just reminded me how infuriating it is when high-level languages distinguish between statements and expressions, rather than having everything be an expression!
Except it's more likely you're accidentally inserting a character twice than inserting another extra character (':')
this exactly describes Google policy on small fish, by neglecting their concerns, Google gets a lot of negative reputation from small startups who spread the word on forums like this, making their technical innovation largely irrelevant to their future success
I think it boils down to the fact that not that many innovations are coming from the distribution itself. It used to be true, especially when it came to recognizing hardware or simplifying install, but nowadays most hardware is recognized and most distro's install is simple (except Arch, but I like arch, so go figure).

I suppose the biggest innovation in the past few years have been in terms of virtualization, and they were barely dependent on the distribution as most of the work was done upstream on the linux Kernel.

So it's hard to be a newcomer and have strong selling points. Maybe the next generation of kernel programmed in type safe, memory safe languages would be interesting?
Classic caching algorithms like LRU use only last access time as a feature. You are correct that ML based on only that one feature won’t be much different than LRU. However, most of the time, data items have metadata that can be used as features, for example, image size and type. With this additional metadata ML algorithms can do a lot better than LRU that is only using access patterns. Also, think about how image content (sports car, an attractive person, etc) could predict if this image it likely to be accessed in the future.
Some Samsung users say their phones randomly sent photos to contacts
How so? Syntactically, or from a pragmatic point of view?
This reminds me of other similar attempts that have happened in the past to help "assimilation" and "integration":

https://en.wikipedia.org/wiki/Canadian_Indian_residential_sc...

https://en.wikipedia.org/wiki/Stolen_Generations
Python list comprehensions _are_ map/reduce.
by writing extra lines?

I'd prefer more lines for readability reasons.
“+The Purpose of Technology
Google indeed doesn't sell info to other people. (It does collect it though.)
Python has explicitly discouraged functional-style for a long time, I don't think that's going to change. And frankly, the whole language is quite, I'd even say extremely, mutable; I'm not sure a functional syntax works well with that.
Presumably that's why they've gone with the far more sensible ":=" syntax.

The use of "=" for assignment has long been a pet peeve of mine. It was a mistake when C did it, and it's been a mistake for so many subsequent languages to copy it.

"=" shouldn't be an operator at all, it makes a lot more sense to use ":=" and "==".

Pascal's use of ":=" for assignment and "=" for equality, strikes me as almost as clear.

Still, at least C makes consistent use of '=' for assignment, unlike that god-forsaken trainwreck of a language, VB.Net, which uses it for both assignment and for equality depending on context.
They will not be forced to attend church or believe anything, but they will learn what a church is or the related traditions. Probably some other such as orthodox, Jewish and Islam basics.

I'm pretty sure Danish religious and cultural education is quite even handed compared to others such as say Polish.

Religious freedom is not a license for ignorance.

Remember that Denmark is already quite secular.
I think you mean map/filter.
I am a solo founder and I have been a non-solo founder in the past and being a solo-founder is 100x better. I think it depends on the type of person you are and what is important to you.
I disagree. Those prices are simply too high if you factor in the price of hw, hosting, sw, maintenance, etc. It simply doesn't add up.

The only reason they are not disrupted, I believe, is that most people are okay with free email, and businesses that want to be more secure keep their email inside their premises.
Both PEP-572 and dataclasses are backward compatible. Old code continues to work with new versions of Python.

You seem to be annoyed by lack of forward compatibility.
It's also broken in IE (not that I use IE... but since you didnt check FF)
Sure. But if fidelity to C style was not a concern then I don't see why the '==' syntax was adopted in the first place.
The response certainly surprised me.
My point was that it was ad supported and so had the exact same drawbacks as Gmail, but in addition being much less advanced.
Probably not, since expressions can already be statements. But that would allow dangerous code like "if a = 3", which I don't think the Python devs would want to allow.
Agreed. They're going by the heuristic that every case they encounter is probably premature
Link to the email on the Python-Dev mailing list: https://mail.python.org/pipermail/python-dev/2018-July/15423...
Mobile Wallet: An Innovative Platform for Successful Lead Generation
Build a social/interaction graph and fill everything with Ads while selling the same information to intelligence agencies. No discretion. Only money. Nothing personal, it's just business. Sounds familiar? Facebook invented that already.
Indeed, I had trouble getting any way near enough vowels
But you can get to the app permissions and revoke all permissions, rendering the app incapable to run
GDPR on Trial: first decisions
Good point, I should say sell /access to/ (via DoubleClick, AdWords and their other sources of revenue)
Record DRAM ASP Forecast for Q3
> Even JavaScript has better support for functional-style programming.

Which shouldn't be that surprising considering originally Netscape were going to port Scheme to their browser before choosing to create a new scripting language with "Java-like syntax" (you can argue amongst yourselves just how Java-like the syntax really is).
OK you're all right, I should've included some examples, here's just some from the last few days (I guess some of these are arguably not purely 'syntax', but to me they mostly come down to that, and I guess most can be explained away with 'different philosophy', and I'm sure someone will come out and say 'oh but if 'only' you had just done this and this', but still...) :

- Instantiating an object from a name in a string. Like instantiate a 'Foo' when you have a string variable that contains 'Foo'. I can't remember the syntax even though I looked it up two days ago, and I never will because it's such a shit show. Not to use PHP here as and example of a great language, but there at least the intuitive '$obj = new $var' works as you expect it. Or, in C++ you have to do it manually, which is also fine - at least be consistent.

- The weird sort-of typing of variables. Variables have types, but you can assign a different value of a different type to them, and the actual types usually doesn't matter except when it does. So you do print "Hey " + var but now you need to know what type var is because you might need to str() it.

- The whitespace-is-important-except-when-it-isn't. OK so braces are the devil's work, but when it's inconvenient, we're not that strict on white space (when initializing lists, when having expressions that span several lines, ...) so now everything can still look out of whack.

- .iteritems(). Really?

- super(ClassName, self).__init__(argument). Wut? Yes when I parse it token by token I understand, but why? Maybe the other magic methods are in this category too, but probably to a lesser degree.

- (I had some other things here about primitive OO capabilities, shitty package system/versioning, and some more, but those were all so far away from 'syntactic sugar' that they didn't fit this list no matter how hard I twisted the argument)

Look, I do understand why they are this way. For each of them, there is a reason that any reasonable person would say 'yeah that makes sense' to, possibly after some explanation of the history or context or whatever. But then at least be honest and stop promoting the language as so 'intuitive' or 'beginner-friendly' or 'much more clean than other languages'. Sure, it's not as bad as R, but it's still just like any other 20+ year old language in wide spread use - crufty, idiosyncratic in many respects, and in general requiring a bunch of frustrating head butting before you can be productive in it.

And to tie it to the OP - it seems this new syntax is promoted as being for 'beginners' or to make it 'easier to teach'. Well good luck with that, I say.
How would you do this?

if (match := re.match(r1, s)):
o = match.group(1)
elif (match := re.match(r2, s)):
o = match.group(1)
The boogeyman dnc used to hide their mistreatment of Sanders and the resulting loss.
Touch screens and mixed user interfaces on things like cash machines, petrol pumps, etc kind of bother me - maybe later posts will go into this as the blog ends saying there will be a follow-up.

Just a couple of anecdotes - the first being cash machines where I input the PIN using the traditional buttons on the numeric pad, then i start using the touchscreen to make other choices. Pick one or the other, not a mixture of the two. Or self service petrol pumps that end up covered in grease and dirt, because they're in that kind of environment.

Once i was waiting in line at the Eurotunnel and the person in front of me was clearly struggling. It took them about five minutes to get through the registration process and they kept leaning over out of their car window, stabbing away at the touchscreen with their finger appearing somewhat frustrated. I assumed they must have had trouble finding their booking.

When I got to the booth myself I pressed the touchscreen and it was immediately clear that the calibration was off, by about a couple of finger widths - this was enough to cause the problems for the user before me, as they were trying to type in their booking reference but it would always choose the wrong digits. So when I typed in my booking reference I moved my finger a little to the side to account for the calibration error. Easy! Well, not so much if you're not technically inclined enough to recognise this kind of issue when you see it.
Why would you have to choose either?

fq_codel and cake use a tiny bit of packet loss to get a sending host to back off, for example to keep a large download flow within the limits of your home link. Other flows aren't affected.

Bufferbloat regularly adds hundreds of ms on home internet connections, you can get an indication of your bufferbloat on http://www.dslreports.com/speedtest
Thank you for your interest, this is very encouraging! There are no immediate plan to open source this, but this is something we may consider in the future.
Excellent way of explaining it. It also shows why the world economy is very much debt driven.

In addition to the interest generally being tax deductible, the payoff can be huge if you get it right. The upside is often disproportionally higher than the downside.
Writing a simple shell in Go
I was in almost exactly your position two or three years ago. I appreciated reading about Bach's self-referential patterns and had some fun playing with the toy formal systems, but as someone with a background in pure mathematics I found much of it long-winded and tedious. I carried on trying to slog through it because a friend (who's sister had bought it for him) shoved it into my hands on the proviso that I explain to him what it was all about. Eventually - about halfway through - I simply surrendered in the face of mounting gratuitous discourse. I just wanted it to cut to the chase.
Several "Third World" cultures were doing pretty well and would be still be faring fine if the "First World" hadn't depredated them over the course of the last couple centuries. It's pretty arrogant - colonial - to assume that societies must resemble our own to be credibly successful.
I experienced having my account suspended all of a sudden with no notice; the problem livingpunchbag is trying to avoid.