Hacker Newsnew | past | comments | ask | show | jobs | submit | more BiteCode_dev's commentslogin

The supported python version:

    >>> import tkinter as tk
    >>> tk.Tcl().eval('puts {hello, world}')
    hello, world
    ''
I wonder if this releases the GIL.


Yeah if you see a for loop on a numpy array in a code base, it's game over.


Those those who wonder how it can make it faster since it's using threads and Python has the GIL, numpy releases the gil while doing computation, so thread can actually use multiple cores if you speed most of your time in numpy world.


For this code we can also easily try the process executor instead of the thread executor - then we avoid the GIL. In this case, it has an approximate 10% performance penalty, probably since we have to serialize data back and forth, can't share memory.


You can since 3.8 :)

https://docs.python.org/3/library/multiprocessing.shared_mem...

If you use a data structure that supports the buffer protocol (such as a numpy array), you won't even pay a serialization cost.

Python has made a LOT of progress, concurrency wise. Between asyncio, process pools, threads releasing the GIL and shared memory, you can get much perfs with the stdlib alone.

Then of course you have Dask if you need more later.


Yes, I'm hoping the latest MS effort on speeding up Python will also tackles that.

The JIT effort is great, but projects like mercurial had to hack lazy import because they are so slow in python.

I wish this can be baked in the language some day: loading half the stdlib to run hello world is not very efficient.


And because the users let it.

Most of the people on HN shared the issues about Facebook with relatives, only to get a polite smile at best.

People don't care. They are OK with it. They are consenting victims.


They can't be a victim if they are consenting (aka, knowingly accept the harm because they figured the trade-off is worth it).


It should be made illegal for some softwares, such as an OS, to be able to force you to have an internet connection or create an account.


Almost all devices containing a CPU run an OS. Can none of them, like IOT devices have service based accounts? This would make illegal almost all current consoles as well. I understand your ire at Microsoft but I don’t think massacring huge swathes of the current device ecosystem is proportionate or necessary.


> This would make illegal almost all current consoles as well.

Good! The inability to play a local game by putting in a disc and playing is enormously stupid, possibly even more than with a general purpose computer.


I'm pretty sure you can play games on consoles without creating an account on some service, at least in last gen consoles. Did that change with the current gen?


The Switch does work offline, as does the PS5; Xbox X is unclear (different sources give different answers), Xbox S can't (https://answers.microsoft.com/en-us/xbox/forum/all/set-up-xb...).

Perhaps I should amend to "would be enormously stupid".


You can have service based accounts. They should just be always optional.


You have the option not to buy the product.

I'm not taking an absolutist stance on this, I think there's scope for regulation of how accounts can or cannot be used and privacy protection of user data. I just don't think eliminating online accounts is practical.


You also have the option to live in a cave, or to kill yourself.

But I don't think we should use them in a reasonable argument.


There is no alternative product.


Stop making things illegal. Find a smarter way.


Yeah, let's stop making murder illegal. I'm sure there is a smart startup that can disrupt it.


This is a category error.


Looking at the GUI, I have no idea what it does.

I'm guessing that you actually need to know Nix to be able to use it, which kinda defeats the "usable for non-technical users" goal.

I can see the value of it, if I ever learn Nix, and want a quick way to make modifications without having to google every possibilities.


It literally says what each field does..

Just because it doesn't have an obvious minimal modern UI doesn't mean it doesn't do its job. Gotta read I guess .. but then again Nix also in general has a prerequisite of "calm down and read." But then again, so does Linux!

The only thing you need to do to be Nix-competent is not flip the table and blame the tool when you get an error you don't understand. (Same goes for Haskell.) That said, my years of industry experience has shown that that is a rare attribute - doubly so amongst those with experience and therefore egos.

People in this thread act like Nix users are out of touch. Maybe, but I'd rather be out of touch and learning than grumpy that I had to read.


> Make NixOS usable for non-technical users through a settings / package management GUI.

^ emphasis mine. What exactly does a non-techical user have to read to understand whatever's on the screenshot? Forget non-techincal, explain this to a technical person.

Apparently this has something to do with sound? Have you or any nix-person ever seen a sound configuration screen for non-technical users? I mean this one is by no means perfect, but do compare: https://www.techrepublic.com/a/hub/i/r/2016/10/05/a7dba7dd-3...


KDE provides that already in NixOS. So yeah .. we do see it all the time :)

This config is for a different layer - one a non-technical user probably wouldn't ever modify in most OSes. Hence, the value.


This is exactly the same, although their choice of "sliding buttons" with text and color inside is a bit weird compared to checkboxes.


What? They're nothing alike. One has normal, logical options like selecting sound effects and output devices. The other has useless things like how much the media keys adjust the volume by and whether to entirely disable sound on the system, and is littered with technical jargon like 'undefined' and 'boolean'.


You don't select your output device with your configuration.nix. You use it to configure the underlying OS. So doing this stuff with a GUI? Unheard of in the mainstream. Unnecessary maybe too, but still. Not the same.


You can be "grumpy you had to read" or "grumpy about other being complaining they have to read". You chose that latter and I think it's a good choice :).


> I'm guessing that you actually need to know Nix to be able to use it, which kinda defeats the "usable for non-technical users" goal.

I don't think that's true. Excel is usable by non-technical users. Part of it is due to the GUI, part of it is due to the easy packaging. But you still need to know spreadsheets to use it. This project does the same for Nix.


Is it? There would not be several courses on it otherwise.


There's a difference between "usable" and "having a deep knowledge" I think.


Unfortunately Nix-Gui hasn't yet achieved it's tagline. Hopefully https://github.com/nix-gui/nix-gui/issues/77 letting users configure a predefined list of options relevant to completing a task will bring us closer to that goal.


The problem is, it's very old, and with Firefox, the good stuff comes with the last versions.

Especially, modern Firefox is wicked fast, while just a few versions before, it was less so. The difference is _staggering_.

I think there is a space for add ons to setup Firefox to be more privacy focused. It's easier to maintain than a fork: compiling on so many targets such a huge software is very hard.


On my phone, I have the newest version of Firefox Fennec and IceCatMobile (ancient and barely supported) - they both launch and function at, as far as I can see, exactly the same speed. Where is this speedup you mention actually found?


While I do use Firefox on mobile, I'm talking about the desktop version, like most people do.

The latest rendering improvements are showing great results, and hardware acceleration on Linux is now on part with Windows, so it's fantastic to use on a modern laptop.


Does Firefox do hardware acceleration for videos yet? It still does it in software by default on Linux as far as I know, unless this has changed recently?


Don't know, videos are seemless but I got a very powerful CPU.


You IDE should check the types for you.


This might worked on solo projects but if you’re working with people, I’d highly recommend enforcing type checking of some sort. People will ignore the IDE error messages.


> People will ignore the IDE error messages.

Then they get caught in code review at least in any team I work.

No way I accept any unnecessary "disable lint" statement in a PR.

Also (of course, since it is default) the CI build system breaks if they commit and push without ignores, so no, trying to slide it past me doesn't work either.


It's not linting, it's typechecking which is slightly different. Linting won't catch type errors. All I'm recommending is to add a typecheck to the CI system so no one sneaks in a broken type (I couldn't recognize a broken type in a PR personally).


Yup. Vscode has built-in Typescript support so that does all the type checking as you go.


Typescript, esbuild and preact are hardly boring, since most JS dev don't even have tried it yet.

React is just starting to become "boring", and I mean that in the JS sense of the world. Because it's lifetime would be considered "modern" and any other language.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: