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

I thought about it but their colleagues would have had the same problem, yet didn't. Plus becomming flight attendant removed that activity.

Not to mention it happened during the hollidays too.

It's probably more life style related, but I was there during said life style and couldn't figure it out.

comment 2y ago · link · parent

Nope. Hotel, then airplanes.

comment 2y ago · link · parent

I know it's unrelated because this has an actual explanation, but I had an ex that stopped watches simply by wearing them for a while.

The model didn't matter, give them a few weeks, and they would stop. Put them aside for a while, they started back.

Never could figure out why, no particular behavior emerged, she changed jobs and houses and I couldn't see a pattern.

Fun that life is still full of weird stuff like this.

comment 2y ago · link · parent

Even if the companies took security seriously (which they don't since it rarely affects their bottom line, even in the event of a breach), it's one of the hardest topics in IT, and there are very few people actually competent in it.

With the explosion of the number of those boxes, we added more surface of attack, but the number of good security people didn't increase.

comment 2y ago · link · parent

Yes, there is: https://gcollazo.com/optimal-sqlite-settings-for-django/

comment 2y ago · link · parent

Well, you gotta balance all that tax evasion with something.

comment 2y ago · link · parent

Once it ends, we will buy more GPUs because any small website will want its own.

I know that as soon as I can output 100req/s on the cheap on a llama-level model I will put it EVERYWHERE. And my clients too.

DMCA handling? Content flagging alerts? Fuzzy categorization? Natural UI for end user complex queries?

All LLM baby.

And much, much more.

comment 2y ago · link · parent

Yes, but it's a completely unrelated matter: even with a JIT you'll want compiled extensions since you can't beat hand crafted SIMD for the scientific stacks or machine learning.

comment 2y ago · link · parent

This is not what holding swift.

What's holding swift is not having a good story to call a swift compiled extension from Python/JS/Ruby/PHP.

Python's community is huge, very active, Python is everywhere, and it needs compiled extensions. And tooling to make them BFF, like pyo3 and maturin, is great

And that's how we got cryptography, pydantic core, polar... Which motives even tooling to be written in rust as a side effect, and how we have uv and ruff.

The scripting community is the most active, if you got them on your side, you get access to a huge pool of devs.

comment 2y ago · link · parent

Swift won't be able to compete with rust until it has a great scripting story.

Rust is currently the defactor choice if you want to make something with js/python bindings, of id you want to speed up a dynamic bottleneck because it makes it super easy.

Swift doesn't even have a good ffi.

comment 2y ago · link · parent

Most rubists like the optional parenthesis, but I suspect must devs don't.

comment 2y ago · link · parent

I wish it would at least be a method on any callable.

comment 2y ago · link · parent

Sure, but have you tried to introduce a new standard tool in the stdlib?

It's not a fun process.

Writing the code is the easy part.

And installing more-itertools for one functions is a bit silly

comment 2y ago · link · parent

For decades you had the famous itertools recipes taunting you in the doc: https://docs.python.org/3/library/itertools.html#itertools-r...

They were super useful, but not included in the stdlib, despite being a few lines long.

We also had more-itertools, bolton, and others, to bridge that gap.

Now, there was always a tension between adding more stuff to the stdlib, or letting 3rd party libs handle it. Remember the saying: the stdlib is where projects go to die.

And of course tensions about installing full on 3rd party libs just for a few functions.

The result is that many people copy/pasted a lot of small utilities, and endless debates on python-ideas to include some more.

I think this is going to slow down. Now if you want "def first_true(iterable, default=False, predicate=None)", you ask chatgpt, and you don't care.

The cost of adding those into the project is negligeable.

It's nowhere near generating thousand of class stubs. It's actually the opposite: very targetted, specific code needs being filled instead of haunting python debates or your venv.

But to stimulate a bit your anxiety, I do think code gen is going also making a big comeback with LLM :)

comment 2y ago · link · parent

Add functools to the list. Espacially functools.wraps() and functools.partial().

The stdlib is full of goodies.

Now I always appreciated the battery included logic in python. But I noticed this week that LLM diminish that need. It's so easy to prompt for small utilities and saves you from using entire libraries for a few tools.

And the AI can create doc and tests for them as quickly.

So while I was really enthusiastic things like pairwise() were added to itertools, it's not as revolutionary as before.

comment 2y ago · link · parent

Checkout shiv for turning even more zipapp goodness: https://shiv.readthedocs.io/en/latest/

comment 2y ago · link · parent

- There are cheaper alternatives to both the razors the author is showing.

- You don't need to shave every day, especially with 2024 social norms, you choose to.

- Nobody forces you to use a disposable razor. You can use a straight razor. You can use an electric shaver. I use both. But it turns out disposable razors saves your from cuts and learning technics and people want that.

- So you really pay £40/year (which is not huge) for the convenience of a disposable razor, and not even the cheap ones. And the fact you want to shave every day.

That reads like an Ad, except I don't know what OP is selling.

comment 2y ago · link · parent

It's not more used because of c extensions, mostly.

If you have a long running process with a lot of pure python code, you can get a lot of perf boost.

Be aware memory consumptuon will go up significantly.

comment 2y ago · link · parent

One could create it using zeroconf but i'v yet to see one software do that.

comment 2y ago · link · parent

That wold require automating reproductibility or requestin and analysing datasets that are not provided.

comment 2y ago · link · parent

I know it's trendy to crap on crypto on HN, but my first real life use case was making a donation to wikileaks because visa refused to do it.

That I'm prevented to send my own money throught a service I pay for to a recipient that is legal in my country is outrageous.

I'm sad the internet is spending so much energy cancelling the latest social faux pas, but things like that get barely a blink.

Also a good reason to fight against the deprecation of cash.

In today's society, we can't do much without money. It's a power bottleneck. And no system stays stable forever.

It's too bad stating this makes you fall into a political category, or labelled as some -ist.

Thinking about the society we want to shape should not sound weird.

742.

Charlie Marsh on Astral, UV and the Python Packaging Ecosystem(bitecode.dev ↗)

3 points · by BiteCode_dev · 2y ago · discuss

comment 2y ago · link · parent

Tangential, but if all you want is inline code generation from Python and not a full preprocessor, you can use the excellent cog from Ned Batchelder:

http://nedbatchelder.com/code/cog#h_what_does_it_do

comment 2y ago · link · parent

Remind me of the florida keys syndrom where each generation think it's a great fishing spot but doesn't have a frame of reference for how much the fishes actually became less numerous and smaller:

https://earimediaprodweb.azurewebsites.net/Api/v1/Multimedia...

comment 2y ago · link · parent

I agree but stating isn't going to change the culture of corporations or even countries.

comment 2y ago · link · parent

Yes, but that doesn't change the problem.

comment 2y ago · link · parent

It doesn't, chat and mails actually become way more socially important in remote.

comment 2y ago · link · parent

I get the sentiment, but also, for many the work place is a socialization hub.

And what OP argue about is a direct consequence of that: small talks, serendipity, politness rules, etc.

If you want raw efficiency, the article makes sense.

However, in most orgs, that's not what most workers want.

comment 2y ago · link · parent

Yeah RSS is the least promoted web feature of the century.

Even youtube channels have rss, and it's advertised... nowhere.

1
242526
184