News for hackers. Stuff that matters.

neillyons

Re:Apple HomeView on Tuesday October 13, 2026 @10:53AM (#50072698)
Just speculating, but I suspect Apple are releasing this because Jony Ive and OpenAI are working on something similar.
Re:Go Concurrency Distilled on Monday September 28, 2026 @12:48AM (#49873771)
Elixir concurrency feels like magic with async_stream https://elixir.hexdocs.pm/Task.html#async_stream/5-options

  [
    "https://httpbin.org/delay/1",
    "https://httpbin.org/delay/2",
    "https://httpbin.org/delay/3"
  ]
  |> Task.async_stream(
    &Req.get!/1,
    max_concurrency: 3,
    ordered: true,
    timeout: to_timeout(second: 2)
  )
  |> Enum.to_list()
Re:Ask HN: What are you working on? (September 2026) on Tuesday September 15, 2026 @12:50PM (#49715293)
WhatsApp status could also work
Re:Python's pre-declared constants are kinda weird on Tuesday August 25, 2026 @06:55PM (#49441798)
I remember reading that in early versions of Python there was no built in True and False. Each user would implement this themselves as

True = 1

False = 0

then later these got added to the language. In Python 2 you could still reassign and swap them so that 'if False' was actually true!

True, False = False, True

Python 3 you could no longer reassign them.

Re:Jobs and Software Is Fucked on Monday June 22, 2026 @05:42PM (#48636622)
Pronouns
Re:1Password Raising Prices ~33% on Tuesday February 24, 2026 @05:29PM (#47144226)
I stopped my 1Password subscription last year and started using Apple Passwords. The user experience is great if you switch to Safari with fingerprint login.
Re:Total monthly number of StackOverflow questions over time on Saturday January 03, 2026 @07:59PM (#46483634)
My favourite is this disclaimer in the question. lol

> Is there any way to force install a pip python package ignoring all its dependencies that cannot be satisfied?

> (I don't care how "wrong" it is to do so, I just need to do it, any logic and reasoning aside...)

https://stackoverflow.com/questions/12759761/pip-force-insta...

Re:The British Empire's Resilient Subsea Telegraph Network on Tuesday December 30, 2025 @09:40AM (#46433745)
When visiting Ayers Rock in Australia I stayed in Alice Springs. While I was there I learnt that Alice Springs exists because it was a repeater station for a telegraph line that stretched from Southern Australia all the way to London. There would be people listening to morse code, and tapping it out again to the next repeater station. Blew my mind that there was a wire that went all the way to London from Australia!
Re:Calendar on Sunday December 28, 2025 @10:28AM (#46411731)
Can anyone recommend a native macOS app with a calendar like this that supports .ics calendars?
Re:I Wasted 8 Years of My Life in Crypto on Monday December 08, 2025 @11:46AM (#46194496)
Bitcoin doesn't take into account that humans are forgetful.

If you forget your bank card pin code they would post you a new card and pin, if you phone them up. I've done this a couple times in the past pre-smartphone banks.

If you forget your bitcoin password you are never getting access back.

Re:A million ways to die from a data race in Go on Tuesday November 25, 2025 @12:59PM (#46048602)
Does Elixir have any footguns like this? As it is immutable I don't think any of these are possible.
Re:ChatGPT Atlas on Tuesday October 21, 2025 @03:52PM (#45660819)
If you imported from Safari/Chrome in the onboarding. Go to Settings -> Personalization -> Browser Memories.

It has summarized my browsing habits and interests. Very impressive.

- "The user has a routine of checking their Fastmail inbox daily around 08:27"

Re:Cancelling async Rust on Friday October 03, 2025 @07:03PM (#45468810)
Elixir via the Task module https://hexdocs.pm/elixir/Task.html
Re:How Britain built some of the world’s safest roads on Tuesday September 09, 2025 @03:39AM (#45178735)
I did a speed awareness course as I got caught speeding and was told if there are lamp posts the speed limit is 30mph unless stated otherwise.
Re:Omarchy, a Linux Distribution by DHH on Wednesday August 06, 2025 @02:13PM (#44815602)
Crunchbang was such a good distro! I ran linux for about seven years. Ubuntu and then Crunchbang. Had my 2012 MacBook Pro dual boot into Crunchbang. Battery life was awful. It had no automatic fan control, so the laptop got so hot I could barely touch it. I ended up writing a bash script to manually control the fans using function keys https://gist.github.com/nwjlyons/b29ee6f7e26595f55a2a

As cool as it was, I can't be bothered with any of that these days. Just give me a Macbook Pro, as I know it will work and have amazing battery life!

Re:Pitfalls of Safe Rust on Sunday April 06, 2025 @03:33PM (#43604231)
Golang will panic with a runtime error index out of range if you index out of bounds. There doesn't seem to be a nice built in way to do `arr.get(3)` like in Rust.

    slice := []int{1, 2, 3}
    i := slice[3]
    fmt.Println(i)
Re:Go Optimization Guide on Tuesday April 01, 2025 @01:33AM (#43543171)
Curious to know what people are building where you need to optimise like this? eg Struct Field Alignment https://goperf.dev/01-common-patterns/fields-alignment/#avoi...
Re:Why Clojure? on Monday February 24, 2025 @06:49AM (#43158463)
> really hard to cultivate a community of people who have a deep love for something, but for some reason can't see what is actually wrong with it that drives ppl away

Elm is another example

Re:Go Data Structures on Thursday February 06, 2025 @07:08AM (#42961598)
wow.
Re:The Hidden Complexity of Scaling WebSockets on Saturday January 25, 2025 @03:31AM (#42820358)
You still need to be careful, as this won't catch panics from go routines launched from your http handler.
Re:Garmin's –$40B Pivot on Tuesday January 21, 2025 @07:46AM (#42779498)
I looked at the Apple watch but choose Garmin as it has a physical button to start and stop my run. I don't know if this is still the case but with the Apple watch I think you have to tap the touch screen. Takes too long, especially when every second counts on a 400m lap round the track :-P
Re:Cognitive load is what matters on Thursday December 26, 2024 @05:13AM (#42514272)
Cognitive load example in Go. It is common to give variables single letter names. Now you have to build up a mapping in your head that for example `a` means `Auction`. You could skip this mapping if you just named the variable `auction`.
Re:Django and Postgres for the Busy Rails Developer on Thursday December 12, 2024 @07:27AM (#42398590)
Yep, Django's on_delete behaviour being implemented in Python instead of SQL has caught me out a few times over the years.

I often do `on_delete=models.DO_NOTHING, db_constraint=False` and add the on delete cascade constraint manually to the migration file. https://stackoverflow.com/a/78668897/288424

Same goes for `default. Prior to `db_default` I'd often edit the migration file and set the default in SQL.

I much prefer Elixir's Ecto now.

Re:ChatGPT Search on Thursday October 31, 2024 @04:27PM (#42011146)
Definitely "Code Red" for Google Search
Re:How I Got a Digital Nomad Visa for Japan on Thursday October 24, 2024 @07:46AM (#41934595)
You can also get a Japanese Working Holiday Visa which allows you to work in Japan and stay for a year. https://yoyogi.io/en/how-to-get-a-japanese-working-holiday-v...
Re:Swift 6 on Tuesday September 17, 2024 @06:13PM (#41573448)
I recently started learning Swift and Swift UI and was surprised at how complicated the language is. Especially regarding reactive instance variables. eg. @observableObject. Didn't understand it. There are like five different ways to do it. Ended up playing whack a mole until it worked.
Re:Elixir Gotchas on Wednesday June 26, 2024 @02:45PM (#40803167)

    get_in(x.a)
better example would be nested.

    get_in(x.a.b.c)
Nice feature in this release is the addition of `get_in/1` which works with structs. eg. `get_in(struct.foo.bar)`

If `foo` returns `nil`, accessing `bar` won't raise.

Here is the roadmap https://hexdocs.pm/elixir/main/gradual-set-theoretic-types.h...

The next milestone will include a mechanism for defining typed structs.

Re:L(O*62).ONG: Make your URL longer on Monday June 03, 2024 @04:38AM (#40560533)
Linked in the footer of that website is https://llili.li/. Even better!

Older »