News for hackers. Stuff that matters.

londt8

Re:Nuitka: a Python compiler written in Python on Thursday June 17, 2021 @09:16AM (#27539242)
I think its typical that only one python runtime is installed in the system. What is the use case for bundling the runtime with the app?
Re:Exhaustiveness Checking with Mypy on Tuesday December 15, 2020 @07:14AM (#25429551)
This may seem like a good idea, but it gets problematic since you need to always use isinstance checks. Its actually discouraged to return union types by the mypy team: https://github.com/python/mypy/issues/1693
Re:The Unix timestamp will begin with 16 this Sunday on Sunday September 13, 2020 @04:23AM (#24459343)
ISO8601 is quite large, they probably don't want to ship that big standard library modules which would parse 100% of ISO8601
Re:AWS Copilot on Wednesday July 15, 2020 @08:18AM (#23844112)
Scripts which generate the config also have their own problems. Check out Dhall, it attempts to solve this.
Re:Overview of Python dependency management tools on Monday June 01, 2020 @12:40PM (#23380464)
I think docker is great for providing isolated environment, venv has similar goals. pip-tools + docker is powerful combination, but the article doesnt mention pip-tools for some reason.
Re:Hypermodern Python on Thursday May 28, 2020 @09:21AM (#23336887)
docker with pip-tools is great combination, you get deterministic builds easily
Just FYI: google recaptcha works with screen readers too and blind users can use it.
Re:Ask HN: How do you manage self-study? on Sunday May 03, 2020 @04:26PM (#23061604)
What kind of videos you watch? Maybe that could guide you to find something which interests you.
Why not just anonymize the data instead? Not using foreign key constraint just for the sake of GDPR sounds weird.
Re:Shirt Without Stripes on Monday April 20, 2020 @02:37PM (#22926883)
I tried to search for "cheese without holes" on Google and it yielded good results. I think the problem here is that the query is something people would rarely search.
Re:Writing Python inside Rust on Saturday April 18, 2020 @06:07AM (#22906631)
You can use pip to install the executable source files. Pip is preinstalled on most Libux distributions and MacOS.
Re:Jitsi Meet Electron 2.0 on Friday April 10, 2020 @06:41AM (#22831684)
8x8 uses Jitsi for their video calls. Therefore funding Jitsi improves their paid service. I hope this clarifies it.
I dont think list comprehensions are used to improve performance. One reason to use them is to improve readability, as the execution doesnt jump around with continue/break etc.
You can use strict types and enforce that all types are correct during runtime. Check out mypy with "--no-any-expression" flag and Pydantic.
Re:RuboCop 0.80: Ruby static code analyzer and code formatter on Tuesday February 18, 2020 @01:44PM (#22358879)
I get your point, but i think the main reason for using 80 character line length nowadays is that its more readable. Books use often line lenght of about 60 characters for this reason.
Re:Format Python Code Using YAPF on Sunday February 09, 2020 @06:26AM (#22281587)
It has questionable default of 88 characters per line, which is configurable. I wish they chose 79 characters as PEP8 suggests.
Re:Automate GitHub Dependency Updates with Dependabot on Tuesday December 31, 2019 @02:09PM (#21923611)
I think reviewing all code in the dependencies is not reasonable. When i add new dependency to my projects i evaluate how trustworthy the maintainers seem.
Re:Dhall: A Non-Repetitive Alternative to YAML on Thursday July 04, 2019 @02:15PM (#20356630)
Its more like an alternative to scripts generating configuration from templates. they claim that this is better because you cant for example write an infinite loop ruining the script.
Re:Blood sugar patterns to master as a type 2 diabetic on Sunday June 16, 2019 @07:38AM (#20195012)
Also adrenaline
Re:How to use array reduce for more than just numbers on Sunday June 02, 2019 @11:12AM (#20075958)
Technically there is no iteration in filter/map/reduce at all.
You are thinking of something else than python? Python has strong, dynamic type system with little implicit type conversions.
Have you checked for diabetes?
Re:Implications of Rewriting a Browser Component in Rust on Thursday February 28, 2019 @01:36PM (#19273780)
I recommend using mypy for python, type safe python has came a long way. The type annotation syntax has been in the language spec for years
Re:Fearless Concurrency: Clojure, Rust, Pony, Erlang and Dart on Monday February 25, 2019 @10:18AM (#19246184)
Important part of STM is that the retry mechanism requires functions to be pure - which haskell compiler will check for you.
Re:A taste for fat may have made us human, says study on Saturday February 09, 2019 @07:16AM (#19121924)
I have understood that saturated fats are bigger culprit for type 2 diabetes than high carb intake. Also sugars are larger risk than carbs in general.
Re:Did Finland’s basic income experiment work? [video] on Sunday February 03, 2019 @05:46AM (#19068891)
The participants received other benefits too, the total was higher than 560 per month.
Re:Podman and Buildah available in RHEL 7.6 and RHEL 8 Beta on Saturday January 26, 2019 @06:37AM (#19005889)
Google has internal equivalent of docker which they use instead, and they are one of biggest contributors to kubernetes. Im sure there are more reasons though.
Re:Redbird: A modern reverse proxy for Node on Monday November 05, 2018 @01:48PM (#18384799)
Raw number crunching performance is similar with Node and Go. Python and ruby are in different league than them. https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
Are you sure about this? I would think using wine or any other emulator would show up as windows in the statistics.
Re:Show HN: WebRTC implementation for Python using Asyncio on Monday October 08, 2018 @10:11AM (#18167575)
Is ORTC used by something else than Skype?

Older »