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

It may be a bot? Either one with a bug, or a way for the authors to kill some competition?

The article doesn't say if the pizzas were ordered online or by phoning directly the shops.

At the begining, the bot would not have been able to call, but I assume now it's possible to make bots smart enough to handle pizza orders. It may even be a nice way to train one.

comment 6y ago · link · parent

So, instead of working with well established EU companies like OVH or Lease Web, they, once again, build-to-fail a sovereing solution.

They will not be able to hire the necessary talent, don't benefit from decades of expertise, have to build trust with multiple communities plus a client portfolio and have to pay for building infrastructures.

As @heipei said, Europe mentality is already years late when it's about tech. And while I do think we desparatly need our own alternative to the US GAFAM and clouds, this is, once again, a doomed attempt that will mostly enrich a few well connected people.

comment 6y ago · link · parent

Isn't what hypertext links are for ?

comment 6y ago · link · parent

This happens if you miss the "subtly adjust using logic" step.

comment 6y ago · link · parent

Which is what happens when "something working for no obvious reason" breaks.

comment 6y ago · link · parent

Whatever is currently on the OnePlus 6 does it.

comment 6y ago · link · parent

It's a joke about science and magic.

comment 6y ago · link · parent

Clearly you aren't a frontend dev.

comment 6y ago · link · parent

Thanks

comment 6y ago · link · parent

I would advice to get a hold on the book "The inner game of tennis", which is, exactly like it sounds, a book on tennis training.

Except when it's not.

It hold advices that can be generalized to improve your ability to learn without using analysis and develop natural actions in a given field.

Apply it to social interactions. Those are much better for everyone involved when you mostly instinctively react, yet subtly adjust using logic, not the opposite.

comment 6y ago · link · parent

It does feel better knowing my mistake didn't cost $125-million dollars.

Is there a book that lists many bugs and weird IT stories? Like the 500km email or the FileNotFound boolean.

comment 6y ago · link · parent

Also, android will display such QR code if you go to your wifi settings so you can connect other devices easily.

comment 6y ago · link · parent

Can you give some details about the experience?

I'm curious about this system, but not curious enough to spend a week playing with it.

comment 6y ago · link · parent

And they added Python 3.8 support last year:

https://blogs.windriver.com/wind_river_blog/2019/09/vxworks-...

This damn snake can be compiled on anything.

comment 6y ago · link · parent

It reminds me of this olognion piece:

https://www.theolognion.com/unreal-engine-5-is-meant-to-ridi...

That's not just hilarious, that's also pretty close to how I feel most of the time.

I mean, some people have built the Airbus A380.

On the other hand, last week, I created a test DB with the user "test" and the password "test". I couldn't connect to it, and after a long debugging session, noticed I misspelled "test".

So, yeah...

comment 6y ago · link · parent

They should have said "Visual Basic and some Excel macros", just to see the Twitter reactions.

comment 6y ago · link · parent

The Macbook touchbar is a good concept. The implementation is terrible

You should keep the tactile feedback, and the default keys, only enhance on that.

comment 6y ago · link · parent

Plus I can totally see plenty of applications for it:

- fn keys that show what mode you are in. I never know if I'm going to hit F3 or "sound up".

- locking keys: is uppercase is locked or not? Am I at one press for ` ? Have I triggered ^ ?

- show special char combinations: press alt-gr, and the keyboard show you the signs like €, ¤ or | that you can enter.

- per app shortcut displays: imagine, you click ctrl + and all other keys change to show what they can do.

- game shortcuts: when you launch it wasd become arrows, shift become jump, etc

comment 6y ago · link · parent

I've read the same sort of arguments for 20 years. They haven't changed or evolved.

Either a minority of lucid fans have been right all along about the complains of the masses, or this is denial.

comment 6y ago · link · parent

> the state of free drivers on Linux is significantly better than it was just a few years ago.

Of course, but I think you can thank phones, the internet and the economy of scale for that. Not strong arming.

You will always find examples of times where something worked. But each one I can see 10 examples of companies that said "nope" during one of my mission.

> what kind of world do you want to live in? A world where it's easy for companies to create new proprietary software, or a world where it's easy for the users to shape their computing experience?

It's a false dichotomy. It's not us vs them.

There is no them. It's just all us.

> Surveillance capitalism marches on, bolstered by the free labor of the community.

That's a sociological problem, you won't solve that with software. Or licences.

For that you need to get into politics or business.

> This is why I've been so disheartened that parts of the community have turned so anti-copyleft recently.

I haven't see that at all. Open source has never been so popular. Creative common as well.

What I do see is a complexification of software, that requires more and more resources, which the FOSS world has a hard time to keep up with.

What I do see is a mass of people comming to software that don't care at all about those topics, but only about usability, which the FOSS world has a hard time to keep up with.

I'm glad VLC didn't decide that they couldn't read DVD, or OOo read .doc because there were proprietary formats, otherwise they wouldn't have been the popular softwares of today.

Today LibreOffice is replacing MS office in many administrations and schools. The alternative would have been Google doc.

You think making Linux more restrictive would have forced industrials to be more conciliant?

No, they would just have used more proprietary softwares. The entire stack if necessary, and we would never have had Linux on mobile. Instead, we would have had a black box.

The open source mouvement is not "free to everyone to use and modify, except the ones that don't contribute and profit from it".

That would be a very bitter point of reaction, not positive action.

comment 6y ago · link · parent

Oh, but I do research a lot my machines before.

There are many problems with that:

- a casual user will just not do it. They don't have the know-how, but would they have it, they don't care enough to do so. They just want something that works. For now, Linux is and remains a tech saavy user systems, which is and will always remains a niche. Which of course means less resources will be put into it.

- it's hard, and time consumming. It take no joy in hunting down "that one laptop" that will work everytime I want to buy a new machine. Then being stressed out when I actually install the system, because of course I will never be 100% be right. There will always be something.

- you get twice the constraints. Search for a quality machine AND search for machine that will work on Linux.

- it's not permanent. Upgrade may just break support.

- it's not total support. I love my 2in1 xps. I chose it knowing I couldn't use the webcam and that I would have to forgo the tablet mode use. It's a compromise I had to make. Which a windows user doesn't have to make.

- it means I have 300 great laptops I could potentially buy, but in reality probably only 10 among the most recent ones.

- it means you never get to enjoy modernity. You always have to wait one year or two after a tech is popular to get decent support.

None of this is a deal breaker for _me_. They are mostly 1st world people problems, meaning problems I'm happy to have :)

But hand waving is not how we should approach this.

comment 6y ago · link · parent

When doing dev, there a be other problems with pyc files. On of them is deleting the original py file, but still being able to import the module because Python will import any pyc file it if exist.

So if performances allow you to do so, disabling them when you dev is not a bad idea, as long as you keep them enabled when you run CI.

IMO, when you dev, you should set PYTHONHASHSEED (random is predictible), PYTHONDEVMODE (verbose warnings + tooling + sys.flags.dev_mode=True) and PYTHONDONTWRITEBYTECODE (remove the need for cleaning them).

In CI and prod, you should make sure those are NOT set, and use PYTHONOPTIMIZE=2 (remove assert, __debug__ lines and docstring) if you trust your dependancies to be well written (which I would check by running tests in a pre-push hook).

comment 6y ago · link · parent

Then you'll have the Rust/Go devs that static link everything for this reason. And the flatpack/snap/appimage advocates to ship a virtual containers. But of course you forgo the trust you get from the repository maintainers curation, and break the security update mechanism.

comment 6y ago · link · parent

Thanks a lot.

comment 6y ago · link · parent

I use Linux every day. I love it. But I don't think your list reflects reality.

> Bollox. Gnome/Mate Display-Manager does an excellent job. If you're still using X11 manual configs than what do you expect..

I have to go from multi-screen configuration to configuration because of my job. I happen to try a lot of combinations of connectors, dongles, screen brands/resolutions...

And no, this is really, really not solved. I have problems 1 time out of 3.

> "Linux drivers are usually much worse (they require a lot of tinkering..)" - Broad statements are usually wrong. Especially this one based on an opinion from the 90's.

They are, here. For BT, Wifi, graphic cards and printers at least, I attest that I most of the time have less features and/or stability using Libre drivers.

Does it work well enough for day to day use? Certainly. Can I use my "scan" button on my Epson laser? Absolutly not.

> "Resume after suspend in Linux is unstable and oftentimes doesn't work." - Bollox. Resume from Hybernate - maybe. But suspend works perfectly most of the time.

Most the time is not enough for sometime like suspend. The whole idea is that you _trust_ the computer to restore you work space the way it used to be. If you can't, if sometime it may not boot, or disable the network card (common problem), then it failed.

Can you imagine if VSCode would restore your file tabs, but only, most of the time?

In fact, one of the first thing I do on a fresh install is to go the the "close lid" settings, and disable suspend, because I'm afraid to lose state by mistake.

> "X.org is largely outdated" - duh... the whole list on this topic is dated issues resolved by WM.

X is largely outdated. That why we still have flickers when booting a linux desktop, which means you will never ever make a Mac lover use Linux because they will not trust it.

Yes, appearance matters.

> "Applications development is a major PITA" - this is ridiculous.

If you talk about web or cli apps, yes. But desktop apps, no.

It IS harder to dev a desktop app for linux, because you have to support a HUGE diversity of configurations: distros, versions, desktop managers. Want to add a system tray icon ? Well, are you targetting Gnome 2, Gnome shell or Unity? Want to make a package ? rpm, deb, snap, flatpack or appimage? Want to use QT4? Not installable from the official repos in the last Ubuntu LTS.

Meanwhile, apps that worked in Windows XP often still works on Windows 10.

The alternative is to limit yourself to a weak % of users from something that is already a niche.

I love Linux, but being in denial doesn't help getting it in better shape.

Not to mention this lists is tiny compared to the actual article.

comment 6y ago · link · parent

Do you have a link for that? I often get ask questions about secure messaging, and I always have a hard time giving anything better than "it depends".

comment 6y ago · link · parent

I'm a strong FOSS proponent, most of my software is released under MIT, I use Linux daily and help others to use open source as much as I can.

And yet I find this idea total BS.

The reason I could even migrate to Linux when I was a teen was compatibility. It's because free softwares (VLC, Firefox, OOo...) were ported to Windows, a proprietary plateform, so that I could then feel at home later on Linux. And I made a definitive switch thanks to Ubuntu, because it made using most hardware easy, by accepting to use proprietary drivers when required.

Strong arming the industry into Libre never worked. The GPL is one of the least popular licences for this very reason. I, myself, never uses it.

Representing close source as evil doesn't work either.

It's like being vegetarian (which I am) and guilt triping people about meat. It's completly counter productive.

The result we got is that the year of Linux on the desktop never happened, because playing on Linux is hard, because the last cool gadget doesn't work, because you have to carefully chose your laptop to be sure it will work with it (E.G: my XPS 2-in-1 webcam doesn't work on Linux).

It also adds a lot of work to the kernel devs to try to keep up with the outter world, but they have a limited bandwith.

So Linux BT still sucks (even more than regular BT). Wifi is still not on part with the XP on other OS. Batter life is abysmal (I'm dual booting, and the difference is X2).

All for an ideal we never reached anyway.

Help and encouraging for FOSS makes a better world.

Being pushy about it hurts us.

comment 6y ago · link · parent

I see that in the Python and JS world sometimes.

The fact is, most scripting languages are written using a compiled one, often C, under the hood.

And those implementations have been optimized for decades.

A lot of hot loops are such because of complex sorting, filtering, and so on, and those are quite hard to do right.

Hence, it's possible to write a way slower implementation using C manually than using the automatic way in Python or JS, not to mention the later has a very good JIT.

If you add the fact some code may use crazy fast libs (like numpy in Python), then you may end up in a situtation where you have to really know what you are doing to implement a faster version.

However, somebody knowing what they are doing would measure and find the bottle neck first before talking of a rewrite, and suggest it only if it's worth it.

Which it can be, of course. Mercurial, Dropbox and Youtube are all good stories about it.

But the junior thats been tasked to improve the UX is probably not the best to advice you on the matter.

1
161162163
184