News for hackers. Stuff that matters.

wjbr

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.

Re:Pretty.c on Thursday October 24, 2024 @02:12AM (#41932439)
static int pretty_float_equal (float a, float b) { return fabsf(a - b) < FLT_EPSILON; }
Re:Changing my relationship with GitHub Copilot on Tuesday August 29, 2023 @02:23AM (#37304095)
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.

Re:Lisp in Space on Sunday August 06, 2023 @05:37PM (#37027080)
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({...})
Re:Forth: A New Way to Program a Mini Computer (1974) on Saturday October 15, 2022 @05:45PM (#33218945)
How would it work with more than two arguments?

  (+ 1 2 3)
Re:Lisp.py on Wednesday July 20, 2022 @12:14PM (#32167926)
How would you do it?
Re:Microsoft 3D Movie Maker Source Code on Wednesday May 04, 2022 @03:11AM (#31257627)
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.

Re:Puny GUI – A tiny cross platform GUI Kit in Janet on Saturday April 25, 2020 @09:00AM (#22977748)
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.

Re:NeXT: Steve Jobs’ Dot.com IPO That Never Happened on Thursday February 09, 2017 @02:45AM (#13605355)
'The Machine to build the Machines' https://www.youtube.com/watch?v=sT6aphdX0rI
Shift-tab works with SuperTab in the console.
Re:Hacker Workspaces on Friday June 15, 2012 @04:56PM (#4118674)
Re:Open sourcing all my private projects on Tuesday April 24, 2012 @05:29AM (#3883112)
I read the original as an indirect question.

Will anyone be able to pronounce this?

Re:Know Your Gmail Stats using Gmail Meter on Thursday April 19, 2012 @06:20PM (#3865456)
I'm using NoScript, all I got was a white page.
Re:A Lisp based programming language I'm creating on Monday April 16, 2012 @05:22PM (#3849517)
If you add significant white space while keeping the prefix notation, it kinda looks like python.

https://gist.github.com/2401588

Re:Take Over The Galaxy with GitHub (DCPU16 support) on Tuesday April 10, 2012 @03:47PM (#3824029)
Did they ever get released to the public?
Re:Codename: Svbtle by Dustin Curtis on Friday March 23, 2012 @05:04AM (#3744240)
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.

Re:Python Koans: Learn Python by making tests pass on Tuesday November 29, 2011 @12:00PM (#3291067)
I've got colours on WinXP with cmd.exe.