Better HN
topnewbestaskshowjobs
Log inSign up

ColonelPhantom

645 karma · joined Oct 28, 2016 (10y ago) · 374 submissions

Submissions

comment 3y ago · link · parent

Or just use any text editor ever and use Ctrl+arrow to jump word-wise. The most common efficiency issue in editing is editor literacy, not editor featureset.

comment 3y ago · link · parent

It would be even better if Copilot was able to make use of the strict typing to prevent generating code that doesn't typecheck in the first place, to be honest. Copilot as-is actually feels more useful for dynamic languages, because static languages get really far without any LLMs and simple static autocomplete gets you really far. So there's more ground to make up.

In addition, Copilot benefits from a large training set, which I guess is best for Python and JavaScript as two very popular languages. Strictly typed languages seem like they are generally less well represented, at least among public GitHub projects.

comment 3y ago · link · parent

I should try Codeium then, Copilot's occasional "heap of code" was one of the most annoying parts of using it to me. Why? Because it looks plausible, so I accept it without actually understanding it.

But using it as a better autocomplete is actually quite nice, for example when I have some more repetitive code to write. And a line-by-line AI completer will at least give me the time to read it piecemeal, which I find much easier. Just like I understood way better when my math teacher demonstrated how to solve a problem compared to reading it from the textbook.

comment 3y ago · link · parent

It doesn't seem to be 2x faster on AMD (but mandatory "bait for wenchmarks).

AMD ran a YouTube ad that claims it's a 30% performance improvement on RX 7000 series: https://youtube.com/shorts/BKzty6YdRNM

Of course it depends on the exact scenario, but in games it's already known AMD ray tracing performance is quite bad compared to Nvidia and Intel, so it's not surprising they're also slow in Blender.

comment 3y ago · link · parent

x86_32 counts as an old machine (the most recent CPU being the first generation Intel Atom). It's being dropped left and right in favour of only supporting 64-bit machines (x86_64, aarch64, maybe RV64).

comment 3y ago · link · parent

Kate is not a "quick and dirty text editor" either? Kate has session and project support (admittedly a bit more clunky than VSCode, but it works), good LSP support, decent built-in search, GDB integration, a built-in terminal, Git integration, etc. Sure, it may be less polished than VSCode in some of these aspects, but they're there and mostly just work.

comment 3y ago · link · parent

Aren't pointers pretty much universally 64 bits, except for some old or esoteric machines?

And why would you not be able to treat one as an integer? Are there any examples of such ISAs?

Finally, floating point formats do differ, but that shouldn't affect anything except precision and binary format. Also I'm pretty sure "float" is standard IEEE 32 bit and "double" is standard 64 bit, with predefined exponent/mantissa sizes. The only thing that could differ between arches is endianness, and by far most ISAs have settled on little endian.

comment 3y ago · link · parent

Hardware-wise it should be pretty good, given that Intel has XMX instructions for matrix multiplication. But the software tends to be quite young and immature.

Also, for AI you often want lots of VRAM. The A750 has just 8 GB, which is the same as other lower-end GPUs. The A770 has a 16 GB version, which I think is the cheapest 16GB GPU, with AMD's RX 6800 a distant second.

comment 3y ago · link · parent

There's an old UNIX hacker trope of Vim vs Emacs "editor wars", where Vim users complain about RSImacs and Emacs users complain about Vimscript. It's a meme that goes very deep (Church of Emacs anyone?), and I'm sure that the Vim bindings for Emacs being called "evil-mode" was done at least partially on purpose. In Spacemacs, the setup option for which keybindings you want even makes it sound like you're choosing a side in a video game:

- Among the stars aboard the Evil flagship (vim)

- On the planet Emacs in the Holy control tower (emacs)

comment 3y ago · link · parent

KDE isn't just the desktop environment these days! (In fact, the DE part of KDE is now called Plasma Desktop.)

The KDE project contains many applications, including ones you may have used, like Krita or Kdenlive. I think KCacheGrind also fills a quite unique niche on Linux, namely GUI profiling tools. But there are also many that stay more within the KDE ecosystem, like Kate (which is a pretty decent text editor) or Dolphin (the KDE file manager, and probably the most featureful mainstream Linux file manager). A lot of these applications are also decently cross platform and work fine on for example Windows, and even Haiku.

Also, KDE Gear (as the application suite is called) integrates many things quite nicely. For example, their LaTeX editor Kile is basically just a glued-together version of Kate and Okular (the KDE document viewer), with some extra stuff to work with all the LaTeX stuff. It means you get all the features of both, like Kate's quite good Vi mode, or Okular's capability to trim a document's margins.

Of course, KDE would very likely refuse to take "Kwimp" under its umbrella because they already have Krita, but even if you're not on KDE there may be some worthwhile applications that do fall under their umbrella. (Just like GNOME Boxes is an excellent choice for beginner-friendly virtualization, even if you're not running GNOME.)

comment 3y ago · link · parent

Personally I've always preferred GIMP over Krita, but that's probably just because I rarely use either, and GIMP is "the devil I know". And I'm comfortable enough with it for the few tiny things I need to do (I'm decidedly not an artist!) that "the grass is greener" just doesn't apply.

comment 3y ago · link · parent

I'm on KDE, and GTK3 apps look better than GTK2 ones, because Breeze Dark is rather tricky to get working correctly with GTK2 on modern versions of KDE.

GTK3 looks almost exactly native (down to window tinting), except that the current version of breeze-gtk seems to struggle a bit with client-side decoration (the minimize/maximize/close buttons that are integrated in the toolbar), making them for example too big. (It's a known regression and should be fixed in the next version, though.)

GTK4 and the whole lack of libadwaita theming thing does look out of place though. But I use many GTK3 apps on KDE and they look near perfect. The only thing I can think of is some color-changes when gaining/losing focus are sometimes missing in Electron apps whose menu bar is themed via GTK3, iirc.

comment 3y ago · link · parent

How about the official Janet documentation? https://janet-lang.org/docs/index.html

comment 3y ago · link · parent

Recursion isn't strictly worse though, due to TCE.

And if you can manage to avoid allocating a list by recursing instead, you do save memory. (But I find it hard to think of such a case, as you can usually just loop over an iterator/generator instead?)

comment 3y ago · link · parent

What makes it easier to write in ELisp compared to JS?

Also, other text editors got on the 'real programming language' train too, like Neovim with its support for Lua. There's also Lite XL which is almost fully written in Lua itself. Does ELisp still have a big advantage there?

comment 3y ago · link · parent

VSCode is distributed! It supports connecting to a remote VSCode "server", so that you can edit files over SSH for example.

Of course, 99% of the time the server and client are ran together, so you don't notice it is distributed. But that doesn't mean it isn't.

comment 3y ago · link · parent

What if you turn it around? "Most compiler engineers aren't Rubyists."

I don't know if that's true or not, but I imagine most compiler engineers tend to be more engrossed in languages like *ML, Rust, or Haskell. Or languages that are common in general, like C++ or Python. Ruby isn't that popular (outside of the Rails niche at least?), and it doesn't fit very well in a compiler niche either, I think.

comment 3y ago · link · parent

7-zip has already been mentioned, but I want to mention Notepad++. It's not as featureful as a full-on IDE or most modern extensible text editors, but it's fast and has a simple classic UI. When I just want to edit a basic text file I tend to use N++, as long as I'm on Windows and I don't want to boot up VSCode, let alone a full IDE.

comment 3y ago · link · parent

> There's a full Lisp implementation available in there.

Okay? Neovim and Lite XL ship with full Lua implementations. VSCode ships with a full JS implementation.

Being scriptable is not unique to Emacs. Though I do think the combination of - big ecosystem (missing for Lite) - scripting freedom (missing for VSC, iirc its plugin APIs are kinda limiting) - GUI (neovim) is pretty much unique.

A lot of other editors are also extensible, either via scripting or dynamically linking native code.

The only reason Org is unique to Emacs is that it's "too large to clone", i.e. it'd be a lot of work. I think a lot of editors could provide the same features with a plugin, given sufficient effort.

comment 3y ago · link · parent

Is there much, if any, platform specific code in there? It seems like the GUI is based on Qt5 already, which is cross-platform.

Also do you have a commercial Qt5 license? I think some components, like QtCharts, are "commercial or GPLv3", so you need to be careful with redistributing. IANAL but not having a license would mean the GPL now dictates you should release your entire program as GPLv3, which I assume is not what you want, as the source code is not available anywhere.

comment 3y ago · link · parent

It's more about 'feeling' native than actually being native. I managed to reinstall VimFX and it doesn't quite scroll like the arrow keys, either. But its scrolling speed still feels more natural than either Vimium or Tridactyl, although it's a bit slow.

Tridactyl's huge jumps are annoying to me, as is Vimium's excess smoothness. In Vim, I hit j once to scroll one line, same as <down>.

comment 3y ago · link · parent

I used to be a loving VimFX [0] user. It had intelligent link hints (essentially, links it thinks you are likely to want, e.g. because they're big, get single-key shortcuts). The scrolling was actually native, as in equivalent to hitting the arrow keys. I don't think any of the other Vim emulator plugins ever replicated that. Vimium doesn't, Tridactyl doesn't, and Vim Vixen was horribly broken.

Apparently VimFX still runs via some hacks on modern Firefox versions? The last release was even in 2022. Maybe I should give it a try again.

[0] https://github.com/akhodakivskiy/VimFx

comment 3y ago · link · parent

My dream is a 'universal' protocol for things like this, so that you can use whatever text editor you like to join a session.

Is there some inherent difficulty is this, or is it just "there is no standard" -> "nobody implements one"?

comment 3y ago · link · parent

If Google Docs suddenly disappeared, everyone would just continue as usual, except that they now use MS Word or LibreOffice instead. If GPT-3 disappeared, what's the alternative?

comment 3y ago · link · parent

I generally express graphs as a `Map k (Set k)` or similar, with extra data as desired. Using keys and lookups means you don't need self-references. I guess in a way this approach sacrifices some purity, but I find it works very well.

comment 3y ago · link · parent

In-place maybe not, but what language would be more suitable for graph based algorithms? Of course it depends on how you represent the graph, but writing something like breadth-first search is quite nice and easy to implement in Haskell, in my experience.

comment 3y ago · link · parent

How about VirGL with QEMU/KVM? It's also not perfect but might work for you.

comment 3y ago · link · parent

This sounds like a really cool feature, but given that I'm not an expert I'm not sure what the practical use-cases for this are. Is it similar to what you can do with something like eBPF in Linux?

comment 3y ago · link · parent

What's wrong with it, then?

comment 3y ago · link · parent

Huh? The GNU compiler collection contains a Fortran frontend, and GCC can target nearly every architecture under the sun, inluding Aarch64.
1
789
13