HNHacker News
TopNewBestAskShowJobs

uvtc

88 karma · joined November 30, 2011

John Gabriele

http://www.unexpected-vortices.com/

submissionscomments
uvtc··on Don't learn Dvorak
Never heard of the Ergodox EZ. Looks great. Neat that you can replace entire switches with no soldering.

Most of my typing is done with my Kinesis keyboard on my lap. Doesn't look like the Ergodox can go on your lap, which is a dealbreaker for me.

Also, I mounted a trackpad|touchpad in the center of the Kinesis (with tape), and it's wonderful. Again, doesn't look like you can do that with the Ergodox.

uvtc··on Ending PHP Support, and the Future of Hack
Ah. Ok. Thank you. I see my reply was sloppy --- sorry. It seemed to me that you were suggesting that being open source plus being productized was required for project success, and my thought was:

1. wait, there are more axes than just license and productization, and

2. there are other values on those axes that can lead to success (not just open source + productized)

Here are some separate axes I see:

* open source (Apache2, BSD, MIT) vs free software (copyleft (GPL, LGPL))

* corp-backed vs not-corp-backed

* community-driven vs closed-style-development

* core devs have a very solid vision of project direction, vs being more open to change and/or direction taken from contributors

* amount of productization: are the main target users the core devs themselves or external users

* overall quality of the language

Some armchair comments:

+ you risk lock-in by going with corp-backed languages

+ you may see more community involvement with free software projects, whereas more corp involvement with open source

+ high productization often means a very low contributor to user ratio

+ although quality doesn't necessarily win, it sure is nice.

uvtc··on Ending PHP Support, and the Future of Hack
> I have learned the hard way that "open source" is not sufficient, it should actually also be a product (meaning the owner cares a lot about external opinions).

There are open source projects that succeed because, aside from being good enough, they also have big corps behind them: TypeScript, Dart, Go, Flow, Kotlin, etc.

But there are also open source (often free software) projects that succeed because they're great and are community-focused and community-supported: Python, Haxe, Julia, etc.

uvtc··on TypeScript at Google
> If you're looking to rewrite a lot of code and pay off technical debt anyway, {snip}

Also if you're writing something from scratch.

I see four of these statically-typed better-than-JS languages with familiar syntax that, while having their own VM (or compiler, or both), can also compile to JS:

* Dart

* Haxe

* Kotlin

* Reason

uvtc··on Pandoc
You'd only need to install Haskell if you wanted to build Pandoc. Pandoc the executable is a binary. I install it on Debian via: `apt install pandoc`.
uvtc··on Pandoc
Nice.

I wrote up a tool as well, with navigation and prev/next links: http://www.unexpected-vortices.com/sw/rippledoc/index.html

uvtc··on Pandoc
Yes! It's great to be able to put LaTeX-formatted equations directly into your pandoc-flavored markdown source file.

Incidentally, I really like the thoughtful syntax additions Pandoc makes over olde Markdown (eg., tables, definition lists, and span & div syntax as well). Such a great all-around doc tool.

uvtc··on Writing Documentation When You Aren't a Technical Writer
> - an OVERVIEW/INTENT page/paragraph.

Yes.

I wrote a little tool ([Rippledoc](http://www.unexpected-vortices.com/sw/rippledoc/index.html)) for processing a docs directory of markdown files into a navigable whole, and recently updated it to be able to use the project README.md (the presumed overview/intent doc) to encourage having that front page be overview/intent.

uvtc··on Don’t buy System76 hardware and expect to get firmware updates from the LVFS
I buy from ThinkPenguin and am very happy with them, but I don't know how their GPUs compare to other systems. They sell fully-compatible systems.

I don't recall where I first heard of them, but I see they're listed at https://www.gnu.org/links/non-ryf.html .

uvtc··on Don’t buy System76 hardware and expect to get firmware updates from the LVFS
> If you're paying that premium in hopes you'll get a fully working system without quirks, be prepared for disappointment. I have had better luck with simply buying the most popular laptop since it's more likely to be working correctly without hours of configurations.

I disagree. I buy from, for example, ThinkPenguin, precisely because they've vetted the systems and I'm confident they will "just work" if I do a fresh reinstall.

uvtc··on 100 days with Rust: a series of brick walls
I think the problem is that the Python docs often put the examples at the end, when they should be right at the top.
uvtc··on D’s Newfangled Name Mangling
I think a big part was the licensing issue. Before April 2017, the official compiler back-end was some non-open-source license (dunno which). In this day and age I couldn't see using a compiler that wasn't free software. But now that's been fixed --- the reference compiler is now all Boost licensed, and GDC (the GCC front-end) has even been officially accepted into GCC (woot!).

Also, I'm not sure how long the standard package repository and module installer (dub) has been around. But that's here now too.

I think the future of D looks very bright. I'm still learning, but to me D seems somewhat similar to Python, except:

* it's compiled to native code instead of interpreted

* it's syntax uses curlies/semis instead of whitespace

* it's statically typed (but has type inference so you can type many variables as just "auto" and the type is inferred)

* it has [dub](https://code.dlang.org/) instead of the [cheeseshop](https://cheeseshop.python.org) (of course, the cheeseshop is currently much larger)

Anyhow, very much enjoying D so far. :) I expect D's popularity to grow as more people desire a statically-typed, compiled language, with the convenience of a GC and easy access to native (C) libraries.

uvtc··on Fun facts about Rust's growing popularity
From what I've seen so far (just getting started with D), I like D a lot:

* compiled, statically-typed, GC'd

* _very_ fast compilation (this is DMD; haven't tried the other two implementations (one on LLVM, the other on GCC))

* very fast executables

* easy linking with and use of C libraries

* familiar and practical

uvtc··on The Incredible Growth of Python
> A lot of people like the Python syntax.

Of course.

> It has to be about the most readable of all computer languages.

Quite readable, sure. Though my point is that curlies and semicolons are more familiar to many (and easier to edit/navigate in my editor, for that matter), and probably would be preferred. My comment was about why I think many (not all by any stretch, of course) choose a language like Python.

uvtc··on The Incredible Growth of Python
> I'd love for these to be the reasons but somehow I doubt any of us are that thorough.

Hm. I think there's a difference between reasons for trying out a language for some random task versus staying with it. I've bounced around between lots of different languages, and I suppose the list I presented above are why lots of people stay with Python.

I think you're judgement of "mmm does it feel productive" roughly corresponds somewhat with the above list. Though I accidentally left off "good-enough docs", which I think is a given.

> I couldn't really understand Apache in 30 minutes so I used nginx instead.

Yeah. Though I think it has a lot to do with how good the docs are. Definitely, if a project can't tell me what it is, why I'd want to use it, and an overview of how it fits in, I'm very hesitant to pursue it further.

uvtc··on The Incredible Growth of Python
> Looking forward to the "why" post. Glad that they mentioned that they'll be publishing that soon.

I think the "why" is because, for many users:

* they want a small and easy, dynamically-typed, garbage-collected language with few surprises (see `import this`). Perl misses out here.

* they want something built with C so there's easy access to native libraries. Languages on general-purpose VMs miss out here.

* I don't think they want something that transpiles/compiles down to some other lower-level language (which I suspect leads to difficult debugging). Maybe Nim misses out here.

* they're comfortable with imperative-style programming. Maybe lisps and Haskell miss out here.

* Python is fast enough for most things where C-speed isn't needed. Very-high-level languages chasing dreams of high performance mostly miss out here, IMO.

* they want a language that helps them catch their mistakes. IMO, maybe Lua misses out here (with default nil everywhere).

* Users want a general-purpose language. Again, Lua misses here, though, of course, Lua's goal isn't to be general-purpose anyway.

* I think many users also want a language that's licensed GPL-compatible. Clojure misses out here.

* they want a nice helpful community

* Users want a language with familiar C/C++/JS/Java -ish syntax. Python misses out here! {ducks}

Python has its own set of problems, but it hits all those marks except for the last one. So, it's gotten quite popular.

uvtc··on Nginx Unit
> why do people always use "not recommended" when they actually mean "do not ever do this or you'll end up the laughing stock in the tech press"

For the same reason they say, "non-trivial" when they really mean "nearly impossibly difficult". :)

uvtc··on Flux Electric Mopeds
These look nice! Are they belt or chain drive?

Wow. Regen braking too.

What does one of these weigh?

uvtc··on Ask HN: What notebook is cool for development (hard/software)?
If you want it to run free software, have a look at https://www.thinkpenguin.com/ . I've had good experiences with them, but it was for a mini desktop, not a notebook.
uvtc··on The problem with GNOME 3
If you prefer a more traditional-style desktop, Xfce is very nice.
uvtc··on Dart Is Not the Language You Think It Is
One thing I'm not too crazy about is that, AFAICT, it seems that you need a Google account in order to upload packages to its cpan-alike, http://pub.dartlang.org/ .

Can the Dart package management tool fetch/install packages which are not hosted at pub.dartlang.org? Can it install packages straight from a github repo?

uvtc··on ClojureC, a compiler for Clojure that targets C as a backend
> sadly, this doesn't seem to support any sort of multithreading

Maybe multithreading is just not yet implemented?

> So that kills one of the main reasons to use Clojure in the first place.

I could see ClojureC being very useful for when you want:

  * small footprint
  * easy C-library interop
  * fast start-up time
and where you don't necessarily need multithreading.

(BTW, I'd be curious to hear what you think might be the differences in use cases between ClojureC and mjolnir/clojure-metal.)

uvtc··on ClojureC, a compiler for Clojure that targets C as a backend
The readme for ClojureC says it's still experimental at this point. I'm not sure how far along it is. You might poke around its tests to see what it does so far.
uvtc··on ClojureC, a compiler for Clojure that targets C as a backend
> ..argh, installing that on ubuntu that requires 110 packages. All that just for a build system?

Don't install lein using the OS packaging system (apt, rpm, yum, etc.).

Instead, just grab the `lein` script (linked to from http://leiningen.org/ ), put it into your ~/bin, set it executable, and you're all set.

uvtc··on Ask HN: What ergonomic keyboard/mouse do you recommend?
My hands feel so much better using the Contoured. Especially when you include:

  * a trackpad you can mount in the middle of it, and
  * a footstool so you can place the keyboard on your lap.
uvtc··on Ask HN: Do you get pain in your finger tips from typing all day?
Step 1: Get one of these http://kinesis-ergo.com/contoured.htm along with a trackpad http://kinesis-ergo.com/touchpads.htm which you can tape down to the keyboard in the middle.

Step 2: Posture. Sit up straight, and type such that your upper arms hang down, your forearms are about horizontal, and the tops of your hands bend down just a small bit from the horizontal (fingers should dangle down onto the keys). For me, having the keyboard on my lap --- as well as using a footstool to keep my lap level --- is just right.

If you really want to go all out (say your pinkies are hurting you the most), consider a foot-switch to use in place of the Shift key (note, I've never tried the footswitch).

If you can take the productivity hit for a week or so, consider switching to a keyboard layout such as dvorak. It's not that much faster than qwerty, but it's more comfortable. Find out about crazier (and more optimal) layouts at http://mkweb.bcgsc.ca/carpalx/ .

I don't work for or have any other interest in Kinesis other than really liking their Contoured keyboard (combined with the trackpad).

uvtc··on Save your eyes, start using f.lux
Installed on Xubuntu 12.04, using dual-monitors. "f.lux indicator applet" shows up in my Accessories menu. First time running it I gave it latitude & longitude. It starts up (its icon shows up in the tray), but it doesn't seem to have any effect.

Trying to open the applet's Preferences has no effect.

uvtc··on Improved wikis with more markup options
I don't know about BitBucket's particular flavor of Markdown, but for a full-featured Markdown, see [Pandoc](http://johnmacfarlane.net/pandoc/). It supports the elements you're probably missing, ex. definition lists, tables, LaTeX math, footnotes. To add a line-break, it supports using a backslash instead of trailing spaces.

Also, Pandoc gets deeply-nested lists right.

uvtc··on Ubuntu in 2013
If you like the ease-of-use of Ubuntu, but don't like Unity nor Gnome 3, just use Xubuntu (or Lubuntu).

Xubuntu in particular provides what I think of as a regular no-surprises desktop --- exactly what I want and expect from a desktop OS.

uvtc··on Perl 5.17.6 is now available
> I'd be genuinely interested in reasons why I should learn Perl?

Perl 5 is handy, putting oft-used tools within arms reach. There are a lot of useful and mature Perl 5 modules available (at CPAN). The language has some warts you'll hear folks complain about. Perl 5 is considered a power tool for GNU/Linux & unix admins. Perl 5 infrastructure is great. Community support is great. The docs are great. For small scripts that involve text manipulation (with regexes) and working with the OS and with other scripts, it's very tough to beat Perl 5. The Perl 5 goals appear to me to be: be handy (sometimes providing more than one way to do it), be useful (bending the rules sometimes is ok, but try not to wreck up the place), and try to do what I mean.

Python is easy to pick up, is pretty uniform, and has a nice repl. You'll often find your Python code working correctly the first time you type it. You should be able to learn the language itself in a very short amount of time. The Python goals appear to me to be: be easy to learn, be mostly uniform. For more, open a repl and type `import this`.

The Perl 5, Python, and Ruby communities are somewhat different from eachother.

> Will Perl remain relevant in 15 years time?

Can't answer that, but I don't think Perl 5 is going anywhere for a while. Too much stuff runs on Perl 5.

← PreviousPage 2 of 3Next →