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

Yes, but only if it falls back to text diff as soon as there is the smallest doubt it can't provide a good AST diff.

comment 5y ago · link · parent

It is possible, the consequences would be huge, and a lot of people make money with ads directly or indirectly, so they would get harshly impacted.

But after a while, I believe an economy were you pay to get this content would appear, stabilize, and be saner. Of course the decade where the filter would operate would be painful.

Anyway, I'm pretty sure banning slavery had a high economic impact on the USA. I'm also sure a lot of people complained about that, and said it would be impossible.

comment 5y ago · link · parent

- you create valuable content so that search engines bring people to you.

- you have a real activity in social networks, so that the community know you for you actual benefits, and will follow up on your work.

- you go to IRL meetup to create relationships with people and tell them about your products.

- you register your app to listings that let people search for things.

- you create open source software so that people will learn about what you do.

- you participate in the ecosystem you want to flourish, like being involved in not-for-profit groups related to your activity.

- world of mouth.

- partnership with complementary services.

- free samples, sales, etc.

Of courses those are only a few ideas. I'm sure people will get creatives; give a problem for humans to solve, and they come up with plenty of stuff.

The idea is that you can't just blast society with screams for you product. But you can have positives actions into the world that will make you known.

comment 5y ago · link · parent

Can you use Pylance with it?

comment 5y ago · link · parent

Can you share with use what are the benefits of Sublime Text 4 over version 3? I bought the licence for 2 and 3, but struggle to find a reason to upgrade.

comment 5y ago · link · parent

While I agree with the premise, I think this is going to be a huge battle to win very little: advertisers taken out by the door will come back through the windows.

At this stage, we should just ban advertising in general.

The purpose of advertising was to be able to give informations to the customers so they could chose, but it's not what's happening anymore. Now, it's a tool mostly used by those having money and/or power to have more of it, or keep it.

Removing advertising will have a lots of benefits:

- small shops will have a better fighting chance. Their local presence will give them visibility.

- "free products" that are actually paid with advertising will be filtered out based on their actual value for the users since they will have to explicitly pay for them

- no more information pollution on TV, internet, billboards, etc. No more product placement, star endorsement, branded athletes...

- billions of dollars redirected from ads to actually make useful things. Probably closer to home as well.

- fake reviews, paid articles, click bots, etc, would be prosecuted, making money for the state, and less fake news for us. The signal vs noise would get better significantly.

- weak people, like kids or the elderly, will not be campaigned to be molded into consumers. And social norms not affected as much by corporations.

- and the incentive to spy on consumers, hold as much data as we can, crafting future data leak disasters, will naturally become weaker. No need to fight for it.

The downsides exist, but cannot even touch a world with a ton of less waste and bs, and money for the business that make a living with it.

comment 5y ago · link · parent

Nah, what will happen is that accessibility will be dropped 9 times out of 10. And one day, many years from that decision, they will receive a notification from the state, stating the site is not accessible. And then the site will be made that way. Maybe.

The situation were a website is made accessible from the start is such a tiny rare occasion it cannot be used to explain why xhtml failed.

comment 5y ago · link · parent

I loved xHTML, but it failed for a very simple reason: people designing it were working on a DSL to structure a document. But the vast majority of users were actually trying to make things look pretty.

Most websites are currently blobs of div. Why ? Because the idea of a web page being mainly a document completely missed the part were artists fiddling with messy code would produce things that customers would like better.

It's the same reason we currently see giant images on home pages and 10mo static assets to load. Because in the end, the best technical decision doesn't win. The one that gives the result the customers end up preferring wins.

If you have 3 hours to get a design done, you have the choice between making it look great, or having a clean semantic and maintainable markup, you will have to drop one. And the market will select according to the result.

comment 5y ago · link · parent

> pyenv as he mentioned is a common tool.

Pyenv is not a "common tool". It's used by a very small minority of devs since:

- it's used only by dev, and half of the python coders are not devs

- it works only on unix. Most people install python on windows (https://discuss.python.org/t/python-download-stats-for-may-2..., and that doesn't take in consideration anaconda or the appstore). Unless you count the obscure fork used by even less people.

- And yet on mac, if they don't use the official installer, they use mostly brew, not pyenv. On Linux, the officials repos or things like deadnsnake or epel. And of course docker. Pyenv is a tiny fractions of that, because any alternative solution is better known and easier.

- hard to use because it compiles things, fails easily in non obvious ways and assume you manage the path correctly, so it's really, really, popular only with people that want to deal with that. In fact the setups instructions are huge: https://github.com/pyenv/pyenv#how-it-works

- that's just what we see in the field. I go to a lot of different shops every years because I'm a freelancers, and I encountered pyenv twice in 10 years.

> That it happens to compile under the hood is an implementation detail that users may not even be aware off.

Of course not. The setup docs themself tell you to "Install Python build dependencies before attempting to install a new Python version.".

So not only you have to be aware of it, but you must be capable of setting up a compilation environment, and if you fail to do so, it will not work.

pyenv is not standard python. It's not "a common tool". It's a tool for a niche of specialists with domain specific knowledge.

comment 5y ago · link · parent

I a world were public service outages can take days to get an official announcement, I think 3 hours for a free non essential service is damn fast.

comment 5y ago · link · parent

Built is the keyword here.

comment 5y ago · link · parent

Freebsd and compiling is everything but common. Probably 1 coder for 100000.

If you do that, you are assumed to have removed the safety belt and know what you are doing.

I know we are on HN, but you have to remember half the python coders are not even dev. They are geographers, mathematicians, biologists, students, teachers, data analysts. And of course they are on mac or windows.

Even I, and I started to code in python 2.4, never have to compile python. I do it for fun from time to time, but I don't use that professionnally.

If you use a platform where sqlite is not there, you are an exeception in a niche of minority.

I drive my car assuming there will be breaks on it. It can be missing, but it's not a great assumption.

comment 5y ago · link · parent

The official installers for windows, linux, the app stores and the red hat and debian repo all include it.

At this point, this is nitpicking.

Tkinter I would understand, but not sqlite. Even django doesn't work without it.

comment 5y ago · link · parent

If you have cPython, you have sqlite.

How is that an additional dependency?

comment 5y ago · link · parent

Not really, you can call any async function in JS in sync code. It is automatically scheduled, and it will return a result immediately.

This result is a Promise, that you can pass sync callbacks to, and keep the whole code away from async/await.

You can also decide that async/await is nice, and just use that instead.

I'm a Python dev, but that part is better in JS.

comment 5y ago · link · parent

Because a lot of the JS community comes from the design world, and they care about colors more than other communities.

In Python, the experience has been the opposite. We had to wait until recently to have once very good decent terminal coloring lib: rich.

comment 5y ago · link · parent

From the site:

> I'm fairly familiar with CSS3 and all the new whizz bang CSS things that I could very well use to make this fancy looking, but I decided to go the simplest route. [...] Also it's basically mobile responsive out of the box.

But then I notice some column layout : https://www.andrewjvpowell.com/#about

How is that responsive? Well, "inpect" reveals flexbox, which is very much modern css.

Still minimalist though.

comment 5y ago · link · parent

Intersection != Equality

I fast. I meditate. I'm not religious.

One may be religious and not fast nor meditate.

comment 5y ago · link · parent

> Can FB sue China in court for damages for the cost of serving these forged requests?

Sure they can. They can't win, but they can waste time and money.

comment 5y ago · link · parent

Those things would have been done in the name of something else too. Religions here is just a pretext.

Killing the american natives, the tutsi, the jews or the cambodgian intellectuals intellectuals were among the worst things humanity have ever done, and the religion of the perpetrators had nothing to do with it.

Terrible humans will use any rationalization to do terrible things.

Most muslim women in my country don't wear a hijab. However, men beating their wifes are from all kind of religious and non religious backgounds.

I now believe that religion is a reflect of the state of your society, not the other way around. People are racist, homophobic, intolerant, entitled, misogynist, and then, they sometimes use religion to justify that.

comment 5y ago · link · parent

Besides, associating meditation to religion is like assuming fasting == religion.

They are both practices that can exist without mythology, sacred texts or believes of what happens after death.

comment 5y ago · link · parent

That's an interesting design, it seems like the best of both worlds. Zip has really neat ideas. I wish it didn't go the "case as you want road" though.

comment 5y ago · link · parent

In Python at least, you can easily call an async function from a sync function:

    result = asyncio.run_until_complete(func)
Also, having explicit async/await are a wait to tell you: here are the point in your code that have something doing unreliable side effects down there.

You can then use this information to:

- move that code and group it, so you get the rest of the code sansIO style

- put that in a try/except, because this code WILL fail at some point

- think about the perfs of this part of your code, which is what you are doing async io the first place

I do wish that python coro would schedule themself automatically, like JS does, and return a future that you can await explicitly. But that ship as sailed.

comment 5y ago · link · parent

An exception for the rich people to be able to ignore what's best for humanity while we ask all the regular people to make sacrifices. How surprising. Never seen that one before.

comment 5y ago · link · parent

It's doesn't limit the use of the software, it limits the use of their instance.

The licence is GPL, you can use it the way you want on your own machine.

comment 5y ago · link · parent

Most marketing departments I've met don't check their ROI. They request budget, spend it on campaign, then make power points to tell the rest of the company that they were successful.

comment 5y ago · link · parent

Dell service quality is getting down.

Warranty is something they were proud of.

Now, it's just came an absurdly inefficient, frustrating, and wasteful experience.

I have an XPS 2-in-1. Nice machine, except for the so-so battery life and the unsupported webcam on linux, it was a good working laptop.

I paid for the biggest config at the time, and included a $300 premium guarantee with on site servicing.

One year later, the keyboard starts acting up, then the touch pad.

I contacted their support, and while the people on the phone were polite and competent (!), their ludicrous booking system to get a person on site to change my keyboard was a nightmare.

Took me a month of frustrating cat and mouse game to finally get someone at my door.

They changed my keyboard (and for some reason my speakers and battery O_o), routine stuff. "No need to do a backup for that", they said.

Took them 3 hours. They were operating blind, no manual, no spec, no pictures taken before removing parts.

Of course, once done, the machine would not boot anymore. Also the touch pad stopped working completely (tested in the UEFI).

They let me with an unusable machine and left. This was my main working machine. Thankfully, I haven't listen to them and did my homework, I had 2 full data backup and a fallback laptop, albeit way less appropriate for my freelancing missions.

One month and dozens of phone calls+emails later, they come back. Change the whole thing again. Machine is still FUBAR.

They leave again.

2 weeks later, support contacted me to offer me an exchange with a brand new laptop (remember, I didn't need a backup). They should take an appointment in 48 hours.

I'm still waiting as of today, no appointment email, a broken laptop, doing work on a machine were I have to kill the browser regularly because it swaps, doing web dev.

All the staff were nice, but their process, boy, their process sucks.

The worst thing is, it's probably made to avoid some kind of abuse of the system or to save money, but they spent to much time with me they wasted tons of cash, and end up replacing my machine anyway.

Everybody loose with a service like that.

If people are still wondering why the framework laptop is appealing, there it is. I know what my next machine will be now.

comment 5y ago · link · parent

So, don't use the sleep mode for what it's for on your $1500 machine?

comment 5y ago · link · parent

> The fraud bots will keep the ecosystem running

It's like that everywhere.

Yesterday a friend of mind was revealing to me that crypto currency exchanges were pressuring them to create bots so that their coin trading volume would go up or they would be delisted.

There are bots to write comments on trip advisor and to star on amazon. Bots to follow on twitter. Bot to click on referal links and bot to farm in games.

I'm pretty sure if we all suddenly went offline, half the internet would seem to keep going as usual.

comment 5y ago · link · parent

The IRS interest rate is better than my saving account interest rate, and is guaranteed. That's crazy.
1
123124125
184