Live data from Hacker News

Widdler is a single binary that serves up TiddlyWikis

github.com

21–30 of 52 posts

Re: Widdler is a single binary that serves up TiddlyWikis

#21
post #5

This is AWESOME! My biggest annoyance with TiddlyWiki has been the ergonomics of saving. I've been using TiddlyDesktop, but that thing has some questionable privacy because it's based on Chromium. One time, I had it running in the background while working on something completely unrelated, and I got a Chrome-style popup/alert warning me about a network printer being disconnected. I didn't even have Chrome installed o…

>> Also, pro-tip if you're on Ubuntu: the latest golang version in the default repos isn't compatible with this. You'll need to use golang 1.16 or later, which can be installed manually from the website, or installed via apt with a custom PPA (https://github.com/golang/go/wiki/Ubuntu)

Thanks! I was about to give up

PD: Couldn't install it either with the new binaries: "package embed: unrecognized import path "embed" (import path does not begin with hostname)"

I think they should revisit this issues if really want widespread adoption.

Re: Widdler is a single binary that serves up TiddlyWikis

#22
post #18

Wow, that is just 357 lines of Go code. So much of my work life is using complex systems in AWS and GCP that are beyond my ability to understand “turtles all the way down.” It is refreshing to see something so simple and focused on one thing. In the early days of Ruby on Rails, I had the source code to Ruby and for Ruby on Rails on my laptop and it was all fairly readable. Those days are long gone.

Does that LOC count include dependencies?

There are only native packages + 1 external packages suah.dev/protect.

Re: Widdler is a single binary that serves up TiddlyWikis

#23

Wow, that is just 357 lines of Go code. So much of my work life is using complex systems in AWS and GCP that are beyond my ability to understand “turtles all the way down.” It is refreshing to see something so simple and focused on one thing. In the early days of Ruby on Rails, I had the source code to Ruby and for Ruby on Rails on my laptop and it was all fairly readable. Those days are long gone.

The trick seems to be that all the complexity is in the html file and runs in the browser. The server is just a basic WebDAV server.

It looks like the entire wiki implementation is copied to a new file when you create a new wiki page. It's a 2.3 MB file, which seems like a lot to download when you visit a new page.

Re: Widdler is a single binary that serves up TiddlyWikis

#24
post #20

Wow, that is just 357 lines of Go code. So much of my work life is using complex systems in AWS and GCP that are beyond my ability to understand “turtles all the way down.” It is refreshing to see something so simple and focused on one thing. In the early days of Ruby on Rails, I had the source code to Ruby and for Ruby on Rails on my laptop and it was all fairly readable. Those days are long gone.

It's a weird phenomenon though since even though ruby on rails was readible in a small code base, it was still building on top of a ton of abstractions that hid lower detail. It makes me think that we're just failing to build clean good abstractions that make coding for cloud as beautiful as it could be.

The difference between Rails and AWS however is that you can inspect the former and understand all its underpinnings whereas AWS is almost entirely proprietary and your experience with their services entirely depends on what services you select.

Re: Widdler is a single binary that serves up TiddlyWikis

#25

Wow, that is just 357 lines of Go code. So much of my work life is using complex systems in AWS and GCP that are beyond my ability to understand “turtles all the way down.” It is refreshing to see something so simple and focused on one thing. In the early days of Ruby on Rails, I had the source code to Ruby and for Ruby on Rails on my laptop and it was all fairly readable. Those days are long gone.

The trick seems to be that all the complexity is in the html file and runs in the browser. The server is just a basic WebDAV server. It looks like the entire wiki implementation is copied to a new file when you create a new wiki page. It's a 2.3 MB file, which seems like a lot to download when you visit a new page.

Each HTML file is a complete wiki instance. The wiki code and data for all pages within the wiki are bundled in that file. The code let’s the webpage edit itself.

Re: Widdler is a single binary that serves up TiddlyWikis

#26
post #21
post #5

This is AWESOME! My biggest annoyance with TiddlyWiki has been the ergonomics of saving. I've been using TiddlyDesktop, but that thing has some questionable privacy because it's based on Chromium. One time, I had it running in the background while working on something completely unrelated, and I got a Chrome-style popup/alert warning me about a network printer being disconnected. I didn't even have Chrome installed o…

>> Also, pro-tip if you're on Ubuntu: the latest golang version in the default repos isn't compatible with this. You'll need to use golang 1.16 or later, which can be installed manually from the website, or installed via apt with a custom PPA ( https://github.com/golang/go/wiki/Ubuntu ) Thanks! I was about to give up PD: Couldn't install it either with the new binaries: "package embed: unrecognized import path "embed…

Run `go version` to see if you're actually running the correct version of go. You need at least go 1.16.

If it's not correct, try `command -v go` to see which go binary your shell is using. If it's not "/usr/bin/go", then your PATH probably points to another one. In that case, try running `/usr/bin/go` directly instead of just `go` (assuming you installed the PPA linked above).

> I think they should revisit this issues if really want widespread adoption.

This isn't the project's fault. It requires a particular version of go, but you have the wrong version on your computer.

Re: Widdler is a single binary that serves up TiddlyWikis

#27
post #17
post #5

This is AWESOME! My biggest annoyance with TiddlyWiki has been the ergonomics of saving. I've been using TiddlyDesktop, but that thing has some questionable privacy because it's based on Chromium. One time, I had it running in the background while working on something completely unrelated, and I got a Chrome-style popup/alert warning me about a network printer being disconnected. I didn't even have Chrome installed o…

You might be interested in these: - https://github.com/fiatjaf/tiddlywiki-remotestorage-server - https://github.com/fiatjaf/tiddlywiki-remotestorage A TiddlyWiki plugin for saving tiddlers to https://remotestorage.io/ and also a server to fetch them from any public remoteStorage on demand and serve them as HTML to visitors (for sharing). I think my server at https://tiddly.fiatjaf.com still works. You can just open i…

That's the first I've heard about remotestorage.io, and it looks interesting. I'll definitely be looking into that, thanks!

Re: Widdler is a single binary that serves up TiddlyWikis

#28
post #5

This is AWESOME! My biggest annoyance with TiddlyWiki has been the ergonomics of saving. I've been using TiddlyDesktop, but that thing has some questionable privacy because it's based on Chromium. One time, I had it running in the background while working on something completely unrelated, and I got a Chrome-style popup/alert warning me about a network printer being disconnected. I didn't even have Chrome installed o…

> My biggest annoyance with TiddlyWiki has been the ergonomics of saving.

I wanted something that just let me open the wiki and save changes to it. Nothing else. No massive dependencies. This is what I wrote: https://github.com/bachmeil/tiddlyd You view you TW and you save changes to it, nothing else.

Re: Widdler is a single binary that serves up TiddlyWikis

#29

Wow, that is just 357 lines of Go code. So much of my work life is using complex systems in AWS and GCP that are beyond my ability to understand “turtles all the way down.” It is refreshing to see something so simple and focused on one thing. In the early days of Ruby on Rails, I had the source code to Ruby and for Ruby on Rails on my laptop and it was all fairly readable. Those days are long gone.

i keep the code for CPython, Go, terraform and the terraform providers i use checked out. It is still useful and educational to read source code. i confess i only rarely check out the kernel or glibc code. kernel code is good but usually not the issue glibc has the tendency to make me mad.
Post reply on HN