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

Isn't UE4 free for all use cases under a million dollar of revenue ?

comment 6y ago · link · parent

Wait, move away from firefox as a core focus ?

comment 6y ago · link · parent

Not an anti-article sentiment, but I dislike the trend of big companies pretending they care about the nerds just because they realize they need them for one particular objective.

It's an anti-marketing sentiment.

comment 6y ago · link · parent

Even with the other form, if pip imports anything named like a pyhon module in the dl dir, it will be imported. That's because the current dir is automatically added to the PATH, using -m only add pip.py to the attack surface.

comment 6y ago · link · parent

You should always use this form if outside a virtualenv.

comment 6y ago · link · parent

What's the differences between python and ruby import systems ?

comment 6y ago · link · parent

Is this a case of "netflix did those articles, so we'll do the same so geeks like us too"?

comment 6y ago · link · parent

Those are not successfull start ups, those are companies that make money.

There are plenty in france.

The startup model assumes you use VC cash to drive explosive growth.

Bla bla car took 13 years to slowly becomes the average company it is, being covoiturage.fr before. Deezer barely makes a dent in spotify market despite the fact it was born before. Even french don't know about daily motion, it survives because of all the pirated content it contains. Captain train had a moment, and lost it. The oui sncf service has won. At least if you disagree, none of them scream "explosive growth" in my mind.

I'm not saying there are no successful startups. Meetic and free are examples of that in there times.

But there's not a lot of it. Next door, ledger was midly successful, and maybe kryll will do something if they manage to get binance on board and then add the forex to their targets, but I don't see a uber, stripe, dropbox, etc. anywhere.

comment 6y ago · link · parent

> Aren’t you just repeating some stereotypes you heard elsewhere? If France were as hostile as you pictured it, how would it have such a dense startup ecosystem and even (God forbids!) some very successful ones?

Where are they? Cause as a French, I've been living on the startup scene for 10 years, and I don't see those anywhere. There are successful companies, but startup?

I hear about a 1000 more US ones than french ones, while I'm literally living next to an incubator.

comment 6y ago · link · parent

Do you have any ball bark value you could estimate for the size of a bare bone common array implementation?

I'm dreaming of having basic numpy features in the Python stlib, but numpy is so huge, and I have no idea how much of it is the array itself, and how much are all the tooling around it.

comment 6y ago · link · parent

If arrays are standardized, we may even see a future where they end up being in the stdlib, while libs like numpy, dask, etc. will mostly provide tooling to work with them.

This would be a huge deal, allowing pure Python libs to suddenly exist for a whole lot of things like image/video manipulation, advanced stats, and so on, without requiring compiled extensions.

I love numpy, but having to install the 100Mo beast is overkill for a lot of use cases. Not to mention restricted environments where you can't.

Well, one can dream, no?

Imagine having a numpy-like array as a primitive. Suddenly you can make the case for a K/J-like DSL embedded in it like regexes are for text. Suddenly Python-fast enough perfs are getting an order of magnitude higher. Suddenly you get a powerful shared buffer for multiprocessing.

comment 6y ago · link · parent

J should be a dsl for array embedded in other languages, the way regexes are for text.

comment 6y ago · link · parent

In a sense, it is simple: simple to understand.

Not simple to solve.

Like to win a race Usain Bolt, it's simple, run faster!

Fortunately, Python is well equipped for that. If you open a file with Python that you know it might contains mixed encoded text, you can use try/except to inform the user or open in binary mode, and just store the binary.

But my favorite way of doing it is:

    open('file', error=strategy)
Strategy can be:

- "ignore": undecodable text is skipped

- "replace": undecodable text is replace with "?"

- "surrogateescape" (you need to use utf8): undecodable text is decoded to a special representation which makes no human sense, but can en rencoded back to it's original value.

It's kinda ironic because people bashed Python for separating bytes/text, forcing them to deal with encoding correctly in Python 3. After all, this problem of "slamming bytes together" comes from languages that treat text as a bytes array, allowing this stupid mistake.

comment 6y ago · link · parent

How do they take into account the insects that were in areas turned into fields, industries and cities ?

Are there traps there as well ?

comment 6y ago · link · parent

Still getting updates for my one plus 6. YMMV.

comment 6y ago · link · parent

This article misses the point of the django orm and migration system completly.

They are meant to allow for the dev of an ecosystem.

This is why you have so many django plugins, and why they are so easy to integrate and play together.

This is why it's easy to have a dev envs, tests, signals and api generation with django.

It trades performances and flexibility for this. It's nothing more than a classic technical compromise.

You may need raw sql later on in your django project. But if you feel like starting with it, just go with flask. Django makes no sense.

comment 6y ago · link · parent

In a system where money is power, and the economy encourages its concentration, you always end up with such unbalances.

The invisible hand cannot help here: demand will ask for cheaper prices (the 99% have a big stack of cash as a group, but a small one individually, so they seek savings), which the economy of scale will only make happen for the bigger players.

At some point, fair competition is not possible anymore.

Not to mention the ability to negotiate is driven by who you can afford to hire, who you know, how sustainable you are, etc.

comment 6y ago · link · parent

The UBI must be indexed on the cost of life and updated every year.

comment 6y ago · link · parent

A bit of a plug, but micro has been a nice alternative. Mouse support is enabled by default, ctrl+c/v works as expected, you only need to remember ctrl+e for other commands, as it opens a prompt where you can just type save/quit/etc.

Not in the repo though, which can be a no deal for many.

comment 6y ago · link · parent

Pure players are getting EAFP on us rather than LBYL, I wonder where they learned that frop...

comment 6y ago · link · parent

AMP, quick search box, bread crumbs...

Google track record is not great in that regards.

comment 6y ago · link · parent

Yeah but all those are not IRL activities, so there is a small chance that they mess that up. They are really not good with real people.

comment 6y ago · link · parent

Most people don't even know what an URL is. They can't tell the difference between an app and a website. They think google is the internet. Hell, even the ones that do know better type the site URL into google to go to the site they want.

comment 6y ago · link · parent

Sure but they make this money in B2B, not using customers data.

comment 6y ago · link · parent

People don't search things on amazon, they search things on google, which link to amazon.

So yes, they have a huge potential.

They always have sucked doing things IRL, so it's not a certain win. But owning the road to the competition shop is powerful.

Not to mention they can force the hand of small shops: use our API or go down in ranking.

comment 6y ago · link · parent

They can collect the data as usual, and they will, but for once they would not even need to. They can just wait until no shop can make a living without it because they dominate the market. They they start charging.

comment 6y ago · link · parent

At first, me too.

But amazon doesn't have a search monopoly, millions of android devices, google maps, or youtube to drive the sales.

Neither do they have the huge amount of data google already have on people.

Now there is a possibility that google fails because sales require a lot of IRL stuff they suck at. So maybe it will be a balanced game.

But if they win, it's going to be a nightmare.

Unrelated, but I'm also quite worried about Apple deciding to become a bank one day.

comment 6y ago · link · parent

Free until they dominate the entire market

comment 6y ago · link · parent

Can you ?

Cause the patriot act has been reconducted for 3 generations of presidents since 9/11, including obama, along with legalized mass surveillance, torture and deny of habeas corpus.

comment 6y ago · link · parent

I'll make the mandatory comment about how this is a case typically better served by a good library than a DSL.

This language is very niche, it will never get good support, tooling, doc, and maintenance.

I know making languages are fun, but unless fun is the main goal and adoption is not, craft a good lib with a clean and simple API.

Adopting this DSL would not be reasonable on the long run.

1
153154155
184