News for hackers. Stuff that matters.
Re:Show HN: TinyClock – a tiny true 5-arch universal Mac OS ... by cglong on Wednesday September 07, 2022 @02:18PM (#32754165)
OT, but as someone who's never used Bazaar, how does this work?

    bzr clone https://tycho.sytes.net/TinyClock/
EDIT: To clarify, I'm curious since this is the same URL I'm opening in my browser.
Re:Show HN: TinyClock – a tiny true 5-arch universal Mac OS ... by notamy on Wednesday September 07, 2022 @02:26PM (#32754308)
Honestly, the most surprising thing to me was that people still use bzr. It looks like Canonical abandoned it back in 2016 [0]. It seems like it was suceeded by breezy [1], at least.

[0] https://en.wikipedia.org/wiki/GNU_Bazaar

[2] https://github.com/breezy-team/breezy

Re:Show HN: TinyClock – a tiny true 5-arch universal Mac OS ... by uticus on Wednesday September 07, 2022 @03:21PM (#32755315)
Re:Show HN: TinyClock – a tiny true 5-arch universal Mac OS ... by soxocx on Wednesday September 07, 2022 @02:41PM (#32754572)
Same URL, different port. The website is at 80(http) or 443(https). Bzr seems to run on 4155.
Re:Show HN: TinyClock – a tiny true 5-arch universal Mac OS ... by PainfullyNormal on Wednesday September 07, 2022 @03:14PM (#32755152)
I successfully cloned the repo using breezy. Did I get punked? It's empty.

    > bzr log
    ------------------------------------------------------------
    revno: 1
    committer: TinyClock <[email protected]>
    branch nick: TinyClock
    timestamp: Wed 2022-09-07 20:18:32 +0300
    message:
      initial commit
Re:Show HN: TinyClock – a tiny true 5-arch universal Mac OS ... by fabrixxm on Wednesday September 07, 2022 @03:23PM (#32755359)

    > bzr clone https://tycho.sytes.net/TinyClock/
    > cd TinyClock
    > bzr checkout
    > ls
    controller.h  LICENSE  Makefile   view.h
    controller.m  main.m   README.md  view.m
Re:Show HN: TinyClock – a tiny true 5-arch universal Mac OS ... by PainfullyNormal on Wednesday September 07, 2022 @03:32PM (#32755483)
Ah! thank you.
Re:Show HN: TinyClock – a tiny true 5-arch universal Mac OS ... by projektfu on Wednesday September 07, 2022 @05:52PM (#32757483)
The website is openbsd httpd serving the repository.

https://tycho.sytes.net/TinyClock/README.md

The Makefile creates index.html from README.md (and also TinyClock.dmg)

Re:Show HN: TinyClock – a tiny true 5-arch universal Mac OS ... by dflock on Wednesday September 07, 2022 @02:23PM (#32754235)
Same as `git clone <repo>` - it downloads a local copy of the repo into a folder called ./TinyClock, which it will create if it doesn't exist.
Re:Show HN: TinyClock – a tiny true 5-arch universal Mac OS ... by unwind on Wednesday September 07, 2022 @02:25PM (#32754294)
One (IMO reasonable) objection/confusion might be that the the repo URL is the exact same as the web page, i.e. the actual posted article.

When coming from git/Mercurial/subversion etc as I do, it is at least mildly weird that the Bazaar repo address is the same as the address of a web document. The two objects are not (at least in my world) the same, so why should they share URIs?

Edit: deduped.

Re:Show HN: TinyClock – a tiny true 5-arch universal Mac OS ... by Karellen on Wednesday September 07, 2022 @02:36PM (#32754477)
Because sending different content based on the content-type the user-agent asks for, e.g. with the "Accept:" header, has explicitly been part of the HTTP spec since version 1.1 in 1997?

https://datatracker.ietf.org/doc/html/rfc2068#section-12

https://datatracker.ietf.org/doc/html/rfc2068#section-14.1

See also https://developer.mozilla.org/en-US/docs/Web/HTTP/Content_ne...

(FWIW - I don't know if that's how `bzr` does this, but it might, and the concept is 25 years old now.)

Edit: s/different content/different representations of the same resource/

Re:Show HN: TinyClock – a tiny true 5-arch universal Mac OS ... by unwind on Wednesday September 07, 2022 @03:23PM (#32755354)
True of course, didn't think about that. I'm not a web developer. :) Still think it's weird and kind of against my feeling for the spirit of a URI, but that's just me. Thanks.
Re:Show HN: TinyClock – a tiny true 5-arch universal Mac OS ... by easrng on Wednesday September 07, 2022 @02:41PM (#32754563)
You can git clone normal GitHub URLs without the .git at the end too.