HNHacker News
TopNewBestAskShowJobs

gosub

1,013 karma · joined August 15, 2009

submissionscomments
gosub··on Apricity OS: A Beautiful Arch Linux Distro
packages are namespaced in a directory for each package/version, like this:

    /nix/store/b6gvzjyb2pg0kjfwrjmg1vfhh54ad73z-firefox-33.1/
if a package is "installed" in an environment (it could be global, user local or temporary), its files are sym-linked in the "original" position (e.g. /usr/bin/firefox etc etc)
gosub··on ICIJ OFFSHORE LEAKS DATABASE (2014)
Accounting companies would pay exhorbitant taxes so, to be viable, their clients would have to pay for it.
gosub··on Algorithms as Microservices

    Algorithms are public knowledge, commodities to be written and rewritten at will by common, workaday developers.
I don't think the article is talking about sorting a linked list. Clever and non-trivial algorithms are being researched and discovered everyday both in academia and the industry (take ML as an example). Programs = Algorithms + Data (Structures). You can have a competitive advantage on either or both.
gosub··on NPM and Left-Pad: Have We Forgotten How to Program?
I would retort with: Packages are too big to make into a functional dependency. In the end, in this functions-as-dependencies world, a trig package would be something like:

    (name) => 
        switch (name) {
            case 'sin': 
               (x) => sin(x);
               break;
            case 'cos':
               (x) => cos(x);
               break;
        }
gosub··on Ask HN: Do we have a package manager problem?
To me 'the git of *' is something:

    - based on good theoretical foundations
    - sufficiently performant
    - not perfect, but good enough for most use cases
    - accepted as a de-facto standard, but that is a consequence of the above
gosub··on The Lost Tombs of Oman
also sardinian nuraghe: https://en.wikipedia.org/wiki/Nuraghe
gosub··on [dead]
The number of package managers is exploding. Every distribution, every programming language, many virtualization/sandboxing solutions, text editors, programs with plugins... Do they really all have significant different needs? Someone has to come up with the 'git' of package managers, and end this madness.
gosub··on Show HN: I've been writing daily TILs for a year
google does not create content from thin air, someone has to write it down first. this is it. maybe it will become google's first result?
gosub··on Aerodynamic by Daft-Punk in 100 lines of code with Sonic Pi
SuperCollider has a series of classes called Patterns for sequencing and algorithmic composition. The output can be sent to the embedded server for live synthesis or to a midi output (or directly to Ableton with a virtual midi cable) http://doc.sccode.org/Tutorials/A-Practical-Guide/PG_Cookboo...
gosub··on Aerodynamic by Daft-Punk in 100 lines of code with Sonic Pi
I am a SuperCollider fan, too. For me it's the sweet spot between a modern programming language and a deep and performant synthesis/sequencing platform. SonicPi is perfect if you wan to start making music immediately, but consider that underneath is just another language interface for the supercollider synth server, so at some point you will want to go full SC, that is dialect of Smalltalk with some functional ideas. CSound is the oldest/most powerful/most frustating of the bunch, but at the core is composed of two parts: a description of the sound generators/effects graph and a list of notes/events. If you enjoy coding in assembly, CSound will be fun. Chuck has a very nice sync model (SonicPi is similar), but the language is very imperative, not my favourite.
gosub··on SourceForge and Slashdot Have Been Sold
at least a github exodus is just a git clone away
gosub··on Oulipian Code
https://aur.archlinux.org/packages/gnu-apl/
gosub··on How to C in 2016

    Good developer is able to write high quality code in C...

the sufficently smart developer is as much elusive as the sufficently smart compiler
gosub··on Openage – Free Age of Empires 2 engine clone
one of the last tweets from @_why said: if you program and want any longevity to your work, make a game. all else recycles, but people rewrite architectures to keep games alive.
gosub··on Ask HN: Sorting Tool for music
the problem is more similar to the knapsack problem https://en.wikipedia.org/wiki/Knapsack_problem There are some articles if you look for "create playlist of specific length" that suggest to use the "smart playlist" function of iTunes.
gosub··on Programming in BASIC on the TRS-80
processing may be a nice alternative. very small boilerplate to have a graphical/interactive program running, and a cute ide to keep your sketches. https://processing.org/
gosub··on The mystery of India’s deadly exam scam
https://en.wikipedia.org/wiki/Max_Weber#The_Protestant_Ethic...
gosub··on The Secret Surveillance Catalogue

    > Cyber Hawk exploits over 79 cell phones
i would say: unpublished exploits and backdoors
gosub··on Numbermatics – the number explorer
"All primes are odd, and 2 is the oddest of them all." - JWS Cassels
gosub··on It's a Trap: Emperor Palpatine's Poison Pill
https://en.wikipedia.org/wiki/The_Theory_of_Interstellar_Tra... should be in the bibliography
gosub··on Ask HN: Can I have heterogenous lists in a Lisp while preserving type inference?
could be something like this (with some sugar)?

    data Cons a b = Nil | ConsCell a b
    
    cons = ConsCell

    car Nil = error
    car (ConsCell a b) = a

    cdr Nil = error
    cdr (ConsCell a b) = b

    mylist = cons 'a' $ cons True $ cons "hello" Nil


    mylist :: Cons Char (Cons Bool (Cons [Char] (Cons a b)))
gosub··on The shortest paper ever published in a serious math journal explained

    $(".comment-form").remove()
gosub··on The Theory of patches-vector
Well, a patch is defined as Patch [Edit a], so I presume the sequence of the edit is implicit in the list position. The article says that an edit is the modification of an element of a Vector. I think the parameter a is the type of the elements of the Vector. In your example, a Patch File would be something to apply to a Vector File, and the Int in the edit should be the index of the file in the vector.
gosub··on The Theory of patches-vector
Would it not be sufficient to define Edit a minimally as:

    data Edit a = Insert  Int a
                | Delete  Int
given that a Delete only needs the place of deletion and a Replace is a Delete followed by an Insert?
gosub··on Cuphead will use 15,000 hand drawn frames of animation
Well, an important element of old style animation was the heavy reuse of frames and poses.
gosub··on Computer, Respond to This Email
There are three example responses at the bottom of each picture, above the navigation buttons.
gosub··on #ICANHAZPDF Access to Academic Papers on Twitter
Derivatives of Regular Expressions by Brzozowski, a paper from 1964, costs $15 from ACM digital library. I wonder how many of those $15 go to original author.
gosub··on Ask HN: How did people bake before thermometers?
No, it was a chemical plant.
gosub··on Ask HN: How did people bake before thermometers?
There's a story in Primo Levi - The periodic table where a raw onion is used in the recipe for a varnish and nobody knows why. Turns out that it was used in the past to measure temperature (it would fry at a certain temp) and people kept doing it even when it was no longer necessary.
gosub··on PICO-8
Lost an opportunity at setting the limit to 640k. 640K ought to be enough for anyone.
← PreviousPage 2 of 10Next →