recentpopularlog in

mcherm : programming   1827

« earlier  
Writing system software: code comments. - <antirez>
This is perhaps the definitive guide to classify different types of comments in code, and analyze why they are useful and whether they are.
programming  refs  via:NeilKakkar  bookClub 
1 hour ago by mcherm
Why const Doesn't Make C Code Faster — The Art of Machinery
Someone could cast away const, so the compiler can only optimize const variables in cases where it sees all uses and could have optimized anyway. As proof, sqlite runs equally fast with and without const.
programming  optimization  via:HackerNews 
6 days ago by mcherm
J can look like APL or English
A case is made that the concise difficult to read format of J (or APL) actually works better then English language keywords.
programming  languagedesign  via:HackerNews 
7 days ago by mcherm
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 
9 days ago by mcherm
The Order of the JSON – Dion Almaer
The mainframe guys said the keys to the JSON maps were in the wrong order and it would take vast development effort to address the problem. Actually, they just needed to stop requiring the order within the testing tool.
bug  via:HackerNews  programming 
9 days ago by mcherm
Latacora - The PGP Problem
Don't use PGP -- it was designed before the modern era in encryption and it's security sucks while it's usability is famously horrible.
cryptography  via:HackerNews  programming 
5 weeks ago by mcherm
New Approach Could Sink Floating Point Computation
There is ACTUALLY a credible alternative to IEEE 754 for floating point.
floatingpoint  programming  computerscience  via:HackerNews 
6 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 
7 weeks ago by mcherm
Adrian Sampson: FPGAs Have the Wrong Abstraction
FPGAs can be used for more than circuit emulation (just as GPUs can be used for more than graphics). But of the language for expressing such programs does not yet allow this kind of use.
hardware  programming  APIDesign  via:reddit 
9 weeks ago by mcherm
Elegant error handling with the JavaScript Either Monad
A really nice example of using a wrapper to handle exceptions (an "either monad" in the fancy language) within JavaScript.
programming  via:HackerNews  javascript 
9 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 
10 weeks ago by mcherm
How we optimized Magic Pocket for cold storage | Dropbox Tech Blog
Dropbox writes how they made their cold storage be backed up in multiple data centers while using less than 2x storage space. It is also faster (for some definitions of "faster").
via:HackerNews  dropbox  algorithms  programming 
may 2019 by mcherm
Unloop – Breaking the prison cycle
One charity that tries to provide tech training for former felons.
prison  programming  via:reddit 
may 2019 by mcherm
How many ways are there to sort GUIDs? How much time do you have? | The Old New Thing
There are several standards for sorting GUIDs, mostly differing because of endianness issues.
programming  via:HackerNews 
april 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
The Power of Lifetimes
Rust does cool things with reference borrowing. This can be seen as making use of information about the lifetime of objects. There are even more clever things one can do with object lifetimes - the article describes them and talks about some languages using them.
programming  garbagecollection  api  via:HackerNews 
april 2019 by mcherm
How the Boeing 737 Max Disaster Looks to a Software Developer - IEEE Spectrum
One writer's analysis of how institutional cost-saving pressures led to a pair of airplane crashes. Part of the problem was that they were incented to document it poorly.
flight  engineering  programming  bug  safety  via:reddit  documentation 
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
Chemistry illustrator
Give it any chemical name or formula and it will draw the molecular diagram for that molecule. The author wrote it in Python.
science  chemistry  programming  via:reddit  useful 
april 2019 by mcherm
21 Compilers and 3 Orders of Magnitude [PDF]
Does a great job of covering the history and scope of compilers. Also great callouts to leading early (female) computer pioneers.
programming  history  compiler  womenintech  via:HackerNews 
april 2019 by mcherm
Elegance / fuzzy notepad
Some meandering thoughts on code elegance with examples from amateur game programming.
programming  via:reddit 
april 2019 by mcherm
Accidentally Quadratic — Rust hash iteration+reinsertion
The hashtable in Rust could exhibit quadratic behavior (and understanding why is tricky).
datastructures  bug  programming 
april 2019 by mcherm
Photos from Crude Sketches: NVIDIA's GauGAN Explained Visually -
The full implementation details on how photo realistic pictures can be built from sketches. Notice how layers of neural nets with particular architectures are used.
machinelearning  ai  programming 
april 2019 by mcherm
The Programming Language Conundrum
Lisp or smalltalk have a reputation for being super-productive. But it appears that this only works for extremely small development teams.
programming  languagedesign  via:HackerNews 
march 2019 by mcherm
TypeScript Handbook
I can't seem to link to the whole handbook, so here's one page from the typescript handbook.
typescript  refs  programming 
march 2019 by mcherm
You probably don’t need input type=“number”
In some browsers "input type='number'" mix and accidental touch to the mouse scroll wheel change the number you are entering. There is a better way to get the numeric keypad for entry on mobile devices.
webdevelopment  webdesign  via:HackerNews  programming 
march 2019 by mcherm
Dynamic programming - How the Name was Chosen
The topic itself of dynamic programming is somewhat interesting but the fascinating thing here is the quote from the inventors biography that explains how he chose the name. Really, it had nothing to do with the subject matter and was just to impress his superiors.
programming  naming  names  via:HackerNews 
march 2019 by mcherm
The One On Dynamic Programming! | Blogarithms
Some good dynamic programming algorithms explained. The term seems to mean building a cash of previously calculated values when working with a recursive function.
programming  algorithms  via:HackerNews 
march 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
Six programming paradigms that will change how you think about coding
A collection of oddball language features found in specialty programming languages that will expand your mind: every-line concurrency, powerful types, concatenative languages (no variables), prolog, etc.
programming  programminglanguages  languages  via:HackerNews 
march 2019 by mcherm
FIDO2 Project - FIDO Alliance
An overall approach to web authentication. WehAuthn (part of it) was just approved as a W3C standard. I should read up on this and learn it.
security  programming  authentication  web  internet  standards  via:HackerNews 
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
research!rsc: An Encoded Tree Traversal
A tree traversal mechanism four trees with branching factor greater than 2 which behaves sort of like inorder traversal on binary trees.
programming  datastructures  algorithms  via:HackerNews 
february 2019 by mcherm
Is Shared Database in Microservices actually anti-pattern?
Microservices ought to be allowed to share a database because they'll be dependent on each other ANYWAY and it is a whole lot more efficient.
architecture  programming  microservices  via:HackerNews 
february 2019 by mcherm
Jsonnet - The Data Templating Language
A programming language specifically designed for building JSON templates.
languages  languagedesign  programming  template 
february 2019 by mcherm
IBM Knowledge Center - How FEPI fits into your system
An API for green-screen scraping (at least that's what I'd call it) by IBM.
programming  api 
january 2019 by mcherm
How to navigate the maze of JavaScript code – ITNEXT
A description of a tool, "CodeCrumbs" for dynamically exploring a JavaScript codebase.
webdevelopment  webdev  CodeCrumb  via:reddit  programming 
january 2019 by mcherm
Introduction to A*
A very detailed description of the A* pathfinding algorithm complete with animated illustrations.
programming  gameprogramming  gamedev  algorithm  datavisualization 
december 2018 by mcherm
Race-Safe Strategies
A review of ways to protect an object shared between threads. Despite the author's claim, I am dubious about this being exhaustive.
programming  concurrentprogramming  parallelprogramming  via:reddit 
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
New for AWS Lambda – Use Any Programming Language and Share Common Components | AWS News Blog
AWS Lamba now has a way to store libraries in a common place which are then packaged with your individual land of functions when they are deployed (with a limit of 5 libraries used in each lambda). Also has support for adding new languages for coding lambdas.
aws  serverless  programming  amazon  via:HackerNews 
december 2018 by mcherm
The Incredible Power of Dijkstra Maps - RogueBasin
For a roguelike, this is a way to give numerous mobiles varying and even conflicting goals while keeping to a reasonable amount of computation.
gameprogramming  datastructures  algorithms  programming  via:reddit 
december 2018 by mcherm
A site with information on how to build a roguelike game.
programming  via:reddit  gameprogramming 
december 2018 by mcherm
Not everything is an expression
Incredibly well written essay on a weakness in Lisp's macro system. Includes features like letting the reader switch languages.
programming  languages  languagedesign  lisp  macros  via:reddit 
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
How to Make a Roguelike
An incredibly huge and detailed article on building "roguelike" computer games.
gameprogramming  programming  gamedesign 
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
Falsehoods People Believe Collection
A list of links two documents listing falsehoods people believe (about addresses, names, phone numbers, etc.).
programming  via:boingboing 
december 2018 by mcherm
Why is 'ß'.toUpperCase()' equal to 'SS'? - javascript
.toUpperCase() may not preserve length. And .toLowerCase() may not reverse it.
unicode  programming  via:reddit 
december 2018 by mcherm
Microsoft Word - DriversLicenseCodeML.doc - ILDrivLicCode.pdf
Illinois driver's license numbers are derived from your name and birthdate, rather than being assigned randomly or sequentially. What an excellent illustration of ways of designing IDs.
via:reddit  database  programming  TalkIdeas 
december 2018 by mcherm
Buckblog: Maze Generation: Algorithm Recap
Various algorithms for developing a maze, described and illustrated with animations. An excellent demonstration of algorithms.
programming  gameprogramming  algorithms 
november 2018 by mcherm
Zip Tree Data Structure
A binary tree which is balanced by giving nodes a randomly assigned priority where half have priority 0, 1/4 have priority 1, 1/8 have 2 and so forth. Like skip lists turned into a tree.
datastructures  programming  via:HackerNews 
october 2018 by mcherm
Constructor, operator "new"
This is a good explanation of how "new" works in Javascript.
javascript  programming 
october 2018 by mcherm
What's a CPU to do when it has nothing to do? []
Many CPUs (including Intel) have multiple "idle states" they can enter (but there is a cost to enter the state). They made Linux smarter about which to use and when to enter which reduced idle power consumption by 20%.
via:HackerNews  hardware  linux  programming 
october 2018 by mcherm
Build impossible programs - Julia Evans
Cool effort - she wasn't an expert, but she got a grant to fund a 3-month effort and built a profiler for Rust.
personal_net  programming  opensource  via:HackerNews 
september 2018 by mcherm
How Tutanota replaced Google’s FCM with their own notification system | Hacker News
Explains how they built push notifications for Android without relying on Google.
opensource  mobile  android  programming 
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
Service Workers | the frontendian
I don't know why I didn't learn about them earlier, but this is the first time I have actually read something that describes the capabilities of service workers.
webdevelopment  javascript  via:HackerNews  programming 
august 2018 by mcherm
JavaScript: keep digging
Cartoon making fun of JavaScript's ever-deeper mess.
javascript  programming  languagedesign  funny  cartoon 
august 2018 by mcherm
The Desperate Quest for Genomic Compression Algorithms - IEEE Spectrum
Genetic data has enormous possibilities for compression. It's far more complex than just a sequence of ACGT.
programming  via:HackerNews  biology 
august 2018 by mcherm
What Did Ada Lovelace's Program Actually Do?
A close look at the first program ever (by Ada Lovelace) including a bug (which might have been hers or the typesetter's). It calculated Bernoulli numbers.
history  AdaLovelace  programming  bug  via:HackerNews  math 
august 2018 by mcherm
Myths about /dev/urandom [2uo]
A long and detailed piece about why you shouldn't block waiting for "more entropy" for your random number generator.
cryptography  security  programming  via:HackerNews 
august 2018 by mcherm
The Hacks of Life: When Not To Serialize
Write custom code to serialize your data structures to disk. If it is automatically transferring the in-memory structures to disk then you will need a translator when V2 comes along and the on-disk and in-memory structures diverge.
design  architecture  programming 
august 2018 by mcherm
« earlier      
per page:    204080120160

Copy this bookmark:

to read