News for hackers. Stuff that matters.
Re:TKE: Modern Tcl/Tk-based text editor by SwellJoe on Wednesday November 21, 2018 @02:18AM (#18500764)
I remember when I used to cringe that an application was built with Tcl/Tk because it would be very slow and need quite a bit more memory than a similar application written in C or C++. But, today, I suspect this editor is an order of magnitude faster and an order of magnitude smaller than Atom or VSCode (this is purely speculation, of course...but, I feel like it's a reasonable hunch, based on my experience with Tcl/Tk in the past).
Re:TKE: Modern Tcl/Tk-based text editor by mhd on Wednesday November 21, 2018 @02:48AM (#18500881)
Not like C/C++ applications go easy on memory these days, either. When GUI libraries include CSS and JavaScript interpreters, suddenly MFC and Motif look less bloaty…

Never mind Java editors/IDE, which are pretty much standard these days.

Re:TKE: Modern Tcl/Tk-based text editor by Longhanks on Wednesday November 21, 2018 @04:41AM (#18501357)
The only "standard" full-fledged IDEs I can think of that are Java are IntelliJ and Eclipse. Visual Studio (WPF), Xcode (Cocoa), Qt Creator (Qt), KDevelop (KDE Frameworks/Qt), GTK Builder (GTK) are all built with their platform's native toolkit.

Concerning text editors, I think that field is split between Electron-based, Sublime and terminal-based editors. I can't picture users writing in Java editors in 2018.

Re:TKE: Modern Tcl/Tk-based text editor by thrower123 on Wednesday November 21, 2018 @05:23AM (#18501521)
> Concerning text editors, I think that field is split between Electron-based, Sublime and terminal-based editors

There is still the whole family of Scintilla-based editors out there. I use Notepad++ and Geany all the time.

https://en.m.wikipedia.org/wiki/Scintilla_(software)

Re:TKE: Modern Tcl/Tk-based text editor by mhd on Wednesday November 21, 2018 @05:30AM (#18501545)
Let me clarify that, with "standard" I didn't mean exclusive, just that running a Java IDE ain't exactly exotic or weird. IntelliJ and its variants alone are a good share of the market.
Re:TKE: Modern Tcl/Tk-based text editor by adl on Wednesday November 21, 2018 @05:56AM (#18501710)
Pycharm, Webstorm, Goland and Intellij, are some of the most used IDEs, all Java based.
Re:TKE: Modern Tcl/Tk-based text editor by laumars on Wednesday November 21, 2018 @06:05AM (#18501753)
That's a little disingenuous because they're all JetBrains IDEs and thus are just variations of IntelliJ
Re:TKE: Modern Tcl/Tk-based text editor by rhodysurf on Wednesday November 21, 2018 @10:30AM (#18503372)
Those are all basically the exact same application
Re:TKE: Modern Tcl/Tk-based text editor by hansen on Wednesday November 21, 2018 @02:28AM (#18500796)
And all those Emacs jokes don't work anymore
Re:TKE: Modern Tcl/Tk-based text editor by oblio on Wednesday November 21, 2018 @05:03AM (#18501438)
I don't use Emacs, but those Emacs jokes kind of stopped when having 64MB of memory became common. So circa 2000 :)
Re:TKE: Modern Tcl/Tk-based text editor by bhaak on Wednesday November 21, 2018 @06:16AM (#18501804)
Yeah, my current Emacs session is using 2 GB of RAM and that is considered low memory usage these days.
Re:TKE: Modern Tcl/Tk-based text editor by dwringer on Wednesday November 21, 2018 @09:48AM (#18503034)
I don't think that kind of memory usage is necessarily common - I get sessions that grow for whatever reason but typically I can have several emacs instances running at once using less than 100MB each - the ones I treat like notepads are often less than 10MB.
Re:TKE: Modern Tcl/Tk-based text editor by tyingq on Wednesday November 21, 2018 @09:55AM (#18503097)
"the ones I treat like notepads are often less than 10MB"

Interesting. That's not much off the old "eight megs and constantly swapping" joke.

Re:TKE: Modern Tcl/Tk-based text editor by nine_k on Wednesday November 21, 2018 @10:04AM (#18503166)
Hmm, why would one run several emacs instances? Emacs supports the client-server model, which I find very convenient and fast. Basically having `EDITOR="emacsclient -n"` allows you to use the one emacs everywhere.
Re:TKE: Modern Tcl/Tk-based text editor by dwringer on Wednesday November 21, 2018 @10:07AM (#18503191)
I run them with different color themes and fonts (randomly chosen from a list on startup) so I can instantly see which window is being used for which project (I juggle several at work - I also take advantage of Windows 10's virtual desktops so get them spread out all over the place). If one of them goes haywire I don't feel bad about killing it since the others remain unaffected, so I never really considered using just a single server instance. Since I don't run out of memory and have CPU cycles to spare most of the time, it works well enough for my current needs.

I also tend to run the windows with partial transparency so I can see bits and pieces of other sessions/browsers/etc behind them - something I was slightly hesitant to start doing but that has made using the computer feel much more "lightweight" (for lack of a better term). I've found it surprisingly useful to have emacs show a second buffer slightly faded directly through the first one.

Re:TKE: Modern Tcl/Tk-based text editor by jolmg on Wednesday November 21, 2018 @12:51PM (#18504518)
I too, for a time, had setup my system so that windows were partially transparent. It looked cool, and helped to find windows when they were hidden behind other ones. Then, one day, I turned the partial transparency off, and found it to be very relaxing on my sight and brain. I didn't feel any strain when I started, but I guess it accumulated.

For context, I use a tiling window manager with an average of 4 to 7 windows per workspace-monitor combo. Back then, I also set up a moving background (a screensaver always on in the root window). In fact, I think that was the primary motivator. I had gone years without a wallpaper because having a tiling window manager made it meaningless and I was missing having some eye candy. Having partial transparency would let me see the moving background through the windows. Anyway, I digress and I'm back to no transparency, no background, in any case.

Re:TKE: Modern Tcl/Tk-based text editor by nine_k on Wednesday November 21, 2018 @02:18PM (#18505227)
The best setup I had was the focused window having 100% opacity, and other windows, say, 80%. Worked wonderfully under Linux.

Unfortunately, I had to switch to a Mac as my main machine, and OSX does not support that (and has pretty poor window management in general).

Re:TKE: Modern Tcl/Tk-based text editor by cjallen88 on Wednesday November 21, 2018 @03:41AM (#18501104)
Yeah these days TCL is JITed too, which will certainly help
Re:TKE: Modern Tcl/Tk-based text editor by f0r on Wednesday November 21, 2018 @04:01AM (#18501195)
It isn't JITed, I think you are thinking of byte code compilation.
Re:TKE: Modern Tcl/Tk-based text editor by snaky on Wednesday November 21, 2018 @02:52PM (#18505474)
It's compiled in byte code, yes, but on-demand, so it's JIT.