Better HN
topnewbestaskshowjobs
Log inSign up

BiteCode_dev

24,628 karma · joined Oct 21, 2019 (7y ago) · 5,512 submissions

I write to save you time and effort when dealing with Python:

https://www.bitecode.dev/

Email: contact at bitecode.dev

Submissions

comment 6y ago · link · parent

> This does not seem like an accurate statement. After the PRISM revelations, which named Apple, Apple said they were unaware of the program and were not giving them access. As far as I know, this is the way things still stand today. The leaks claim access to Apple, Apple says they are not providing access. This may be explained through either party lying, or by the FBI being able to access Apple without their cooperation

Of course, gag orders (and PR common sense), prevent them from giving you this information.

But given what we know about the NSA and the context around it, I'm enclined to trust The Guardian and Snowden about it.

> This also seems inaccurate. Apple has never claimed you need to buy a new phone if the home button breaks. The actual issue is that the home button is part of the security system of the phone, runs its own fingerprint detection and is paired with the mainboard, and thus cannot be replaced without updating this pairing, otherwise there would be a trivial security break for the fingerprint protection. As a result, only Apple have the required access to replace the button, and thus third-party replacements are impossible.

No, the failure I'm refering to is of the iPhone 4 home button, which didn't have a fingerprint sensor yet.

comment 6y ago · link · parent

I heard enough about the Amercan health system to be eternally grateful to the one I have in France.

I made my tax declaration this month.

I made it with a smile.

comment 6y ago · link · parent

Of course, I used that phrasing to highlight the fact it causes less conflicts of interests (albeit not none).

comment 6y ago · link · parent

Anwsering my own comment cause I can't edit it anymore, but this article has started a heated debate on tweeter.

The author of "black" suggested that the cause of the slow down may be that asyncio actually starved postgres for resources:

https://twitter.com/llanga/status/1271719783080366086

comment 6y ago · link · parent

And it's already a lot compared to most other countries.

comment 6y ago · link · parent

I hear regularly completly opposite opinions:

- the ones that wish programming would be more elegant and expressive like maths notations

- the ones that wish paper would publish a Python algo instead because maths notations are inconsistant and hard to read

I'm not a maths person, so can people with a lot of experience with it help me decide which one is the more reasonable?

comment 6y ago · link · parent

As for most things, we probably would be better of with a lot of separated institutions instead of a big centralized governement: one in charge of police, one in charge of health, on in charge of education, one in charge or budget, all of them separated and not governed by one entity at the top.

But that's what we got now, so If I have to chose, I chose the gouvernement. At least in my country: they are paying for health already.

comment 6y ago · link · parent

Because their software is not open source and they are very secretive, you have no way to verify that.

No to mention it assumes you would know about their change of heart, which you may not.

Apple said they were not part of any spying program, until it was revealed they were part of PRISM.

They also said their home button had a hardware problem and you had to buy a new phone, when it's been later demonstrated it could be fixed with software.

Everything a company says must be considered marketting until proven otherwise.

It's not specific to Apple, and it's not a moral stand. It's a practical approach to have with every companies since their driver is being profitable.

comment 6y ago · link · parent

That's a lot of money to most people in the world. To my mother it would be 2 months of food.

Even more if taking in consideration planned obsolescence.

comment 6y ago · link · parent

Maybe it's the french in my talking, but I really have a hard time trusting anything else than the state to handle health data.

Anytime you associate health with financial motivation, you end up with something twisted on the long run.

Sure, you can say that Apple, right now, is in the proper state to do that (although given they were part of PRISM, it's debatable).

But what about in 10 years? What if their executives decide that Apple Pay should lead to the creation of a bank? Then from a bank to an insurance company? Then they have a conflict of interest.

Simpler than that, what if they change their stance on user data, and decide to exploit it to understand their customers better? Or sell it? Or just partner it to labs, insurance companies, hospitals?

Like with facebook, it will of course all be "made anonymous", until it's not anymore.

Money and health data are not meant to be mixed IMO.

But even without all that, we are adding yet another tracking system on top of what is already a sensor packed pocket self-spying device.

It's hard to not worry that such concentration of power has a high potential for suffering.

comment 6y ago · link · parent

It they just put commercial details follow up data + some stats in there, it's ok.

It is very infrequently updated, integrity is not at too much risk. In case it's lost, business is not impacted too hard as long as you can find contact details eslewhere.

But the replication story is good, and if they got tons of different schemas, it will make their life easier.

So yes, for transactions it would be bad, but maybe for this particular use case, it's ok.

comment 6y ago · link · parent

> There is an argument that where China is blocking market access, the West should reciprocate.

Faire point. But what I'm expecting that we already do it: we probably ask for modifications in their software as well, it's not not something we talk about.

> If Zoom is a Chinese company with just a registered US office as has been suggested, then it would appear to be an attempt to circumvent that.

I would think it's more of a PR move. WeChat has such a reputation it would never make it into the west.

comment 6y ago · link · parent

Agreed. Before that, you had to choose between exceptional graphics and short loading times.

Now they can do both.

I mean, it's nice, but it's not really revolutionary.

It's a welcome incremental improvement, at best.

But the PR machine worked really well.

comment 6y ago · link · parent

The alternative is to not be in China at all.

The problem with that of course, if that the softwares that do comply will suddently win an unfair market advantage against the ones taking a moral stand.

comment 6y ago · link · parent

I hope not.

I really don't want Rust to be crippled with a 1000 of DSL just because devs could write them easily.

comment 6y ago · link · parent

The more I meditate (13 years now), and the more 1/5/6 seem to be yes/no/yes. It is congruent with many meditators exerience and teaching, which of course could be influencing this conclusion, not to mention it's not measurable nor objective.

I'm not sure 2/3 are something we can ever answer.

And that spawns many interesting questions about the physical characteristics of cousciousness. Does it start and end? It is present spacially? If you don't need thought, do you need the brain to be conscious? Do you need neurons? Can something without it be conscious? Is there only one form of consciouness? Is it persistent? Is it a whole? It is homogenous? Is it something in itself, or an emerging phenomena? Does it have a support, or is it a support in itself?

Unfortunatly, people tend to immediatly reach for spiritual, religious or mystical answers to those.

comment 6y ago · link · parent

It's in the Big List of Nauthy Strings for this reason:

https://github.com/minimaxir/big-list-of-naughty-strings/blo...

comment 6y ago · link · parent

Now the $1000 question would be, if you pay for the context switching of BOTH threads and asyncio, having 5 processes, which each 20 threads, within each an event loop, what happens?

Is the price of the context switching too high, or are you compensating the weakness of each system, by handling I/O concurrently in async, but smoothing the blocking code outside of the await thanks to threads?

Making a _clean_ benchmark for would it be really hard, though.

comment 6y ago · link · parent

This is not what this article is about.

The surprising conclusion of the article is that on a realistic scenario, the async web frameworks will ouput less requests/sec than the sync ones.

I'm very familiar with Python concurrency paradigms, and I wasn't expecting that at all.

Add to that zzzeek's article (the guy wrote SQLA...) stating async is also slower for db access, this makes async less and less appealing, given the additional complexity it adds.

Now appart from doing a crawler, or needing to support websockets, I find hard to justify asyncio. In fact, with David Beasley hinting that you probably can get away with spawning a 1000 threads, it raises more doubts.

The whole point of async was that, at least when dealing with a lot of concurrent I/O, it would be a win compared to threads+multiprocessing. If just by cranking the number of sync workers you get better results for less complexity, this is bad.

comment 6y ago · link · parent

The best AI in the world cannot currently understand the political and cultural context. Make up a slang and you win.

But the cost to process every single message with a powerful AI just to censor bad words would be way too much.

> And it doesn't need to be perfect. If you're an employee who may face severe repercussions if you mention unions, are you going to risk your job based on whether the filter catches your post?

You are conflating censoring and detecting. This is en different matter entirely which would necessitate a whole new debate.

comment 6y ago · link · parent

Yes because kids don't have a strong opinion on anything, so as long as you don't prevent them to have fun, they won't try to find work around.

Try the same a few years later, with teens, and it's a whole different story.

comment 6y ago · link · parent

> That reminds me of Rocket League's approach. The D-pad is bound to several predefined words and phrases that are useful such as "Nice shot!" or "Great pass!". Because of the fast paced nature of the game it's pretty tough to try to abuse this system (maybe by spelling words with the first letters of allowed phrases?) but no one does that.

Dota has that, and it didn't work.

People just used the nice phrases sarcastically, and repeatadly.

When you miss an actions for the 3rd time and your team mate congrats you everytime with a "nice one", it's equally infuruating. Even more, because it cost so little to be an ass.

comment 6y ago · link · parent

It's like the button at traffic lights that does nothing: it's not about actually working, it's about giving the user a feeling of control.

comment 6y ago · link · parent

Clearly, they don't play online games with a chat lobby. They would have quickly learned that such features is useless, as it's easily bypassed:

- in novembre, we should cost them the electrons. Ionize!

- It's time we u_nionize

- un10n1z3 people !

- let's fetch the U:\N\I\O\N\I\Z\E file

- all go to http://unio.ni/ze

- so we should do the u-thingy

- what about talking to Mr Ulysse Nionize

- never too late to unᎥonize

In fact, it actually creates a sense of community by fostering a culture, make the movement stronger, and give it more visibility.

I'm assuming on this one that FB employees know this, and are just giving idiots what they ask for.

comment 6y ago · link · parent

Thanks. I like the fact you can do a quick and dirty script, but the wrap it up in tasks if you want.

comment 6y ago · link · parent

The author of Pyinfra is just a dev like you and me working on a side project.

There is no relationship between pyinfra, pipenv and pip.

There is not even a relationship between pip and pipenv, they are completly different teams.

In fact, none of those projects are maintained by the Python core team or part of the Python project. Not even pip, which is separated from Python and provided using get-pip.py at install.

comment 6y ago · link · parent

While it would be nice to have the core and the framework dissociated, stating that it provide no advantage over Ansible seems overly broad.

You can use python logic to compose your deployment scenario, use imports to reuse features, package modules the same way, etc. The whole ecosystem is also at your disposal, be it libraries, IDE support, linters, formatters, debuggers and so on.

It doesn't need to reinvent the wheel, and you don't need to learn a new syntax.

I would call that a win.

Now, is pyinfra well designed enough to be practical in production, that's another matter that needs testing.

comment 6y ago · link · parent

Thanks for sharing Shlax, I didn't know about it, and at first glance, I like the design choices: encapsulate task, pass the target object so you can mock it for testing, use await to delegate I/O...

comment 6y ago · link · parent

It seems more complementary than a competition, as Pulumi targets clouds, while pyinfra has a lot of tools for self hosting.
1
158159160
184