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

Yes, but:

- You don't have full control over the knife. In fact it's not about your use of the knife.

- The people in control of the knife have a poor track record at caring about you, and belong to a category that history has proven we should not trust.

- Every time you use the knife, you sign a blank contract giving full authorization to future non-specified knife usage to people you don't know nor do you know their motive. And you trust none of those people, for an indefinite length of time, will abuse it.

- Cumulative use of the knife can accumulate stabs that may be delt to you and all your love ones one day all at once.

- Use of knife can be automated and scale at the level of all countries.

- Most people are not knowledgeable about the knife, don't know much about it, and it's invisible to them.

comment 2y ago · link · parent

"He already has pneumonia, adding lung cancer doesn't matter"

comment 2y ago · link · parent

Or CP.

Also we have to consider that gov spying programs are developed everywhere in the world, and the fact CP has been used as an excuse to pass questionable bills again and again.

What's even crazier is that we have to even argue this is a problem.

And that intelligent people are arguing that this is all OK. People that read history books, saw PRISM and Snowden, heard about cops abusing their system already, etc.

comment 2y ago · link · parent

Just because there is no solution to a rat infestation doesn't mean you should burn the house with the people in it.

comment 2y ago · link · parent

As usual, the problem with this is that it assumes a way to perfectly identify somebody on the internet, which in turns mean a way to perfectly identify, in real time, somebody carrying permanently a tracking device with GPS, microphone and camera.

It's crazy that all the things we considered the worst of dystopia in the 80's, thinking nobody would be stupid enough to do, and that those societies in SF books were only distant fictions, are things we are actively seeking now.

Things like "Find my" and "air tags" are already beloved my millions, people use it to track loved ones and they swear by it. Even very intelligent, educated people.

There is such a cognitive dissonance between people swearing the last election meant a likely dictatorship and the same people setting up a tech rope around their necks in case a dictatorship does happen.

My now-dead Jewish grandfather met my grandmother during the French occupation because she was making fake papers. He would be horrified if he knew what we are doing right now with our data.

My German ex was born in East Germany, 11 years before the fall of the Berlin Wall. She thinks people are mad to believe that tracking is not going to be abused.

What the hell is going on?

comment 2y ago · link · parent

I love the fact that almost every single answer to your comment is a completely different take.

comment 2y ago · link · parent

Justine vs Bellard, that's a nice setup.

638.

A game to understand AI alignement by making paperclips(decisionproblem.com ↗)

2 points · by BiteCode_dev · 2y ago · 1 comment

comment 2y ago · link · parent

In the same way selectors and map replace jquery. It depends how much sugar you want.

comment 2y ago · link · parent

Note that it's really dom centric and doesn't include ajax.

comment 2y ago · link · parent

Honestly, if I can disable ads by paying them, then I'm ok with it.

Google will suck all your data even if you pay, and link the entire earth of services to your identity.

For now, chatgpt doesn't care, and I already pay for what they provide.

May they kill Google.

20 years old me would freak out hearing me that, they used to be my heroes.

comment 2y ago · link · parent

New Pipe X if you need a full client does that as well.

643.

PEP 750 – Template Strings: lazy string formatting evaluation(peps.python.org ↗)

2 points · by BiteCode_dev · 2y ago · 1 comment

644.

Eicar test file: a string that can trigger anti-virus(en.wikipedia.org ↗)

3 points · by BiteCode_dev · 2y ago · discuss

comment 2y ago · link · parent

Because ORM attribute access usually trigger requests, and you must design the API so that those requests, which trigger called to the network, don't block.

comment 2y ago · link · parent

Why is it not just blocked in India? How come an American product, some of it is hosted on European servers cannot be reached in France?

comment 2y ago · link · parent

The new generic syntax is great as well, the debugging improvements are handy and I do appreciate the new @deprecated. But 3.13 really shines, once again, with the improvement of error messages.

Now when you are a professional dev, you see them less and less, because you make less mistakes, but also because you heavily use tooling to prevent errors or diagnose them.

But if you observe beginners with modern versions of Python, it's quite magical really. The autonomy and confidence they get from those are huge.

The energy that Pablo Galindo Salgado injected into the culture of good error message has been a boon to the language.

comment 2y ago · link · parent

Yes, because all the other people on HN use unlock origin.

comment 2y ago · link · parent

Their own home page says their Hot reload on RSBuild is slower than Vite's.

Since I don't care if my build takes 1 second more (per their benchmark again), but I do care very much that the page refreshes faster when I do an edit, it's a hard sell.

comment 2y ago · link · parent

In the party, it will be used at the main entrance, but there will be multiple secondary ones so it won't work.

What I need to do is to move my ass and fix the timing.

comment 2y ago · link · parent

I just wrote a script that uses 2 ultrasonic sensors + 1 raspy to detect if somebody is moving in one direction, so that I can put that in a giant green tunnel at the entrance of a video-game-themed party next week:

https://0bin.net/paste/GrfAHJRt#oqVtar1pUzqtdCWWzvEEK71mNlcd...

When the person walks in the tunnel, it makes the sound of Mario when entering a pipe.

It does nothing else. It's for one night only, and nobody will ever use it again.

Meanwhile, it's setup in my bathroom, because it makes me giggle when I go.

It's the little things.

I do have a timing problem, as for now the sound is triggered no matter the direction I walk.

For the same party, I made a "loot generator". You scan a QR code, and go to a page that asks you to enter some info. Then it generates what your own cadaver would loot to heroes if they killed you. Used that as an excuse to try Cloudflare workers:

https://loot-generator.drax2industries.workers.dev/

(It's in French and can get pretty politically incorrect)

Again, it's one-time use software, mostly for drunk people to have a giggle. Then it will disappear like tears in the rain.

Last year, it was a light-speed effect on a fake spaceship cockpit:

https://www.bitecode.dev/p/light-speed-with-python-and-js?ut...

Ephemeral software for the fun of it.

comment 2y ago · link · parent

Codecs (https://docs.python.org/3/library/codecs.html) can change the content of the file on the fly. You can abuse that to create new syntax, although it is evidently not the original intent.

Let's say you hate significative spaces, here is a (very fragile) PoC for your pain:

https://0bin.net/paste/42AQCTIC#dLEscW0rWQbE70cdnVCCiY72VuJw...

Import that into a *.pth file in your venv, and you can then do:

    # coding: braces_indent
 
    def main() {
        print("Hello, World!")
        if True {
            print("This is indented using braces.")
        }
    }
You also can use import hooks (python ideas does that), bytecode manipulations (pytest does that) or use the ctypes module (forbiddenfruit does that).

Still, I'm very happy it stays limited to super specific niches. Big power, big responsibilities, and all that.

comment 2y ago · link · parent

Python can actually do this using "# coding:", albeit less elegantly than lisp.

I would say it's a good thing, I don't want to see a hundred of half baked, badly tested and vaguely document DSL with no decent tooling support.

654.

Braid: Extensions to turn HTTP into a state synchronization protocol(datatracker.ietf.org ↗)

3 points · by BiteCode_dev · 2y ago · discuss

comment 2y ago · link · parent

Yes, but the innovators' incentives don't always align with the needs of the people the regulations should protect.

Regulation are a necessary balance, otherwise the innovators become so powerful they eventually concentrate all the power and privilege and make weaker people pay for it.

Chlorofluorocarbons were an innovation for some times, then we needed regulation to save our ozone layer. Industrial wouldn't have stopped using it.

It's a fine line, constantly moving, an nobody will never be perfectly happy about it.

comment 2y ago · link · parent

I already have microg installed.

comment 2y ago · link · parent

Forest for the tree.

Google and Apple are both heavily invested in ads (apple made 4.7 billion from ads in 2022), they have a track record of exfiltrating your data (remember contractors listening to your siri recordings?), of lying to the customers (remember the home button scandal on iPhone?), have control over a device that have your whole life yet runs partially on code you can't evaluate.

Trusting those people makes no sense at all. You have a business relationship with them, that's it.

comment 2y ago · link · parent

Google and Apple were both part of the PRISM program, of course I'm making this claim.

That's the opposite stance that would be bonkers.

comment 2y ago · link · parent

Given that prices for health in the US are exorbitant because they are based on the free market and the prices in France much cheaper (even when you pay 100% of of pocket) because the market is state controled, I have a hard time to take your comment seriously.

But I'm sure you will find a reason while health is an exception.

1
212223
184