Better HN
topnewbestaskshowjobs
Log inSign up

wjbr

18 karma · joined Mar 21, 2011 (15y ago) · 19 submissions

William Bettridge-Radford

www.williambr.co.uk

Submissions

comment 10mo ago · link · parent

I've been reminded of this while playing Metroid Prime 4.

I wonder what kinds of modern games we could make with these same ideas.

comment 2y ago · link · parent

static int pretty_float_equal (float a, float b) { return fabsf(a - b) < FLT_EPSILON; }

comment 3y ago · link · parent

I've been enjoying `cody` for exploring old open source code bases.

https://docs.sourcegraph.com/cody/overview

I've not used the copilot like features, but asking questions has been very useful.

comment 3y ago · link · parent

If the lisp has read macros you can add it yourself.

There's: sweet-expression

https://srfi.schemers.org/srfi-110/srfi-110.html

https://sourceforge.net/p/readable/wiki/Examples/

    define fibfast(n)  ; Typical function notation
      if {n < 2}       ; Indentation, infix {...}
        n              ; Single expr = no new list
        fibup(n 2 1 0) ; Simple function calls

    define fibup(maxnum count n-1 n-2)
      if {maxnum = count}
        {n-1 + n-2}
        fibup maxnum {count + 1} {n-1 + n-2} n-1

    define factorial(n)
      if {n <= 1}
        1
        {n * factorial{n - 1}} ; f{...} => f({...})

comment 4y ago · link · parent

How would it work with more than two arguments?

  (+ 1 2 3)

comment 4y ago · link · parent

How would you do it?

comment 4y ago · link · parent

I think Foone has been asking about this for 15+ years at this point.

I'd love to see classic Notepad and MS Paint too.

comment 6y ago · link · parent

https://developer.android.com/ndk

Android NDK

The Android NDK is a toolset that lets you implement parts of your app in native code, using languages such as C and C++. For certain types of apps, this can help you reuse code libraries written in those languages.

comment 9y ago · link · parent

'The Machine to build the Machines' https://www.youtube.com/watch?v=sT6aphdX0rI

comment 13y ago · link · parent

Shift-tab works with SuperTab in the console.

comment 14y ago · link · parent

RPS had a nice write up in Feb.

http://www.rockpapershotgun.com/2012/02/22/hard-choices-the-...

comment 14y ago · link · parent

http://hackety.com/

comment 14y ago · link · parent

I read the original as an indirect question.

Will anyone be able to pronounce this?

comment 14y ago · link · parent

I'm using NoScript, all I got was a white page.

comment 14y ago · link · parent

If you add significant white space while keeping the prefix notation, it kinda looks like python.

https://gist.github.com/2401588

comment 14y ago · link · parent

Did they ever get released to the public?

comment 14y ago · link · parent

The attack and sustain stages aren't long enough.

If they were longer like the breathing sleep LED on apple laptops it would be less noticeable.

comment 14y ago · link · parent

I've got colours on WinXP with cmd.exe.