News for hackers. Stuff that matters.

uvtc

Re:The Joy of Folding Bikes on Sunday April 26, 2026 @12:07PM (#47911377)
My understanding is that battery capacity is the issue; it's usually above the max allowed on the plane. This company makes a snap-together battery https://ebikes.ca/product-info/grin-products/ligo10x-battery... where each individual module is below the limit and so the pack can be broken down and shipped individually and separately.
Re:Rules for Writing Software Tutorials on Friday January 03, 2025 @05:37PM (#42590224)
A rule I try to follow: don't waste your reader's time.
Re:Laptop Brands with GNU/Linux Preinstalled on Monday March 20, 2023 @12:01AM (#35227127)
Happy thinkpenguin customer here. In the old days I researched hardware for GNU/Linux compat; now I just buy a system from them and everything just works.
> I honestly don't get why Markdown became preferred in most projects over AsciiDoc.

I think the primary reason is because Markdown is prettier to read (and also secondarily because it's good enough).

There are lots of markup formats, but markdown is probably the easiest on the eyes.

Re:Porting 58000 lines of D and C++ to jai, Part 0: Why and How on Wednesday November 23, 2022 @05:10PM (#33725158)
> I don't understand why they are not working in the open,

> Fast compilation and nice, easy to read syntax with good default is exactly what I am looking for.

> [re metaprogramming] ... but I also think this is a pandora box.

Sounds like you might also like [Hare](https://harelang.org/). (has some work-in-progress [SDL2 bindings](https://git.sr.ht/~sircmpwn/hare-sdl2))

Re:Ask HN: How do I find my “purpose”? on Wednesday November 09, 2022 @11:49PM (#33542350)
{slow clap}
Re:Joy: A maximalist web framework for Lisp aficionados on Tuesday June 07, 2022 @01:44PM (#31657764)
> I have also used Fennel recently, and if Janet is anything as good,...

Fennel was created prior to Janet, by the same person. :)

Re:Joy: A maximalist web framework for Lisp aficionados on Tuesday June 07, 2022 @01:37PM (#31657681)
> It's nice that most of Janes the literals match Clojure

Two things:

* Janet doesn't have a built-in set data structure literal. Need to use a library for that.

* Janet has mutable and immutable versions of arrays and hashmaps (the literals for the mutable variety are prefixed with `@`)

I think it's partly due to: people like regular garden-variety arrays and hashmaps, and don't want to use car, cdr, cons. I like my array and hashmap literals.
> killer feature: user provided examples

I agree. [Janet](https://janet-lang.org/) (which, coincidentally, has some superficial similarities to Clojure) has something similar at its [JanetDocs site](https://janetdocs.com/).

Looks like the name is "Xournal++", but the github repo name is "xournalpp".
The "pen display" is the type where it's a monitor with the transparent trackpad overlaid on it. That, I think, is what you want. I tried the other type, where you write on the tablet but you look at the screen elsewhere, and it was not fun.

The Wacom One is a fine choice (its their smallest and least expensive model). Maybe artists would need a larger one, but the Wacom One is, IMO, large enough to take notes on.

Haven't tried an iPad, but that Wacom is a really excellent writing/drawing experience.

Re:Ask HN: How to do self-study on Physics on Sunday May 29, 2022 @09:00PM (#31554482)
How are your math skills? Do you know any calculus? Are you interested in learning more math to go with the physics?
Re:Janet Programming Language on Saturday August 21, 2021 @03:28PM (#28259797)
Janet is small, simple, efficient, and practical. For me it has nice syntax and sensible semantics. Great little package manager too. Very happy with and excited about Janet so far.
Re:TeXmacs and the Art of Mathematical Writing on Monday May 03, 2021 @09:38PM (#27033160)
Pandoc lets you write in Markdown but also include mathematics in LaTeX. For me this is a nice combination.
Re:Munin Website Redesigned on Wednesday April 21, 2021 @09:49AM (#26889651)
Would be nice if that tiny image on the top left of the homepage were clickable so I could see the screenshot full-size.
Re:Try the new try.haxe on Sunday February 28, 2021 @06:33PM (#26298151)
Well, it also has its very own [Hashlink, virtual machine](https://hashlink.haxe.org/).

And it can also compile down to various bytecodes (like JVM), not just to other languages.

Sounds like you'd like Haxe.
Re:Haxe – Cross Platform Development on Tuesday March 03, 2020 @07:47PM (#22480231)
I'm not sure there's a catch, so much as there's just a number of comparable but corporate-backed alternatives that are seeing some popularity right now:

* TypeScript (Microsoft)

* Dart (Google)

* Kotlin (JetBrains, with Google too)

* Swift (Apple) (though not sure if it compiles to JS)

Re:Goodbye, Flash on Tuesday October 29, 2019 @10:17PM (#21394085)
Haxe plus OpenFL or HaxeFlixel?
Re:Goodbye, Flash on Tuesday October 29, 2019 @10:14PM (#21394066)
I believe with Haxe you can use OpenFL to get what you're looking for. FWIU, that provides a nice migration path from Flash.
Re:Nim: Scripting Ease in a Compiled Language on Tuesday October 29, 2019 @10:04PM (#21393996)
If cross-compilation is important to you, and you like Nim's level of abstraction, you might have a look at Haxe, which can compile to [lots of different targets](https://haxe.org/documentation/introduction/compiler-targets...).
Re:Lua 5.4.0 beta on Thursday October 03, 2019 @09:31PM (#21154054)
If you want Lua under the hood, but a more industrial-strength language on top, you might have a look at Haxe. It can compile to Lua (among other languages/platforms).

https://haxe.org/manual/target-lua-getting-started.html

Re:Why I Write Games in C (yes, C) on Sunday September 22, 2019 @08:47PM (#21045077)
> Haxe feels much more promising than most alternatives. If I do web stuff again I'll be diving in here. There is some good library support. I am a little concerned by its relative youth, will it last?

Haxe has actually been around since 2005 or so. I'm really liking Haxe as a general-purpose compile-to-just-about-anything language.

Oh, same name as the Xfce image viewer: <https://docs.xfce.org/apps/ristretto/start>
Re:TypeScript 3.6 on Wednesday August 28, 2019 @06:17PM (#20824628)
There are many nice modern languages that compile to JavaScript. Personally, I like [Haxe](https://haxe.org/), which compiles to many other target platforms/languages as well.

Here's a [comparison of Haxe and TypeScript](https://blog.onthewings.net/2015/08/05/typescript-vs-haxe/).

Given that GitLab/GitHub/etc (and, often, online package repositories) automatically display markdown files as rendered html, a directory of markdown files is a fine way to document your project. The docs can, at any point, optionally be processed into html that goes into a separate website (lots of folks have written tools for this. My own is [Rippledoc](https://gitlab.com/uvtc/rippledoc)).

Also, if the project is a library or framework with a public interface, you need both API docs generated from source, and prose docs.

Re:Nim 0.19 on Thursday September 27, 2018 @11:47PM (#18090893)
> I think the one downside of Haxe (which is also is strength) is that it doesn’t only support compiling to C/C++, but to every major language possible (Java, C#, PHP, Javascript), so the language ends up being too complex.

I don't understand --- I would think it's quite the opposite. Implementing too many unique target-language -specific features in Haxe would mean lots more compilation acrobatics to make those features work across every target language, correct?

> the main developer is working on Hashlink, which can run Haxe code on a virtual machine but can also transpile it to C for production builds

Yes, very excited about HashLink!

Re:Announcing TypeScript 3.1 on Thursday September 27, 2018 @01:51PM (#18086954)
If you're already using JavaScript for the web, I think there's three main options for that domain:

* stick with JS,

* learn a language that's a superset of JS (like TypeScript), or

* learn another language which compiles to JS.

If you're looking for a language that can also replace Python for you, then maybe the 3rd option above is a good bet. Something which has its own VM (or other native target), but which also can be compiled to JS. For example, Haxe, Kotlin, Nim, Go, or Dart.

Re:Nim 0.19 on Thursday September 27, 2018 @01:31PM (#18086744)
Nim appears to be quite similar to Haxe, though Haxe compiles to numerous additional targets. Aside from that, and the syntax, what are the main differences between Nim and Haxe?

Older »