What most people mean when they say "running a full-blown webserver" is actually 3-5 lines of code btw.

1 line in Golang.

Reply to this note

Please Login to reply.

Discussion

python3 -m http.server 9000

I have become The Internet.

I avoided this for many years because it sounded so intimidating. Now I have learned the basics I wish I had done it sooner.

How many lines of code is irrelevant.

The issue is that you need to be responsible for something that stays online. Something that needs an IP address, aka something that can be sanctioned & shut down.

It is extremely relevant because ease of implementation is one of the most important factors of what drives Bitcoin adoption.

Any reference to rgb stack is merely coincidental

What's the joke? :)

Nope, until 6 months ago rgb was completely unusable, documentation all over the place, 10000 containers, cryptic code base, in fact, in my opinion rgb didn’t really take off because it had a bad developer experience (like really bad)

I have much better expectations for taro!

PS: in the last 6 months there has been a push by bitfinex to revamp and cleanup rgb, let’s see how they do!

Looked into RGB ha hear ago or so and I had the same experience.

I think that was the joke right?

#[5]

Was this the reference to your earlier post ? #[5]

I was implying rgb had a very bad developer experience, which, in my opinion, was the limiting factor for adoption

That’s along the lines of: keep implementation clean and simple, number of lines of code *is* relevant (from the opener)

A person for whom code complexity is a factor for adopting Bitcoin would have been stopped way higher up the philosophical chain already by other things. They are “low desire”.

I don't understand what you mean (or you don't understand what you mean :)

It’s either very deep or meaningless their post … so confused 🫠😂

What you meme?

Lightning nodes also need an IP address.

More lines of code, more error prone, less uptime.

Less people implementing, less companies using it, less marketing for these companies, less Bitcoin adoption.

… and hardware, electricity, DNS…

Irrelevant, the hard part is a public ip address.

Tor is a thing though

Your post is generating a lot of interest.

Added to the https://member.cash/hot feed

That 1 line in golang is likely importing in tens of thousands of lines of code.

No, It's not.

Which line of golang are you referring to?

The built-in https server

https://go.dev/play/p/t3sOenOYAzS

Right. net/http is many thousands of lines of code.

lol, printf is also thousand lines of code (there is even an OS running on my Lightning node!)

The results are in, it takes ~170 lines of #rustlang code and half a day of work if you implement a LNURL server for Core Lightning. Deployment was a ~25 line diff to my nix-bitcoin config.

I think #[1] nerd-sniped me 😅

Added benefit: now I can zap around on nostr like all the cool kids 😁

https://github.com/elsirion/clnurl

#[0]

I give you a one million sats bounty if you convert https://github.com/jb55/cln-nostr-zapper into a rust plugin

Pyhon is also one line

python3 -m http.server

Older python 2 (stop using this!)

python2 -m SimpleHTTPServer

#[0]