Back

CudaText: Cross-platform code editor

196 points3 yearscudatext.github.io
rememberlenny3 years ago

> Disclaimer: word "cuda" is taken from Serbian language, it means "miracles".

This has to do with a Serbian word and not the Nvidia GPU programming language.

inb4_cancelled3 years ago

Weird, the actual serbian word is "čuda", pronounced "chuda", and they're completely ignoring the diacritics.

puszczyk3 years ago

In Polish it’s actually “cuda”, without diacritics (same meaning). Regardless, one often ignores diacritics in writing in English/Western context. My last name has “ń”, though all the airlines insist to put “n” there; same with Western European banks. While for some words they maybe ambiguities if you skip the diacritics they are usually resolved by the context. Polish ppl are def used to read a text without diacritics and not surprised by this. (Of course a larger body text is a bit harder/slower to read, but it happens often when text messaging or in a Western context). I don’t know for sure, but I suspect that Serbian is similar.

codetrotter3 years ago

> Regardless, one often ignores diacritics in writing in English/Western context

For example I think most people will write the name of the car make Škoda as Skoda.

Symbiote3 years ago

I think a lot of this is because, especially historically, people outside Czechia etc didn't know how to type Š. It's an effect of English-speaking countries defining global standards for computers, aviation and so on.

Hypothetically, and with a little exaggeration to make the point, if Sweden had somehow had that global influence in the mid-20th century, the American actress "Raquel Welch" might have been stuck with "Rakuel Velch" in her passport, and Swedish people would wonder why she was annoyed by this.

rollcat3 years ago

And that's how, (in my head,) we ended up with the international spelling of "Česko" using the Polish "cz".

shakow3 years ago

The “international” spelling is actually the English one. E.g. France and Germany respectively use “tch” and “tsch”, which correspond to the pronunciation in their languages.

desi_ninja3 years ago

It hindi language, chuda means 'get f*ckd'.

Symbiote3 years ago

Writing ČudaText rather than CudaText would help clarify it's nothing to do with Nvidia.

brundolf3 years ago

Yeah, I went in thinking I'd see some kind of wild text editor implemented entirely on the GPU

mrweasel3 years ago

Or an editor that somehow makes Cuda programming easier.

dsego3 years ago

As a croat, I don't think this works. It didn't even cross my mind that it would be miracles, a) because it's plural, b) it's combined with the english word "text", c) would be more correct to spell it with 'ch' and not just drop the diacritic d) it's a noun and not an adjective which would be more suitable.

Ballas3 years ago

Cuda is a trademark of Nvidia. I expect the outcome to be the same as if it was named NvidiaText.

thewakalix3 years ago

Nvidia doesn’t have any connection to text editors. Can Apple sue people for selling fruit under the name “apple”?

4111111111111113 years ago

They've essentially done that and won, so.... Yeah?

There was a smallish apple producer (the fruit) that used a red apple with a bite taken out that lost the right to their logo. More recently there was another recipee startup with a pear logo that apple sued

+1
Hallucinaut3 years ago
ithinkso3 years ago

They also sued polish company a.pl a few years ago because they said it sounds like 'apple' when you read it in english (.pl being of course polish TLD and it is read very differently than 'apple'). Not sure how this was resolved but the site is still up

kernelsanderz3 years ago

I clicked thinking it was some NLP project that ran on the GPU.

prvc3 years ago

>CudaText: Alternative open source version of Sublime Text

Doesn't seem to have any relation to Sublime Text. "CudaText: Free Software alternative to Sublime Text" might be a better title.

Igelau3 years ago

Or just text editor

jpe903 years ago

I'm really impressed with this so far! It's very fast and looks great. The lexer I was able to find within 30 seconds of opening it for the first time highlights Haskell code better than Sublime- I'm not seeing weird syntax errors like I do in Sublime and quasiquoting works correctly.

I immediately miss "Find in files" bound to Control P in Sublime- I didn't see similar functionality in a list of plugins https://github.com/halfbrained/cudatext_plugins_list but I may have missed it.

I've been looking for a go-to lightweight editor so I'll keep trying it out. I know some people will disagree but it doesn't quite sit right with me that Sublime charges $100 and not only relies on the community to maintain plugins, but charges those plugin maintainers as well (if they don't want to get hit with nag messages). I don't think that's really working out.

Edit: Title referred to this editor as "open source version of sublime" at the time of the writing of this comment

AlexeyTor3 years ago

The FindInFiles plugin is mentioned in that plugin list. Version 4 is better than 3.

KMnO43 years ago

> It starts quite fast: ~0.3 sec with ~30 plugins, on Linux on CPU Intel Core i3 3Hz.

That is impressive!

toredo3 years ago

Yes, especially the 3Hz. Basically, that means the editor is loaded in 1 cycle.

jerf3 years ago

CISC vs. RISC, bah! My text editor is implemented as a single CPU opcode! It's KiloMegaGigaTeraCISC.

You should see the silicon that implements the web browser instruction. KMGTCISC may not dispatch many ops per second, but what ops they are!

robertlagrant3 years ago

Implementing the LoadCudaText opcode has proven surprisingly useful.

AlexeyTor3 years ago

Fixed the homepage text. Thanks.

dflock3 years ago

Just gave this a quick try out. It's really pretty great!

It's become my new default "occasional/quick" editor. I use VSCode for work & as my "main" editor. But when I just want to edit a file, quickly - using a GUI editor, but without all the baggage/projects/etc... this is it.

etaioinshrdlu3 years ago

A little disappointed it is not massively parallel text-processing on GPUs...

ta9883 years ago

The page says it: Disclaimer: word "cuda" is taken from Serbian language, it means "miracles".

bubblethink3 years ago

Yeah, a bit odd to use cuda in the name since it's such a specific thing.

macksd3 years ago

They explain: "Disclaimer: word "cuda" is taken from Serbian language, it means "miracles"."

Right or wrong, I wouldn't be too surprised if they got a nastygram from NVIDIA's legal department at some point.

AlexeyTor3 years ago

When this will happen, I will rename the app to CudeText. I am the developer.

macksd3 years ago

I'm glad you have a plan - but I hope they leave you in peace!

ta9883 years ago

Written in Free Pascal? Fun we don't see that often.

Rd6n63 years ago

The main reason I use sublime is it’s super fast and uses very little battery. How is this in those respects?

dflock3 years ago

I just tried it, did some light testing - and it's definitely comparable to Sublime in speed.

Flex247A3 years ago

In my experience, CudaText starts up slightly faster.

81913 years ago

Unfortunately does not have the search capabilities of Sublime Text. You need a plugin for searching through files, which is a bit awkward to control (bulky key-bindings, strange result panel, etc...). That's the reason why I finally bought Sublime Text.

AlexeyTor3 years ago

The plugin can be improved, it is open source. FindInFiles does it’s job good, though.

dang3 years ago

A past thread from 2017:

CudaText: A lightweight, cross-platform code editor - https://news.ycombinator.com/item?id=13851189 - March 2017 (44 comments)

Igelau3 years ago

Wow, that animated cheetah is really giving me those late 90s vibes

nope963 years ago
Bigpet3 years ago

Neat. From the features it looked like it could've finally replaced wxMedit as my general purpose editor.

But alas there's a couple of things not quite working for me.

* re-interpreting a files encoding as UTF-16/UTF-8 doesn't seem to switch it for some reason

* no hex mode search and replace (sure you can use regex escape codes, but that's more a workaround than a solution)

* re-opening pngs/jpg other images in hex mode require re-opening the file, just dragging it into the window

* couldn't find the "search/replace in files"

AlexeyTor3 years ago

I cannot understand what your items 1, 2, 3 mean (item 4 means you didn't find the plugin FindInFiles). Please file an issue in the Github, so we can talk.

AlexeyTor3 years ago

FindInFiles plugin exists in addons. About other issues: I will check them, but you can also file a bug report on GitHub.

daptaq3 years ago

If you want all of that, and more, there is always Emacs :)

wsc9813 years ago

But why install a whole OS if all you need is a text editor?

Santosh833 years ago

Tangentially related: does Object Pascal (the language CudaText is written in) have comparable memory safety to say Rust?

pkphilip3 years ago

Freepascal is similar to C++ in that it requires the programmer to allocate and deallocate memory if you are using pointer objects.

kseistrup3 years ago

What is the relation to

    https://aur.archlinux.org/packages/cudatext-qt5-bin/
    https://aur.archlinux.org/packages/cudatext-gtk2-bin/
that is sold as “Cross-platform text editor, written in Lazarus”, but links to an entirely different URL?
nh23 years ago

That's the same software with different UI backends.

If you click the "entirely different URL", it redirects to the HN post's URL. The AUR URL is apparently the URL of the author's company, and I guess that the editor moved to its own URL now.

kseistrup3 years ago

Thanks!

bluepoint3 years ago

Interestingly enough there is no arm version for mac, but there is a version for Haiku.

cwp3 years ago

That's open source for you. I once worked on a project that had RiscOS as a first-class platform, and I was pretty sure that the maintainer was the only user of RiscOS in the world.

legends2k3 years ago

Good to see a light weight editor. Another bloat-free editor I've my eye on is lite [1].

[1]: https://github.com/rxi/lite

geokon3 years ago

A bit tangential.. but can anyone recommend some good resources on writing a (emacs-like) text editor? I'm curious how they look architecturally

teddyh3 years ago

You want this:

The Craft of Text Editing

—or—

Emacs for the Modern World

–by–

Craig A. Finseth

https://www.finseth.com/craft/

geokon3 years ago

looks awesome. thank you

e3bc54b23 years ago

Maybe uEmacs source[0] will help? Torvalds still uses it according to his last interview..

[0] https://github.com/torvalds/uemacs

stoicjumbotron3 years ago

Is there any good guide on how to set up LSP for autocomplete for react/jsx or plain js in CudaText? I really want to give this a try.

AlexeyTor3 years ago
rajandatta3 years ago

Anyone known if CudaText has features to edit Lisp or Scheme family of languages? Will be checking out the project.

AlexeyTor3 years ago

Yes, both lexers are present in the Addons Manager.

scambier3 years ago

There a Lisp lexer, and that's it, it seems.

olivertap693 years ago

Yes