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 4y ago · link · parent

- Use FF + lots of blocker addons

- Use Linux

- Encrypt files

- Use signals

- Use Android without a google account or a play store

- Use google products as little as possible

- No whatsapp, no Insta, no FB

- Use pcloud encrypted solution for online storage

But even with all that, I'm pretty sure the impact is limited, real privacy would require a lot more. Not to mention banking, power companies and so on are going to sell your data no matter what.

Besides, most people would not even do 10% of this. Not even switch to FF.

And if they are transparent and knows you, they give a lot of data on you anyway.

It's a battle we are loosing.

comment 4y ago · link · parent

Had to deepl "自主可控、纯中文国内社区" to understand that your comment meant it translated to "pure Chinese domestic community", which implies if we are not part of the gang, we can't enjoy the project.

Well, we've been doing this implicitly with English for a long time, so I guess Karma is a bitch.

On the other hand, I wrote a French technical blog for years, and it was way harder to reach a lot of people, so if I had to do it again, it would be in English.

They don't have this problem, since 1B people are Chinese.

comment 4y ago · link · parent

Statistically, yeah.

Because the most watched youtube videos are music videos, and people listen to the same music regularly.

Also because some videos have been popular enough that people wanted to show that to their friends, and regular users don't know how to use the history, so they want to find it in their home page again.

I assume the algo just doesn't know the difference between videos that are rewatchable and ones that are not, and does that on some statistical metrics that don't make sense in a lot of contexts.

When you think something is stupid, the answer is usually there is something we don't know about it.

comment 4y ago · link · parent

They probably looked at tik tok, and realized most people consumed recent content like bots.

They then calculated the cost of sorting, and realized that it would save them more money than upsetting the users that like the function would cost.

Then, A/B testing confirmed it for a few months.

Then, tada, good bye features.

comment 4y ago · link · parent

myst

comment 4y ago · link · parent

That doesn't matter much.

You free part of the industry from needing professionals for some simple tasks, which is enough to empower users with a lot of possibilities, and focus pros on where they are really needed.

"Hey phone, next time mum send me a text about voting, you can send back a 'ok boomer'?" or "hey phone, can you setup a webpage that list my tiktok videos up to last year?"

Most people are not going to hire a pro for that, but we could end up with a AI general enough to be able to do that for users. It's ok if the result is not extensible, maintainable or modular.

comment 4y ago · link · parent

The first amazing result would not be for you to program with this, but for somebody with a phone to be able to automate a few small tasks with just the voice.

comment 4y ago · link · parent

Exactly.

Copilot is getting better everyday, because it's learning from the way we are using it.

comment 4y ago · link · parent

Before copilot, we were far from it.

But now, given how magical this thing is, it opens many doors to what's possible with no code.

I never really believe in anything no code before apart from Excel and RAD.

But basic tasks are going to get accessible to a lot of people sooner than I expected

comment 4y ago · link · parent

There is no unique solution to that problem since sometime you want consumption, and sometimes not, for one or more of the parameters.

__builtins__.zip chose to consume iterators in the order they are passed as a parameter, and therefor end up with an assymetric consumption.

That's why itertools.tee exists, so that we can chose case by case.

comment 4y ago · link · parent

It's a good learning exercise.

Of course, don't use your own hand crafted version in Python, since one is provided with the language and it is better than the one you will likely come up with.

Still, it's interesting because it's simple. So starting from the intro of this article, if you want to go further, try to do the following to match up __builtins__.zip:

- make it lazy (yield would work)

- make it work with any iterable (iter() + StopIteration would work)

- put some type int and a docstring (so that help() gives you informations)

- accept any number of iterables (variadic parameters would work)

- make a second version that accepts a fill value (like itertools.zip_longest)

This will sharpen your python skills, and also will make you appreciate even better how much you get for free with the stdlib (not to mention __builtins__.zip is in C, so it's fast).

comment 4y ago · link · parent

I am chroot.

comment 4y ago · link · parent

So you mean you could take your FreeBSD Jails configuration, upload it on a well known public website like dockerhub, then get someone on Windows or Mac transparently install the image and run it with a few cmdlines ?

Because docker container are called container for this reason. That comes from the boat container analogy.

comment 4y ago · link · parent

And yet, most people don't know google own Waze, Youtube, Gmail, Android, Chrome, Chromecast and so on.

They also don't realize most sites use Google Analytics, meaning your activity on a site completely unrelated to google is still recorded.

They don't realize that Meta own not just Facebook, but also Instagram, WhatsApp or Oculus.

They also don't realize all sites that use "share with facebook" send date to facebook, meaning your activity on a site completely unrelated to FB is still recorded.

We know that on HN, but ask somebody in the street, they barely know what a URL is, how would they understand a monopoly?

comment 4y ago · link · parent

Agreed, but the part where we discourage similar act is very related to the prison time she will do. Anything else will not discourage other people to scam, because worst case scenario you just loose reputation and money, but best case scenario you are a billionaire.

Given how bad those scams are for society, it's the discouraging is very important, and a strong message should be sent.

comment 4y ago · link · parent

One mistake a lot of people make while writing code, slides, essays and so on, is trying to structure the ideas too soon in the process.

Throwing ideas on a paper in no particular order and in a few words will exercise the least possible the part of you that expresses idea, and keep the one that generate ideas in focus. Then after you have exhausted the muse, you can start ordering them, chaining them, then putting full sentences, sections, or code blocks, functions and classes.

So the other should be, generate as many ideas as possible, then express them, structure them, put them in shape. Then generate ideas again. Then structure again. But not at the same time.

Because expressing things needs a structure, while creativity thrive without it.

comment 4y ago · link · parent

Because Python has a long experience with REPL, the experience ends up being awesome.

If you try iPython + a PYTHONSTARTUP script, it will be very hard to use anything else.

And ipdb is a very good example of using a debugger that fully benefit from that.

So it is entirely possible to have an exceptionnally good experience in a Python REPL, despite the significant whitespaces, but it does depend of the implementation.

comment 4y ago · link · parent

I must be grug. Just forgot I wrote because dumb brain.

comment 4y ago · link · parent

Yes, all admonitions (note, warning, danger) are supported, and worst case scenario, you can fallback on inlined rst if you really miss something.

But so far I never needed to.

> And are there implementations in other languages?

That's the probably the biggest limition for myst: for now it's very new and is only implemented in Python.

I supposed it's a good opportunity to learn rust by creating a parser :)

comment 4y ago · link · parent

Creating the giga factories and making space x a success were as much a technical success as a human success. At this scale in the game, everything is.

We can be critical of his actions, but at this point, assuming incompetence is foolish.

comment 4y ago · link · parent

You made the right choice, rst is not user friendly, even for tech savvy people.

I'll take the opportunity to do a shameless plug for the amazing "Markedly Structured Text", or MyST, a markdown flavor that is both easy to write like markdown, and expressive like rst.

Basically, if you know markdown, you can write decent MyST already. In fact, any markdown is valid MyST and .md is a valid file extension for MyST.

Once you want more, the syntax offers richer construct, but still easy enough to use.

Check it out: https://myst-parser.readthedocs.io/en/latest/syntax/syntax.h...

I wanted to love asciidoc because the format rocks, but it never took off and the tooling is still lacking. MyST piggy back on markdown ecosystem, this is less of a problem.

Also, the devs behind it also have a very good track record at creating a good FOSS ecosystem.

comment 4y ago · link · parent

Same.

Good news though, the jupyter devs created myst (https://myst-parser.readthedocs.io/en/latest/syntax/syntax.h...), a superset of markdown that has almost all the features of rst, and can embed rst when it falls short.

And there is a plugin to use it with sphinx. It can even reside in a project that started with rst files, both format can coexist.

With this and sphinx-autoreload, writing doc is so much better.

comment 4y ago · link · parent

We already learned that when the US went to war with Irak while lying about WMD, against the vote of the UN.

They did whatever they wanted, just because they wanted to, and nobody could do a thing. They could fake evidences doing so, get caught, kill thousands, spend trillions, and destroy a country with no bad consequences whatsoever.

No blue helmet peace keepers was sent at any point to block the US soldiers path.

comment 4y ago · link · parent

Quite the opposite. It's not going to be a blocker. It's going to be an catalyst.

Brace for it, it's going to be wild.

comment 4y ago · link · parent

True, I just think that because of all the leverages in place for AI content generation, the effects will be orders or magnitude bigger. But it's just speculation, let's get the pop corn and watch the show.

comment 4y ago · link · parent

Fun fact: because of tkinter, Python embeds a TCL interpreter:

    >>> import tkinter as tk
    >>> tk.Tcl().eval('puts {hello, world}')
    hello, world
    ''
So you could technically use TCL to query your DB if you cared.

But honestly, DB queries in real life is spread on threads, but then multiple processes, then a connection pool like pg bouncer, so you will unlikely see the difference most of the time. Not to mention the DB choice, the schema, the query quality, the DB configuration, the hardware and how complicated your request are all going to be more likely to affect the speed of request.

Still, interesting. Exploiting all those CPU in Python would cost a lot of RAM given how many processes you would have to spawn.

I would love to see the comparison using asyncio on uvloop to check the CPU are really the bottleneck though.

comment 4y ago · link · parent

nmap has a serialization cost, and sharing complex data structures is hard with it.

It's also different than multiprocesses as it will likely take less RAM.

Python is explorer multiple interpreters for these reasons. Python 3.8 SharedMemory works well, it's far from transparent.

comment 4y ago · link · parent

You shard the number into groups with a salt for each, until you reach a number of combinations that is computable for FB size on a check request, but way too long pre-generate. You can combine it with some bloom like filter to increase efficiency.

comment 4y ago · link · parent

No it will not.

It will be much bigger, because:

- it can be automated. CGI still required a lot of human work.

- AI generated content requires way less skill. You had to train a lot to become good at CGI. We already see people getting Stable-Diffusion-proficient in a few hours.

- in the 90, CGI was introduced gently, through selected medias. AI content has access to the full internet right out of the box.

- producing CGI required a lot of hardware, but with SaaS, AI will be available to anybody.

- CGI was first exposed to professionals, who produced for the public. AI is already been used by hobbyists, and soon the public, directly.

- CGI was mostly about visual techs, but AI generated content can be applied to text, sound, molecules, basically any structured data.

In summary, the very nature and context in which AI generated content is taking form means the impact will be larger, stronger, and way more intense.

People are hardly capable at dealing with CGI intelligently, even after 20 years. They trust photos and videos a lot, and react strongly to them. Even when they know they are fake, like in a movie, some emotions will forge they judgement like if it were real.

AI generated content? Forget about it. People are not ready. The emotional impact it's going to have will make you feel like the cancel culture was a whisper in the wind.

I was underwhelmed by the last decade of AI dev, but 2022 is for AI what 2000 was for the dotcom revolution.

Question is, what the equivalent of domain name for AI, something cheap you can buy to sale later?

comment 4y ago · link · parent

Were it be a small company, we would try sharding salts + increasing the number of rounds of scrypt or some mix with a bloom filter.

However, this is facebook. It's not too expensive for them.

1
808182
184