recentpopularlog in

mcherm : python   281

« earlier  
A Beginner’s Introduction to Python Web Frameworks : Python
The current state of affairs with python web frameworks. Flask looks good for my purposes.
python  programming  webdevelopment  via:reddit 
5 weeks ago by mcherm
One Program Written in Python, Go, and Rust – Nicolas Hahn
He compares a real (but simple) program in Python, Go, and Rust. Rust has more bare-metal speed. Python is more readable and faster to code (also it uses a library, but he considers that typical and thus fair).
languagedesign  programming  programminglanguages  golang  rust  python  via:HackerNews 
11 weeks ago by mcherm
Comparing the Same Project in Rust, Haskell, C++, Python, Scala and OCaml - Tristan Hume
A *really* good case study: for a course, several competent teams wrote the same program is various languages. Afterward, the code size was compared. Slight advantage to Python and Scala, but mostly it depended on the design decisions, not the language.
programming  programminglanguages  rust  scala  python  haskell  C++  ocaml  via:HackerNews 
june 2019 by mcherm
Python Software Foundation News: Amber Brown: Batteries Included, But They're Leaking
A debate over the balance between including functionality in the standard library versus making it available in a language-standard library repository.
python  languagedesign  via:HackerNews 
may 2019 by mcherm
GitHub - cool-RR/PySnooper: Never use print for debugging again
A Python library for debugging - "when you can't be bothered to set up a proper debugger, this is better than print statements".
programming  python  debugging  via:HackerNews 
april 2019 by mcherm
CoCalc - Collaborative Calculation in the Cloud
This appears to be tool for sharing a programming project online. It has history and allows shared development. Supports lots of stuff from LaTeX to Python to R to Scala. Nicely set up for running a course online.
via:HackerNews  useful  math  python  programming 
april 2019 by mcherm
Python stdlib gems: collections.Counter
A simple example that shows some of the power of this standard library class.
programming  python  via:reddit 
march 2019 by mcherm
Ned Batchelder: Mutmut
Need Bachelder tries out a mutation test tool for evaluating his test suite. Finds it helpful but a lot of work each time it is run.
NedBatchelder  testing  unittest  programming  python 
march 2019 by mcherm
Python gets a new governance model []
Python put in place a new policy on government (this replaces the BDFL). From what I can tell it was well-considered and a wise choice.
python  voting  government  via:HackerNews 
december 2018 by mcherm
Python interview questions. Part III. Senior
I actually knew some portion of the senior level questions, which was cool.
programming  python  interviewing  hiring  via:HackerNews 
december 2018 by mcherm
Python Tutorials – Real Python
A site with programming tutorials (in Python) that seems to have a fair number of really well written articles, many of them on advanced topics.
programming  python  via:reddit 
december 2018 by mcherm
Asterisks in Python: what they are and how to use them - Trey Hunner
Useful summary of the syntax for interpolating values into a list, dict, argument list, etc.
programming  python  languagedesign 
december 2018 by mcherm
PyPy Status Blog: The First 15 Years of PyPy — a Personal Retrospective
The story (so far!) of the PyPy project, including both organizational issues and major design decisions.
opensource  python  pypy  history 
september 2018 by mcherm
Sampling profiler for Python programs
A non-invasive profiler for python. It even generates flamegraphs.
python  performance  profiling  programming  via:HackerNews 
september 2018 by mcherm
Python API Checklist
A checklist of things to consider in good library or API design.
via:HackerNews  programming  python 
december 2017 by mcherm
Instagram Makes a Smooth Move to Python 3 - The New Stack
This MAJOR user of Python moved from 2.X to 3.X with very little trouble.
python  programming  via:HackerNews 
june 2017 by mcherm
The Meaning of Underscores in Python –
Several different conventions (and special processing) of underscores in Python identifiers.
python  programming  via:reddit 
may 2017 by mcherm
The Many Layers of Packaging — Sedimental
A discussion of deploying, told from the point of view of PyPi.
programming  deployment  python  via:HackerNews 
may 2017 by mcherm
Grumpy: Go running Python! | Google Open Source Blog
Another implementation of Python (2.7) which compiles it to Go then runs that.
programming  via:HackerNews  python  golang 
may 2017 by mcherm
Python interpreter in Unity | Unity Community
The unity game engine CAN be used with Python, but not easily.
personal_net  python  gameprogramming 
april 2017 by mcherm
Kivy: Cross-platform Python Framework for NUI Development
A library that comes fairly well recommended for building GUI interfaces in Python. Works on BOTH mobile devices AND PCs.
python  programming  library 
march 2017 by mcherm
Sleeping beauty - How one of the oldest bugs in EVE got hunted down and resolved - EVE Community
Bug: new object was allocated in same memory as an old (deleted) object, causing confusion.
python  programming  bug  via:reddit 
february 2017 by mcherm
Scrapy | A Fast and Powerful Scraping and Web Crawling Framework
I hear this is a useful library for doing web scraping in Python.
python  programming  via:reddit 
february 2017 by mcherm
Some thoughts on asynchronous API design in a post-async/await world — njs blog
Comparison of some different libraries for doing asynchronous programming in the Python world. Makes the case that the curio library makes things far easier to get right by mandating that EVERYTHING use async/await instead of allowing callbacks.
programming  python  concurrency  concurrentprogramming  threading  asynchronous  via:HackerNews 
november 2016 by mcherm
Python 3.6 dict becomes compact and gets a private version; and keywords become ordered
A new implementation of dict in Python is smaller and almost preserves insertion order.
python  datastructures  programming  via:reddit 
september 2016 by mcherm
Selenium Tutorial: Web Scraping with Selenium and Python
A tutorial on how to do web scraping using Selenium - sounds really helpful for me!
python  selenium  programming 
august 2016 by mcherm
Contributing os.scandir() to Python
Python is a really well-run software project. Read this account of contributing to it.
python  programming  softwaredevelopment  via:HackerNews 
august 2016 by mcherm
The Python JITs are coming []
"a few months from now, we will go from zero "drop-in compatible JITs" for Python to three"
via:HackerNews  python  pypy  jit 
august 2016 by mcherm
Deciphering Glyph :: The One Python Library Everyone Needs
A library ("attrs") to let you easily declare simple data container classes in Python.
python  programming  via:HackerNews 
august 2016 by mcherm
Ned Batchelder: Breaking out of two loops
A really good example of redesigning code so that something (in this case breaking out of two loops) is made far more clear.
python  programming  NedBatchelder  via:NedBatchelder 
august 2016 by mcherm
PyPy Status Blog: Reverse debugging for Python
AMAZING!!! A reverse debugger (it can back up) for Python, built using the astounding PyPy by the amazing Armin Rigo.
ArminRigo  programming  python  pypy  debugging 
august 2016 by mcherm
Asciinema 1.3 Switches from Go Back to Python
Here's why they switched BACK to Python from Go. Mostly just that it's a higher level language and they didn't need threading.
python  golang  languagedesign  via:HackerNews 
july 2016 by mcherm
Practice Python
I found this site with some elementary problems for Genevieve to try.
python  teaching  useful 
june 2016 by mcherm
Quadratic behavior in string concatenation (or not)
It ran incredibly slowly on certain versions of Windows, but not elsewhere. The bug turned out to be in the algorithm.
bugs  python 
may 2016 by mcherm
How I built an entire game and toolchain 100% in Python using PyGame : Python
This person found making a game with Python and pygame was fairly easy.
programming  python  via:reddit 
may 2016 by mcherm
[Python-Dev] PEP 8 updated on whether to break before or after a binary update
Break BEFORE binary operators when laying out long lines. (Language independent!)
programming  syntax  python  via:python-list 
april 2016 by mcherm
Comparing Python enums to Java, was: How much sanity checking is required for function inputs?
Java enums are better than Python enums because they use the enum identity for comparison, not the values in fields in the enum.
languagedesign  python  java  programming 
april 2016 by mcherm
ssllab / ZipPy — Bitbucket
Some option for python 3 on the JVM. I don't know anything about it.
python  jvm  via:reddit 
january 2016 by mcherm
Storing Passwords in a Highly Parallelized World · Homepage of Hynek Schlawack
The correct algorithm to use for encrypting passwords (Argon2i, beats bcrypt, which itself beats SHA-1 which beats md5 which beats rot26). Also a Python library for using it.
cryptography  security  python  via:HackerNews 
january 2016 by mcherm
why I chose Python for scientific computing
It was quicker to develop so we round up using better algorithms and it has an easy pass to C when optimization is needed.
python  performance  via:HackerNews 
december 2015 by mcherm
Counting Things in Python: A History - Trey Hunner
A wonderful exploration of how the Python language has evolved, of what "pythonic" (or good, readable style) is, and of the variety of different styles all done by carefully considering a single simple (and common) problem.
python  via:HackerNews  programming  languagedesign 
november 2015 by mcherm
Shelling Out Sucks
Many languages let you launch a shell to run commands. This introduces security flaws (there are lots of characters that are special to shells), it hides errors (shells don't send them back) and it is inefficient (fork twice). Python does it better by letting you launch the app directly, and other languages should too.
security  programming  python  via:HackerNews 
may 2015 by mcherm
PyPy compiled to run in a browser. Astoundingly, it is one 1.5x the speed of CPython!!! Has full access to the DOM.
python  pypy  javascript  programming  via:HackerNews 
may 2015 by mcherm
Proving that Android’s, Java’s and Python’s sorting algorithm is broken (and showing how to fix it) | Envisage: Engineering Virtualized Services
They used their program prover to prove that Timsort was correct... and found that it wasn't! They can demonstrate the flaw and submitted a fix. The Java team didn't use their fix!
python  java  programming  bug  math  algorithm  opensource  via:HackerNews 
february 2015 by mcherm
PyPy Status Blog: Faster, more memory efficient and more ordered dictionaries on PyPy
PyPy switches to a different data structure for storing hashes. The new structure is more friendly about keeping memory changes local for cache and GC improvements. It also uses substantially less memory. And it happens to make the order for iterating through a dictionary be the order in which the keys were added rather than a random order.
pypy  python  datastructures  hash  via:reddit 
february 2015 by mcherm
Requests: HTTP for Humans — Requests 2.5.1 documentation
Apparently, this library is the current thing to use for easily accessing HTTP data from Python.
useful  programming  python  library 
january 2015 by mcherm
A Heaping Helping Of Python Goodness · Computing Thoughts
Several good python suggestions: making a .bat file, a .exe file, using with for your own purposes, etc.
python  programming  via:BruceEckel  BruceEckel 
december 2014 by mcherm
C++ Has Become More Pythonic
Some recent changes were pilfered from Python. Good to see good design taking hold.
languages  python  C++  via:reddit 
december 2014 by mcherm
How Hy backported "yield from" to Python 2 -- DustyCloud Brainstorms
In Hy (a lisp written on Python) they used a macro to fix a feature missing in older Python versions.
lisp  python  programming  languages  via:reddit 
november 2014 by mcherm
xlwings - Replace Excel VBA with Python!
A tool to allow scripting of Excel with Python. I haven't yet tried it.
python  excel  via:HackerNews 
september 2014 by mcherm
Exercise to detect Algorithmically Generated Domain Names.
An interesting exercise where they slap together an AI filter to distinguish human-made domain names from algorithm-made ones. We get to see the data analysis, the use of Python for plotting, and the creation of the AI filter.
python  mathematica  via:HackerNews  ai 
july 2014 by mcherm
Sage: Open Source Mathematics Software
An open source python-based version of Mathematica.
opensource  python  math  mathematica  via:HackerNews 
july 2014 by mcherm
PyPy.js: Now faster than CPython
JITs galore! This guy has PyPy running on Javascript in the browser. He can run pystone faster than cPython (!!) and he discusses the differences between the Javascript JIT for Firefox and that for Chrome and why Chrome's is (eventually) better.
python  pypy  javascript  firefox  chrome  jit  via:reddit  blogworthy 
may 2014 by mcherm
Dropbox Tech Blog » Blog Archive » Introducing Pyston: an upcoming, JIT-based Python implementation
Dropbox proposes to build a new Python implementation. It'll use LLVM as a back-end and will try different JIT techniques than PyPy uses. Personally, I think it's unlikely to be successful -- but I welcome the attempt.
python  dropbox  via:reddit  jit  programming 
april 2014 by mcherm
Python 3.4 single dispatch, a step into generic functions | Julien Danjou
The latest version of Python added support for single-dispatch generic functions. This article explains generic functions using CLOS and then uses that to explain the new Python functionality.
python  lisp  programming  languagedesign  programminglanguages  via:HackerNews  CLOS 
march 2014 by mcherm
Saying Goodbye To Python
Ian Bucking: after 10,000 he's I became a true master of Python and I contributed a lot, but I think the future is in web services and I'm moving to JavaScript.
javascript  python  IanBicking  via:reddit 
february 2014 by mcherm
JetBrains Delights the Python Community with a Free Edition of its Famous IDE, PyCharm 3.0 | JetBrains PyCharm Blog
JetBrains makes their Python IDE (PyCharm) available in a slightly-less-capable open source version (like they did with IntelliJ Idea).
python  ide  JetBrains  opensource  intellij  via:reddit 
september 2013 by mcherm
Why sorting an array makes a Python loop faster | foreign keys
An example of how odd things can make a program cache friendly.
programming  performance  python 
september 2013 by mcherm
Deconstructing Deferred - Google Groups
Guido analyses the design of the "deferred" object from twisted.
python  GuidoVanRossum  concurrency  via:reddit 
august 2013 by mcherm
Creative usernames and Spotify account hijacking | Spotify Labs
In this bug, a function like ".lower()" for Unicode turns out not to be idempotent and thus allows account takeover.
security  bug  unicode  python  via:reddit 
june 2013 by mcherm
Filter a list into two parts: Ned Batchelder
An excellent overview of different (improving) solutions to a straightforward programming problem (in Python).
programming  python  via:NedBatchelder  NedBatchelder 
june 2013 by mcherm
PEP 435 -- Adding an Enum type to the Python standard library
They FINALLY figured out how to add enums to python, and the design is (as you would expect) pretty good.
languagedesign  python  programming  via:reddit 
may 2013 by mcherm
Diablo III Economy Broken by an Integer Overflow Bug | Hacker News
I mention Python as a good example of how you can switch from machine-sized-integers to tagged-ints-overflow-to-unbounded-integer without it bothering anyone.
mypostings  via:HackerNews  programming  python 
may 2013 by mcherm
Adria Richards, PyCon, and How We All Lost | Amanda Blum
An EXCELLENT review of the affair at PyCon where a blogger accused men of making a sexual joke resulting in the firing of one of the men and eventually the firing of the blogger as well. Claims she has shown a pattern of doing this.
feminism  sexism  python  via:HackerNews 
march 2013 by mcherm
Python wins trademark dispute, rival stops calling itself “Python” | Ars Technica
The company that wanted to trademark "Python" has capitulated, and the PSF is now applying for an European trademark. Note that they successfully defended their mark on the basis of use, even though it was not registered.
law  ip-law  trademark  python  via:ArsTechnica  ArsTechnica 
march 2013 by mcherm
« earlier      
per page:    204080120160

Copy this bookmark:

to read