Live data from Hacker News

Show HN: Bt – BitTorrent library in Java 8

github.com

11–20 of 89 posts

Re: Show HN: Bt – BitTorrent library in Java 8

#11
post #9
post #7

I'm curious, it looks like the screenshot shows the author is using a Mac. But Mac OS hasn't shipped with Java in several years. So why Java? Is it simply familiarity, or are there other reasons?

Most OS's don't ship with a C compiler, go, python 3, rust, arc, etc, what does that have to do with anything?

Technically _most_ ship with a C compiler and a python compiler since pretty well every linux distribution & bsd distribution has those. But that really doesn't have anything to do with which language you should use.

Re: Show HN: Bt – BitTorrent library in Java 8

#12
post #9
post #7

I'm curious, it looks like the screenshot shows the author is using a Mac. But Mac OS hasn't shipped with Java in several years. So why Java? Is it simply familiarity, or are there other reasons?

Most OS's don't ship with a C compiler, go, python 3, rust, arc, etc, what does that have to do with anything?

You're conflating developer tools with a language runtime. Every popular OS ships with everything necessary to run a C, Go, or Rust binary. Python 3 and Java both require a separate runtime to be installed, but I will say that every Java CLI I've used has had terrible startup performance.

Re: Show HN: Bt – BitTorrent library in Java 8

#13
post #12
post #9

Earlier quoted context omitted.

Most OS's don't ship with a C compiler, go, python 3, rust, arc, etc, what does that have to do with anything?

You're conflating developer tools with a language runtime. Every popular OS ships with everything necessary to run a C, Go, or Rust binary. Python 3 and Java both require a separate runtime to be installed, but I will say that every Java CLI I've used has had terrible startup performance.

I'm using Lanterna, a Java library for creating text-based terminal GUIs (https://github.com/mabe02/lanterna), and the startup is 1-2 seconds. Can't recommend it enough

Re: Show HN: Bt – BitTorrent library in Java 8

#14
post #12

Earlier quoted context omitted.

You're conflating developer tools with a language runtime. Every popular OS ships with everything necessary to run a C, Go, or Rust binary. Python 3 and Java both require a separate runtime to be installed, but I will say that every Java CLI I've used has had terrible startup performance.

I'm using Lanterna, a Java library for creating text-based terminal GUIs ( https://github.com/mabe02/lanterna ), and the startup is 1-2 seconds. Can't recommend it enough

Good to know, but 1-2 seconds is still very slow compared to a native app. I have an 8MB Go CLI application that can startup and print its help in .05 seconds, and even that is probably slow compared to a C or Rust equivalent.

Re: Show HN: Bt – BitTorrent library in Java 8

#15
post #12
post #9

Earlier quoted context omitted.

Most OS's don't ship with a C compiler, go, python 3, rust, arc, etc, what does that have to do with anything?

You're conflating developer tools with a language runtime. Every popular OS ships with everything necessary to run a C, Go, or Rust binary. Python 3 and Java both require a separate runtime to be installed, but I will say that every Java CLI I've used has had terrible startup performance.

Some apps just include JRE into the app package (+100MB), and just use it if it's not provided by OS.

But then you need to provide different app packages for different OSes.

Re: Show HN: Bt – BitTorrent library in Java 8

#16
post #12

Earlier quoted context omitted.

You're conflating developer tools with a language runtime. Every popular OS ships with everything necessary to run a C, Go, or Rust binary. Python 3 and Java both require a separate runtime to be installed, but I will say that every Java CLI I've used has had terrible startup performance.

I'm using Lanterna, a Java library for creating text-based terminal GUIs ( https://github.com/mabe02/lanterna ), and the startup is 1-2 seconds. Can't recommend it enough

opening and quiting vim for a file of 2500 lines of C++ (so with all the plugins and stuff) takes 0.030seconds. I don't see how you can be satisfied with 2 seconds startup for a terminal application

Re: Show HN: Bt – BitTorrent library in Java 8

#17
post #14

Earlier quoted context omitted.

I'm using Lanterna, a Java library for creating text-based terminal GUIs ( https://github.com/mabe02/lanterna ), and the startup is 1-2 seconds. Can't recommend it enough

Good to know, but 1-2 seconds is still very slow compared to a native app. I have an 8MB Go CLI application that can startup and print its help in .05 seconds, and even that is probably slow compared to a C or Rust equivalent.

Well, printing stuff is easy. Just tried:

  $ time java HelloWorld 
  Hello, World

  real	0m0.088s
  user	0m0.088s
  sys	0m0.016s

Re: Show HN: Bt – BitTorrent library in Java 8

#18
post #16

Earlier quoted context omitted.

I'm using Lanterna, a Java library for creating text-based terminal GUIs ( https://github.com/mabe02/lanterna ), and the startup is 1-2 seconds. Can't recommend it enough

opening and quiting vim for a file of 2500 lines of C++ (so with all the plugins and stuff) takes 0.030seconds. I don't see how you can be satisfied with 2 seconds startup for a terminal application

I completely agree that for a interactive tool like text editor startup time is crucial. But in my case being a bit on the slow side is probably fine, because the UI is for informational purposes only, and VLC takes around 5-10 seconds anyways to startup and begin playing the file, that is being downloaded.

Re: Show HN: Bt – BitTorrent library in Java 8

#19
post #12
post #9

Earlier quoted context omitted.

Most OS's don't ship with a C compiler, go, python 3, rust, arc, etc, what does that have to do with anything?

You're conflating developer tools with a language runtime. Every popular OS ships with everything necessary to run a C, Go, or Rust binary. Python 3 and Java both require a separate runtime to be installed, but I will say that every Java CLI I've used has had terrible startup performance.

I'm not conflating them and it's still a silly way to frame the question. If you want to ask someone why they wrote something in language X, just ask them that.

Re: Show HN: Bt – BitTorrent library in Java 8

#20
post #11
post #9

Earlier quoted context omitted.

Most OS's don't ship with a C compiler, go, python 3, rust, arc, etc, what does that have to do with anything?

Technically _most_ ship with a C compiler and a python compiler since pretty well every linux distribution & bsd distribution has those. But that really doesn't have anything to do with which language you should use.

Technically, that's not true.
Post reply on HN