skysight-inc/HackerNews huggingface dataset:
> As I write Python 3 now, I am less than impressed with the reasons for breaking compatibility. I'm told that it was necessary for proper bug-free Unicode code, but there's enough difficulty when using, say, gzip, and little enough documentation about the "proper" way to handle Unicode that I doubt that it will actually reduce Unicode-related bugs.

This was absolutely essential. Python 2 tried to fix by introducing unicode type. It was hacky, and because they looked for a shortcut, they did a very bad thing by introducing implicit casting (so python 2 automatically converted between str and unicode). They did implicit casting because they didn't made the effort of fixing the stdlib to properly handle unicode.

At that point not only there was a problem that str represent two different things (bytes and text), but also authors that were using unicode (to make their code futureproof) make their life actually harder (in python2 even when you know how unicode works, implementing it correctly is a minefield, it is so easy to do it incorrectly and end up with code that works, but blow in special circumstances).

Python 3 basically decided to rip the bandaid off and do it correctly. And that's what happened. When you program in python 3 you no longer have to think much about unicode. To convert between byes you need to explicitly convert from text to bytes (.encode()) and bytes to text (.decode()) but this is not a concern unless you are doing some kind of serialization.

While the breaking unfortunately was necessary (a lot of python 2 code, while it runs it is broken), I'm wondering if it was possible to do it a bit more developer friendly.

I think things would be much easier if instead of changing the behavior of `str` type, Guido would introduce a `text` type (along with `bytes` type), then later deprecate it. I think that would help a lot. Although in that case modifying stdlib would be unavoidable, so it would be a lot of work for them.

BTW: MyPy was also a tool that could help with the migration, but once again they IMO dropped a ball. Basically when MyPy is used in Python 2 mode, it follows Python 2 typing system, which means it still allows for implicit casting. I think what was really needed is to highlight these issues to allow for fixing python 2 code before doing the migration. The way mypy worked required you to first migrate your code to Python 3 and only after that you could start fixing the text/bytes issues.
Now for the Darth Vader or Stormtrooper editions.
> Both approaches fails when you have folks with lots of followers

The traditional mailbox architectural model can be improved via a few methods though to increase scale.

1. The entire tweet doesn’t need to be duplicated for each follower, only a lookup reference (“ID”) to the tweet.

2. Unlike in a traditional mailbox sense, each user’s timeline is a bounded collection. So rather than maintaining every tweet for every followed user in the timeline, it’s capped to the X most recent.
Assuming the libraries you want support the older version you are using
Which is no longer supported.
Reported earlier here with lots of comments: https://news.ycombinator.com/item?id=24454958
I'm reminded of Don Lancaster saying that "Fluke" is a bad name for voltmeters and other electrical instruments. They have done well enough in the 20 years since he said that.
Go does a lot less language wise, and is a lot newer. Didn’t have to change 1991 design choices. Unicode was a big shift.
Or, more bluntly: realize that your app is a tool, not a goal. Tools should be predictable, reliable, and easy to use correctly.
You don't think meat packing is centralized? How you you think factories do their work? Where do you think subsidies come from? What does centralized mean?

Why would I want a man in Washington to guide Montana in the form of government though?
This is an interesting list. I strongly recommend _The Good Earth_ which is one of the best books I have ever read.

In the non-fiction category, I would nominate _Rising Up and Rising Down_[1] by William T. Vollmann. There is a single, abridged volume. It's a grand, sweeping, beautiful and fascinating work.

[1] https://en.wikipedia.org/wiki/Rising_Up_and_Rising_Down
Isn't this the standard private equity playbook? Buy, hold, and flip? Though Softbank isn't a VC and I haven't heard of mass cost-cutting after they buy something.
Show HN: Quantum Computing – An Applied Approach
It's just so different, lots of people could claim different killer features. A strong contender for one section of the community might be the first class typescript support. Other people might like the way you can run so much from a single executable.

Anyway, node is a pretty mature platform now, if it dies, it'll die like java-the-language is dying. Very very slowly, and with parts of its platform holding out much longer than other parts. Or alternatively it'll evolve and slowly adopt things from other ecosystems.

I don't think we're at the stage where we can say that a bet on deno is definitely right, but it has a lot of interesting ideas and lots of people will be picking it up where they can.

If you're interested in the difference between node and deno, check out the talk '10 things I regret about Node' https://www.youtube.com/watch?time_continue=1&v=M3BM9TB-8yA&...
If I have 50 apps on my device and 30 of them are keeping connection to their mothership-server — they will indeed drain my battery in hours. I can't imagine a plausible solution for that problem except centralized notification service.
Yes Chrome started taking over. Do you think that was because of browser choice or because it was heavily advertised on the home page of the most visited site on the internet and it was included as bundleware on unrelated products?
Python is FOSS. If there was a big enough market for python 2 it would have been forked and maintained by a separate entity. That it didn't happen proves this is overblown
I didn't down vote but I'd imagine his down votes are because he said "using in production for hobby projects".

When people ask about production, they usually want stuff where money is at stake, or even better, someone's livelihood.
I kind of agree. Doing things that other people aren't doing (e.g. because it's hard) even though it needs to be done would be a better heuristic and can lead to an interesting career and possibly even success.
Reading and writing is intellectually challenging. Everyone can do it now, because we make sure to teach them to do it, and because it's necessary to live in modern society.
There are 359 synonyms listed in the infobox.
The point is not whether or not it is intentional, but to illustrate that many vulnerabilities exist that don't depend on memory unsafety.
I went through joinef.com - a startup incubator which focuses on individuals joining in and finding cofounders there
> Software should be safe to explore. Trying things out is how you learn.

When I was a kid, I was surrounded by computer-illiterate adults. The biggest fundamental difference between their approach and mine, was that they were "afraid to explore" and could only understand things if they were provided in the form of a prescribed set of instructions. Meanwhile, I was comfortable casually exploring, and thus gained a far better intuition for how to actually use things.
I mean, what you're describing doesn't work for me, because the way I write CSS involves heavy reuse of classes and using CSS-Zen-Garden-esque element selectors. I try to "move around an element" in the panel? The whole layout breaks. The approach that makes the CSS inspector functional as a tool for modifying layout, is a completely different paradigm from the one I'm used to.

To be clear, I'm a backend engineer; in recent times I only write CSS about once per year, mostly just to update my portfolio site, or to do some interesting little hack. I've never worked with SCSS/SASS, React, web components, etc.

But in the past, I have worked full-stack, writing both a backend and the frontend that it works with. And, in those cases, the CSS I've written works, and is responsive and accessible, while also being readable and reusable, in the same sense that a well-factored library of functions is readable and reusable.
WARNING: NSFL. Do not keep reading if you're not prepared to hear something truly horrible.

Here's a quote from the book: "We had an inmate in custody who had cut open a baby with a tin can lid and raped the wound. If someone can do that, do you think he will hesitate at all before gouging your eye out or biting off a finger?"
That doesn't make a lot of sense.

If you believe that there is some sort of natural rights that laws should reflect, than you believe that you can have good laws and bad laws. This implies laws are social constructs (that attempt to model some sort of semi-objective moral truth). If laws were not a social construct but objective rules, it would follow that there is no such thing as a bad law as they are the ground moral truth by basically fiat (which i would call the authortarian view)
Sure, research and development in bell labs was pretty good. Doubt we'd get all that stuff from random people without exotic equipment and cash. Of course they made risks of their own money, not other people's money
I missed WWDC 2019, was working in an entirely different field. And wow, I can’t believe I missed this.

https://developer.apple.com/documentation/combine

Unfortunately my client’s App still requires iOS 11.
It's rare to need to see the current (static) state of an object, more often you want to see how the object changes as the code runs.
With high tech, you can (and should) have error correction. With low tech someone could easily misread handwriting.

I believe low tech is preferable, but I don't think this is the reason, unless I'm misunderstanding something.
I'm not a low level dev, but I've read quite a bit about this over the years. I have a question:

> I want an embedded statically-typed language that compiles directly to something that is memory layout compatible with C++.

Isn't this asking for ABI compatibility with C++? I thought C++'s ABI is unstable so nothing can be compatible with it.
How we threat model
Up until the Coronavirus hit, I was a volunteer teacher at a Girls Who Code club, where we used Python. I spent our very last class before the universe collapsed introducing students to the concept of functions.

Once we'd finished going over some example programs, I asked the kids to modify a quiz program they'd written previously with a different teacher. That program used copy-pasted lines of code in order to ask multiple questions, and I wanted the students to re-implement it with a single function instead. This was a pretty challenging assignment—the kids had never encountered functions before today, and I was purposefully not quite telling them what to do, only giving examples of functions used in other contexts. But one of the girls managed to get it, and I was really proud of her.

Except her code wouldn't run because—I realized with horror—the original program she'd done with the other teacher was actually python 2 code.

I am so damn frustrated that this happened! I was trying so hard to make these kids understand the concept of functions; I did not want to explain the differences between Python 2 and 3. It is, of course, primarily my fault—I should have coordinated better with the other teacher—although in my defense, we were both volunteers, and as it is I spent most of my Friday and Saturday planning this lesson.

It also should just never have happened! I'm not aware of any other language where this type of confusion is so common, and it really makes me wonder if we'd be better off teaching something else. I'm not sure who is to blame for the situation, but it really sucks, and I don't think it's going to go away just because Python 2 is now technically EOL.
"There's no existentialism here" is just fucking wrong, my man. PLEASE read http://www.2arms1head.com/
I gave up thinking the government believes they work for the citizenship about a decade ago.
Actually I did some small tests, and you could mix python2 and python3 code together through use of Cython.

You can use Cython to compile your python 2 code into .so objects and then include them in Python 3. Then you can progressively migrate code file by file to Python 3. I didn't do it on a larger project, so maybe there are some gotchas, but it seems to work as far as I could test it.

Regarding the differences in languages Python 2.7 was actually a bridge to migrate to Python 3. That's why all features of 2.7 were backported from 3 (this was also the reason people saying: "why should I migrate to 3, it doesn't offere anything new". It didn't because everything new was backported.

Anyway thanks to this it was actually possible to write code that worked on both Python version. I did it several times. It was actually the easiest when you wrote the code for Python 3 and only used features that 2 had. Add all the `__future__` imports and remaining parts filled with the `six` module.
It's not that linear.

The savings are from letting radio go to idle. If you have more than one (ideally non-cooperating) services that are keeping the radio permamently on, you won't ever get to idling and say good bye to battery.
Suburbs, particularly old growth / inner ring suburbs, often have walkable cores and even rail connections to the city. They are not all the postwar Levittown kind.

“Town” as distinct from “suburb” usually implies standing alone, being surrounded by farmland and not particularly connected to the nearest metro area.
> sensitive

That’s a weird way to spell “lies”.
> It’s likely only using [GPS] when its deemed necessary

The entire point is that Google encourages you to leave the setting on, meaning you'll be doing GPS fixes more than what the user actually considers necessary.

> Triangulation is necessary to determine which tower to connect to and when to switch to a new tower.

No, it's really not. It's hard to even figure out what you're trying to describe here.

Yes, the baseband sees the signal strength from each nearby tower to know when to switch between them. But the baseband doesn't itself have a map of cell towers. If the list of visible towers is used for client positioning, it happens on the application processor. The work of deriving a location from the towers is not necessary for cell network communication.
All sorts of departments at Uber use real-time queries (operations, marketplace, eats, new mobility, their data science and growth group, finance, communications, legal.) Marketplace in particular has a demand for real-time prediction, matching and dispatching, and pricing queries.
My rule of thumb is to use TLS everywhere for everything unless I have a proper reason for not using it (i.e. strong performance hit).

mTLS in a Kubernetes cluster with Istio was a killer feature for us.
It sounds like Facebook fell for misinformation, or they are willingly involved in a political coverup.

Here we have a distraught witness:
https://www.bitchute.com/video/tNgWGZBxPtGx/
Well, lots of web apps don't use constant time comparisons when checking $password == $actualPassword. Whether there exists enough timing difference to do something with that is very unclear even in ideal conditions
> It more-or-less does need to go through a single daemon, or it would be nearly impossible to coordinate the requests.

A single daemon, or a single kernel, it doesn't really matter which.

I'm thinking a few socket() options. The kernel already coordinates coarse-grained timer wakeups between processes; it's not that outrageous to think it could nudge multiple pinging sockets towards each other then coalesce timings.

The underlying mobile network registration for notifications is already quite low level.

> It would be impossible to consolidate push notifications or throttle them for bad actors though

At least at the moment, I don't think there's a need to consolidate push notifications into the same packet for different apps. The rate of notifications isn't high enough to matter.

For keepalive pings (if the underlying radio network can't provide events to piggyback on), and consolidating pushes (if that is needed), voluntary cooperation on timings among good actors would allow incoming packets to arrive around the same time, and the mobile base station could, if a protocol was agreed, queue and coordinate the transmission time of those packets as a group, or coalesce them into a specially-addressed packet representing the group.

For throttling bad actor pushers, the device itself (kernel or daemon) could block sockets and source IPs that are sending too fast.

Presumably there's already some mechanism in place for things like SYN attacks. If there isn't, bad actors already have a way to drain your battery.
I was not saying anything about that, but if you look at that paper or video you can see the bitstream is passed through an AES decryption stage before programing the logic fabric. This break found a way to read the data after that AES stage.

However, I was just explaining how encryption generally works for these things. Weather or not breaks exist for some chips.
Since when is java slowly dieing?
MISTER PROSSER: But Mister Dent the plans have been available in the planning office for the last nine months!

ARTHUR DENT: Yes! I went round to find them yesterday afternoon. You hadn’t
exactly gone out of your way to pull much attention to them have you? I mean, like actually telling anybody or anything.

MISTER PROSSER: The plans were on display.

ARTHUR DENT: Ah! And how many members of the public are in the habit of casually dropping around the local planning office of an evening?

MISTER PROSSER: Er – ah!

ARTHUR DENT: It’s not exactly a noted social venue is it? And even if you had popped in on the off chance that some raving bureaucrat wanted to knock your house down, the plans weren’t immediately obvious to the eye were they?

MISTER PROSSER: That depends where you were looking.

ARTHUR DENT: I eventually had to go down to the cellar!

MISTER PROSSER: That’s the display department.

ARTHUR DENT: With a torch!

MISTER PROSSER: The lights, had… probably gone.

ARTHUR DENT: So had the stairs!

MISTER PROSSER: Well you found the notice didn’t you?

ARTHUR DENT: Yes. It was on display in the bottom of a locked filing cabinet, stuck in a disused lavatory with a sign on the door saying “Beware of the Leopard”. Ever thought of going into advertising?
We recommended to have logging feature flagged, or create a fake console object, but there were a lot of methods. Having the browsers just implement something worked better. You never knew where a statement could still be deep in code.

I guess today, the instructions would be `console?.log()` not that it matters now. :)
FWIW, if there is a government website for the information you're after, it is likely to have way less bullshit that the ad-supported alternatives. In the US, weather.gov is far from the worst place to get weather information.
It is important to work with someone that you can trust. Someone that can push through hell together with you and not abandon everything at the smallest bump. It takes a strong character, ambition and sense of urgency. When it comes to non-technical / business people, it might be counter-intuitive, but having attended a good university or having worked for a good company can indicate high intelligence and not entrepreneurial drive. This being said, you can still collaborate with technical people that are comfortable with selling the vision, product and services, can hustle and are reliable.

Also, be careful of non-compete agreements by joining other start-ups.

There are several ways in which you can find good co-founders:

1. Don’t prioritise finding a co-founders, just start building something and reach out to people. They might love what you’re doing and come on-board.

2. Get recommendations via your network about people who want to build a company and have complementary skills / similar goals.

3. Increase your visibility, publish your thoughts, network and debate about the future - randomness / serendipity is a wondrous force

4. Accelerators such as Antler and EF - as a last resort.

I’m also looking for smart, relentless people that want to build a better future for generations to come. Don’t hesitate to reach out via linkedin - username: tudordragos
Python is strongly typed.
They're advertising a web development tool on a website that doesn't scale to my laptop's 1280x800 monitor. I literally don't know what to say to that.
Would an employee that is given higher salary then rest of the team protest?
I wouldn't co-found with a business person (whatever that means). You need as many people as possible who actually make the product (developers and designers), and someone who is passionate about solving problems in a particular domain and talking to customers (a product manager). Sometimes these roles are just one person, sometimes two or three. Sales & marketing can be handled by the same team or hired for. You can hire sales people with existing networks if that is needed. I think that if one person can handle all of these roles, he should.
If it's the syntax that troubles you, you could have a look at MoonScript, a little language that compiles to Lua, inspired by CoffeeScript and bringing with it some niceties.
Swift the language and its compiler is open source yes. However, the SwiftUI framework is not.
There were efforts of getting financial help ifyou check the README history.
Sadly to no avail I guess.
You're complaining that my replies have nothing to do with the original point... then typing up a screed about my tone?

Especially after starting your initial reply to me with

>I have absolutely no idea what any of this has to do with my original point or my reply.

Do you know what dismissive means?

-

If I come across as dismissive it's because you really don't seem to know what you're talking about, and if anything this attempt to deflect from the fact just cements that.

Me telling you that your comment comes across as being written by someone not aware of the depth of the problem is exactly what it sounds like, you said things that strongly implied you were not aware of the deeper background to this post.

If you choose to take it as a personal slight, be my guest.

-

Likewise if you're going to play the "music players can be crypto miners" card I'm going to be dismissive of that too, it's a lazy attempt to distract from the problem.

Of course apps can be bad actors. Jumping to the most fear-mongery example possible is just that... fear mongering.

For every app mining cryptocurrency, there's 10 more that are just poorly behaved in respect to battery life.

Trying to act like OEM's attempts to lock down background apps should be dictated by the former rather than the latter is something I'll gladly dismiss. It's nonsense.
Stellarators also have ruinously low volumetric power density, so they're not any less economically dead than tokamaks.
> Some people are dissatisfied with the online interactions and prefer to talk to humans and not text strings from humans they can't see or hear

I think this is easily resolved by audio / video calls. All of my coworkers are significantly older than me and have no issue communicating this way.

I dont mind commuting but I dont want to commute as often. I think my sweet spot would be to commute around noon once traffics no longer crazy and go back home after traffic dies down but the more I think about that the more I feel like driving altogether is a waste. I prefer to only commute when we all decide to be onsite to discuss something and work through it.
The first point is quite valid. The second point, however, is 100% culturally biased, and if you want to respect your users, don't assume "people value autonomy, relatedness, and competence", but instead first find out which type of cultural grounding applies to which parts of your demographic.
100% agree.

I do R&D in the defense industry and scope creep is an absolute nightmare. The only times I get to say no are when the laws of physics dictate so.