HNHacker News
TopNewBestAskShowJobs

wmwragg

495 karma · joined October 6, 2013

submissionscomments
wmwragg··on Mozilla becoming active in online advertising
It used to be completely normal, and profitable, to effectively advertise without personal information. The idea that this is now required for advertising is just wrong, and shouldn't be accepted as such
wmwragg··on Computer scientists invent an efficient new way to count
I think the classic is "Lateral Thinking: A Textbook of Creativity"
wmwragg··on Computer scientists invent an efficient new way to count
I think it's generally thought of as "lateral thinking", Edward de Bono has written a few books about it you might find interesting.
wmwragg··on Cylindrical Slide Rules
I believe Concise[1] in Japan still make circular slide rules. I bought a No. 300 and No. 270N from them a few years ago.

[1] https://www.sliderule.tokyo/products/list.php

wmwragg··on When Work Didn’t Follow You Home
Yep point 1 I think is the most important, but if you don't have the luxury of an office at home, having a start of work process, and an end of work process is really important e.g. at end of day, close laptop, put away in a drawer, and tidy up work paraphernalia, then sit down and have a cup of tea while reading a book. It mentally bookmarks the start and end of work, and allows your mind to reset from work mode.
wmwragg··on The Awk Programming Language, Second Edition
I usually use this awk function to parse CSV in awk:

    # This function takes a line i.e. $0, and treats it as a line of CSV, breakin
    # it into individual fields, and storing them in the passed in field array. It
    # returns the number of fields found, 0 if none found. It takes account of CSV
    # quoting, and also commas within CSV quoted fields, but doesn't remove them
    # from the parsed field.
    # use in code like:
    #   number_of_fields = parse_csv_line($0, csv_fields)
    #   csv_fields[2]  # get second parsed field in $0
    function parse_csv_line(line, field,   _field_count) {
      _field_count = 0
      # Treat each line as a CSV line and break it up into individual fields
      while (match(line, /(\"([^\"]|\"\")+\")|([^,\"\n]+)/)) {
        field[++_field_count] = substr(line, RSTART, RLENGTH)
        line = substr(line, RSTART+RLENGTH+1, length(line))
      }
      return _field_count
    }
It's not perfect but gets the job done most of the time and works across all awk implementations.
wmwragg··on “Considered Harmful” Essays Considered Harmful (2002)
I tend to like the phrase "Strong opinions, weakly held" to describe that sort of "best programmers". Through experience they have come to hold certain ideas, and will express them strongly, but are willing to describe why, and also accept that they aren't universal, mostly rules of thumb i.e. they aren't dogmatic.
wmwragg··on My4TH – A minimalistic FORTH computer with discrete CPU
Ignoring the memory, probably a similar number to the MyNOR[1] computer it's based off of, which has an all transistor implementation, the TraNOR[2], which has 2495 transistors.

[1] http://mynor.org/mynor.htm

[2] http://mynor.org/tranor.htm

wmwragg··on Ask HN: More magazines like Quanta and Noema?
I really enjoy the Resurgence & Ecologist[1]. I also like the IEEE Spectrum[2]

[1] https://www.resurgence.org/

[2] https://spectrum.ieee.org/

wmwragg··on I gained a new appreciation for Test Driven Development
I tend to view TDD as a form of coding using a REPL, like in Lisp, where you can easily test chunks of your code as you go along. The main difference is that you leave behind your tests so they can be used in the future.
wmwragg··on Emacs on an iPad
I believe the iSH app[1] can run Emacs without jailbreaking the iPad. I use it a lot, but not for Emacs.

[1] https://github.com/ish-app/ish

wmwragg··on Stable Diffusion 2.0
Well that would be ~4000 people each with an Nvidia A100 equivalent, or more with less, this would be an open effort after all. Something similar to folding@home could be used. Obviously the software for that would need to be written, but I don't think the idea is unlikely. The power of the commons shouldn't be underestimated.
wmwragg··on Ask HN: Best book to learn C in 2022?
Despite what many think, I'd say the "The C Programming Language (2nd Edition - ANSI C)" by Brian Kernighan & Dennis Ritchie (K&R) book is still a good introduction to C. It doesn't go into best practices, or other forms of more advanced C programming, but it teaches C well. I'd pair it with "Understanding and Using C Pointers: Core Techniques for Memory Management" by Richard M Reese to get a good understanding of the pointer underpinnings of C. They are both small, well written and easily digestible.
wmwragg··on Where's the fun in accessibility?
An article[1] from the edbrowse submission a few days ago[2] goes into a lot of detail about this.

[1] http://www.eklhad.net/philosophy.html

[2] https://news.ycombinator.com/item?id=32148474

wmwragg··on Lectures on Faster-Than-Light Travel and Time Travel
Sorry, yeah I was also oversimplifying, what I meant was that General Relativity treats time as a real thing, which is effected by some other real thing, which doesn't track with time being just a human concept
wmwragg··on Lectures on Faster-Than-Light Travel and Time Travel
Whenever I think along these lines, I can never reconcile it with relativity, and the fact that gravity effects time. If it's just a human construct, how can it be effected by gravity?
wmwragg··on Why a Slide Rule Works
Concise in Japan[1] still make circular slide rules (the 300, 270N, 28N 27N). I bought a couple from them a few years ago. Good quality, and work well.

[1] https://www.sliderule.tokyo/products/list.php

wmwragg··on The iPad's new cursor and keyboard
Yeah, you have to long press on the back button and then select the previous site from the history dropdown. I hate sites like this, and actively avoid them
wmwragg··on Effective C: An Introduction to Professional C Programming
I've recommended this on here before, but I’ve found "Understanding and Using C Pointers" by Richard Reese, a really wonderful modern book on C.
wmwragg··on A principled approach to system design and programming
Not sure if it is what was used, but there is a Bill Atkinson dither for HTML canvas here https://ipenburg.home.xs4all.nl/atkinsome/ and a mac version here https://www.tinrocket.com/content/hyperdither/#history
wmwragg··on To become a good C programmer (2011)
I've found "Understanding and Using C Pointers" by Richard Reese, a really wonderful book.
wmwragg··on Brain Cells That Make Pain Unpleasant Identified
In the UK you can get CBT as part of pain management clinics on the NHS. I found the clinic I attended very benificial.
wmwragg··on Evolutionary algorithm outperforms deep-learning machines at video games
There have indeed, see https://en.m.wikipedia.org/wiki/Neuroevolution
wmwragg··on Britain's Forgotten Bike Highways
Sustrans (https://www.sustrans.org.uk) has built, and is continuing to expand, a wonderful cycle network across the UK.
wmwragg··on What else are we getting wrong about programming languages?
I think one of the main things we get wrong is that pretty much any language can be used successfully to write a small to medium sized program, it's when a large program is written that things can start to fall apart. Some language features aid large program developement e.g type systems, but can get in the way, or even seem pointless, when writing small programs
wmwragg··on Show HN: Monodraw, an ASCII Art Editor for Mac
I understand the reasoning, but I was going to purchase it, then saw the price, £39.99. I'd probably have bought it at £20, but for an app I'm not going to use very often £40 is too much for me.
← PreviousPage 2 of 2