HNHacker News
TopNewBestAskShowJobs

TheNewAndy

497 karma · joined August 3, 2010

submissionscomments
TheNewAndy··on Explainer: .DS_Store Files
How do these work with multiple users? If two users are looking at the same directory, then do they fight?
TheNewAndy··on Seemingly impossible functional programs (2007)
> The cantor space is uncountable (which can be seen by prepending '0.' before every binary sequence which gives the real number interval [0,1).)

You can do the same trick with natural numbers to "prove" that they are uncountable too - just drop the duplicates. 0.0, 0.1, 0.2, 0.3, ... 0.9, 0.11, 0.12, 0.13...

Unfortunately, neither of these sequences contain the real 1/3, so they have gaps.

TheNewAndy··on Fixed Point Arithmetic
Handrolled. It looks like this: https://ideationapps.com/2020/12/09/making-two-birds-fixed-p...
TheNewAndy··on Fixed Point Arithmetic
Don't use stdfix.h if you are doing this though. As soon as you need to change your headroom (even temporarily within an algorithm), it will be a pain. Just use the boring C90 types (possibly typedeffed to something else) and write the operators you need.
TheNewAndy··on Fixed Point Arithmetic
I did need a sqrt, but I cared more about predictability than accuracy, so I just did an iterative algorithm (actually two - one for the integer part, and then a second one to get better precision)
TheNewAndy··on Fixed Point Arithmetic
I used fixed point for my game's physics, because I wanted things to be deterministic across platforms and compilers (the game has a hidden "solver" which is used to tweak things a little bit to make the game more fun, but this involves rerunning simulations multiple times).
TheNewAndy··on A cross-platform GUI for YouTube-dl
I assumed that most of the web based ones were using youtube-dl behind the scenes.
TheNewAndy··on Apple agrees to settle potential class action suit by U.S. developers
Makes sense, thanks.
TheNewAndy··on Apple agrees to settle potential class action suit by U.S. developers
There is some evidence of this - if you can log in to app store connect (need a developer account) there is this page:

https://appstoreconnect.apple.com/apps/pricingmatrix/1539646...

It shows the tiers from 0 (free) to 87 (USD 999).

Then come the party tiers: 510, 530, 550, 560, 570, 580, 590 which are just repeats of the other tiers, probably for some good historical reason which I'm not aware of.

TheNewAndy··on Mario Paint Masterpiece
I remember as a kid looking at screenshots and thinking it was basically Mario Maker. When a friend got it, I can remember the bitter disappointment from both of us that it was not indeed Mario Maker.

We did then have lots of fun in the composition thing...

TheNewAndy··on Microsoft pauses free Windows 365 cloud PC trials after ‘significant demand’
You still need another device to connect to it right? The hardware reliability can only go down by adding more hardware to the system. Same goes for power, and to some extent network.
TheNewAndy··on Josh: Get the advantages of a monorepo with multirepo setups
Isn't git designed around the linux kernel repository, which is a monorepo?

I get the impression that things like LFS, submodule and subtree are hacks added onto git to try to make it behave like something it isn't.

TheNewAndy··on Blender and the Rabbids
I have 2.93 and it is native Apple Silicon. Your wish is granted.
TheNewAndy··on Ripgrep 13.0
I like this page for a comparison of ripgrep and similar tools:

https://beyondgrep.com/feature-comparison/

TheNewAndy··on Why many developers still prefer Objective-C to Swift (2017)
I used plain C for my first iOS game, and I'm working on my second, and using C again. The ease of cross-platform development in C (using SDL2) makes it much nicer in my opinion (possibly just because I'm very much not an xcode fan, and prefer developing on linux, then doing a port to iOS.
TheNewAndy··on M1 iPad Pro Apps limited to .5 GB RAM
I think headline should be 5 GB based on what is in the article.
TheNewAndy··on Visual Studio 2022
When I tried last time (sorry, I don't have visual studio in front of me), I would get things like:

- Pressing enter results in just adding a newline, without copying the whitespace from the previous line OR - Pressing enter results in addine a newline, copying the whitespace, but replacing spaces with tabs on the new line

I guess if someone could once show how to make it so adding a newline to:

    <tab><space><space><space><space>foo
(when configured with 4 space tabs) I get:

    <tab><space><space><space><space>foo
    <tab><space><space><space><space>
Instead of:

    <tab><space><space><space><space>foo
    <tab><tab>
TheNewAndy··on Visual Studio 2022
I think they understood. I'm happy with this as an example of a mix (and now prepared for the formatting to be eaten), which I believe would be seen as obscene by the commenter:

    {
    <tab>foo(arg1
    <tab>   ,arg2
    <tab>   );
    }
Though I think this example is less likely to be controversial:

    {
    <tab>bar();     /* Some comment
    <tab>            * across two lines */
    }
But it is all fine, because I don't really feel like I need to defend my preferences - that is the nice thing about them.
TheNewAndy··on Visual Studio 2022
Obviously the defaults are going to be more popular than my non-default preference, and I would even agree that if there was no default, and people were forced to choose, they mostly wouldn't choose what I want.

However, if you can tell me how to get visual studio to do this, then I would be incredibly grateful.

In my opinion mixing spaces and tabs is completely fine because they are for different things. Tabs for indentation, and spaces for alignment.

Why no auto indent? Because the editor doesn't have enough information to do it correctly (e.g. perhaps you are about to paste some code which is already indented as you want it). I am not saying you should have the same preferences as me, but I am pretty happy with this behaviour, and perfectly ok with pressing tab after enter (or even pressing space 4 times - again, this is just my personal preference and I know that there was a time in my life when I would have looked at this with disgust).

So - how do I configure VS to do what I want?

TheNewAndy··on Visual Studio 2022
Every time I try to use Visual Studio as just a text editor I find its behaviour of spaces/tabs a complete disaster. I know that heaps of people use it and love it, so I can tell that it must be me that is the weirdo, but is it too much to ask for:

1) Pressing tab inserts a tab 2) Pressing space inserts a space 3) Pressing enter inserts a newline, with the new line starting with the same whitespace as the previous line 4) Pressing shift-tab removes the leading tab from the start of the current line, or N(=4) spaces from the start of the current line

No surprises, no auto-formatting, no having to go and reconfigure your text editor behaviour when you find random files with different conventions, no modelines etc. I see the huge depth of preferences in VS, and think it must be possible, but every time I come away less confident.

TheNewAndy··on Type-safe generic data structures in C
Calling C++ or Rust code from languages other than C++ or Rust respectively involved much more accidental complexity compared to calling them from C.

Even calling C++ code from compilers other than the one you were using (e.g. you are using a 3rd party precompiled library) is a risky proposition.

TheNewAndy··on Type-safe generic data structures in C
You don't use include guards with this pattern. See https://en.wikipedia.org/wiki/X_Macro for more.
TheNewAndy··on Peter Naur's view of programming
Which doesn't really explain why when most of the source code to Windows XP leaked, it barely moved the needle on anything.
TheNewAndy··on Ask HN: What is your “I don't care if this succeeds” project?
I don't have an iPhone and my wife's phone is an SE, which apparently isn't high resolution enough for Apple to accept the video from. The video on youtube was recorded that way.

It is available in all the countries that Apple says they will handle the tax for. Any country where I need to worry about tax is unfortunately missing.

TheNewAndy··on Ask HN: What is your “I don't care if this succeeds” project?
Most of the development time was offline (on a train), so this basically ruled out anything to do with networking.

There are probably heaps of ways to monetize it (from what I can tell, the "buy a game upfront" model is mostly dead and everything is now free to play. But the reason I'm mentioning it here is because "I don't care if this succeeds".

It was written in C (using SDL2 as the library for getting things on screen). I did have a version in swift, but being able to do most of the development in linux made made things much better for my workflows.

TheNewAndy··on Ask HN: What is your “I don't care if this succeeds” project?
Nice - I got a score of 23, which I think qualifies as "not very good, but at least I gave it a shot".

Thanks for the download.

TheNewAndy··on Ask HN: What is your “I don't care if this succeeds” project?
Thanks for the kind words.

Your highest score should be displayed in small black text under your current score. 1700 is a very impressive score.

TheNewAndy··on Ask HN: What is your “I don't care if this succeeds” project?
I'm working on it. It is incredibly hard to get videos in the format that apple demands when you have limited hardware. I now have an M1 mac, and I was hoping it could do things in real time in the simulator so I could capture videos that way, but something about OpenGLES support or whatever that I don't understand means that simulators still run really slow.
TheNewAndy··on Ask HN: What is your “I don't care if this succeeds” project?
Neat. I think I just signed up. If your notifier works, then you will know this immediately.
TheNewAndy··on Ask HN: What is your “I don't care if this succeeds” project?
I made this iOS game:

https://apps.apple.com/us/app/two-birds-one-stone/id15396463...

I have wanted to be able to play this game for a long time, and probably thanks to pandemic, I did the work to enable it to be shared with others. It has made a grand total of 3 sales this year, and that isn't really bothering me (the main frustration is the apple developer fee...)

There is various info (including a trailer of sorts) here:

https://ideationapps.com/

← PreviousPage 3 of 7Next →