Home Download Buy Blog Forum Support

To stay or to leave of this community..

Re: To stay or to leave of this community..

Postby Stubblechunks on Thu Jun 13, 2013 2:26 pm

hsu wrote:Also, LightTable (another editor w/ another spirit) uses node-webkit, which might be worth looking, but I'm not sure if you could achieve great performance with it.


I know JavaScript runtimes have come a long way, and if you take away Internet latency, an HTML/JS app might feel reasonably snappy on a good machine. But you could never hope to emulate compiled C/C++. Lighttable seems to be trying a pretty different concept, and perhaps that different concept can make up for the loss of speed. But reverse-engineering Sublime, which has "fast" way up there on its list of key features, seems like a heavy lift.
Stubblechunks
 
Posts: 24
Joined: Wed Apr 24, 2013 8:35 pm

Re: To stay or to leave of this community..

Postby schlamar on Thu Jun 13, 2013 3:13 pm

This looks nice, too: http://ninja-ide.org/
schlamar
 
Posts: 106
Joined: Tue Feb 19, 2013 2:11 pm

Re: To stay or to leave of this community..

Postby quarnster on Thu Jun 13, 2013 3:17 pm

hsu wrote:quarnster, great idea :) But wouldn't choosing the exact same technology as Jon (C++ + Python) be a surer way to build a cross-platform editor?

It's using some of the exact same technology via python3 and oniguruma. I avoid C++ like the plague nowadays for my own sparetime coding.

hsu wrote:Is ST internals explained somewhere?

Not really, but much of the extensibility that users are exposed to is documented (much of it by third parties!). Oniguruma was mentioned for textmate compatibility somewhere in the forums, so that's what I'm using too. I believe pango and cairo have been mentioned for font rendering. I'm sure you can figure out lots more via "strings sublime_text" if you really care.

Stubblechunks wrote:I know JavaScript runtimes have come a long way, and if you take away Internet latency, an HTML/JS app might feel reasonably snappy on a good machine. But you could never hope to emulate compiled C/C++.


Actually JITed code has potential for some complex runtime analysis which can make code faster than compiled C/C++.

But reverse-engineering Sublime, which has "fast" way up there on its list of key features, seems like a heavy lift.


I find this quote silly. ST isn't faster than other editors, in fact it's very much possible to do operations much slower in ST (a somewhat recent thread about loading huge log files spring to mind). ST's edge performance wise is in its rendering performance compared to other editors and that needs no reverse-engineering.
quarnster
 
Posts: 389
Joined: Tue Nov 29, 2011 11:34 am

Re: To stay or to leave of this community..

Postby schlamar on Thu Jun 13, 2013 3:47 pm

quarnster wrote: I believe pango and cairo have been mentioned for font rendering.

"Graphics rendering ported to Skia from Cairo" (Build 3034).

quarnster wrote: I avoid C++ like the plague nowadays for my own sparetime coding.

I agree. However Go + Qt feels more than experimental, especially in regard of cross-platform support. Maybe you want to reconsider the choice of the toolkit and language for the frontend?
schlamar
 
Posts: 106
Joined: Tue Feb 19, 2013 2:11 pm

Re: To stay or to leave of this community..

Postby mark4 on Thu Jun 13, 2013 4:57 pm

the developer is a quiet, private person, with awesome developer skills and no (time for?) social skills... so your going to go crying to mommy and getting a different editor?

dont let the door.. .. .
mark4
 
Posts: 98
Joined: Sat Feb 11, 2012 3:33 am

Re: To stay or to leave of this community..

Postby quarnster on Thu Jun 13, 2013 8:29 pm

quarnster wrote: I avoid C++ like the plague nowadays for my own sparetime coding.

I agree. However Go + Qt feels more than experimental, especially in regard of cross-platform support. Maybe you want to reconsider the choice of the toolkit and language for the frontend?


I'm in no way committed to Qt, in fact the Qt front end is much more broken than the termbox one. Any frontend I work on I intend to keep as slim as possible as all the important bits should be handled by the backend itself and thus be front end agnostic. If you want to make a different front end or port all code to a different language you are welcome to maintain your own fork as the 2 clause bsd license allows. My language of choice for code I work on my spare time will remain Go until I stumble upon something I deem better for me.
quarnster
 
Posts: 389
Joined: Tue Nov 29, 2011 11:34 am

Re: To stay or to leave of this community..

Postby hsu on Thu Jun 13, 2013 9:20 pm

Subilme is native (ported) in the 3 main OSes, right? A layer that is platform specific and John doesn't reuse from one OS to the other.

Though its more work, for the end-user it seems much better a cross-platform application based in Qt.
hsu
 
Posts: 25
Joined: Fri Feb 01, 2013 4:14 pm

Re: To stay or to leave of this community..

Postby adzenith on Fri Jun 14, 2013 4:44 pm

quarnster wrote:
adzenith wrote:Let me know if you figure it out! I'm still reading about Go, trying to figure out why expression.EXPRESSION should make sense.

You'll need to:
Code: Select all
cd $GOPATH/src/github.com/quarnster/completion/build
go run build.go

Some unit tests in this step might fail depending on their quality (ie how specific they are to my installation), but they are safe to ignore. I've updated the readme with this info.

Thanks for the help! I got it building with the updated steps (though I think I needed to add "go get github.com/howeyc/fsnotify").
I tried opening the termbox front end, and it appears to hang after inserting one character. Any troubleshooting tips? The console doesn't seem to say anything untoward, and the debug.log ends in:
[2013/06/14 12:07:11 EDT] [FINE] (lime/backend.(*commandHandler).RunTextCommand:61) Running text command: insert map[characters:a]
[2013/06/14 12:07:11 EDT] [FNST] (lime/backend.ViewEvent.Call:31) ViewEvent
[2013/06/14 12:07:11 EDT] [FINE] (lime/backend.(*commandHandler).RunTextCommand:73) Ran text command: insert 52.799us
[2013/06/14 12:07:11 EDT] [FNST] (main.(*tbfe).renderthread:381) Rendering
[2013/06/14 12:07:11 EDT] [FNST] (main.(*tbfe).renderthread:381) Rendering
adzenith
 
Posts: 1215
Joined: Mon Oct 19, 2009 9:12 pm

Re: To stay or to leave of this community..

Postby quarnster on Fri Jun 14, 2013 5:26 pm

adzenith wrote:I tried opening the termbox front end, and it appears to hang after inserting one character. Any troubleshooting tips?


Do other operations work fine like the vintage movement commands hjkl or is it just broken when inserting a character?

Only thing that rings a bell is Go issue 5287 which impacts termbox's key input handling (so if it's that bug, you should see a hang eventually for other commands). My local Go's been patched with the osx fix posted in that bug, but there's no fix for other os's IIRC. If it is indeed that bug besides pinging the bug for a status update, maybe there's some compilation or runtime option to make python not call sigaltstack as a short term work around?
quarnster
 
Posts: 389
Joined: Tue Nov 29, 2011 11:34 am

Re: To stay or to leave of this community..

Postby adzenith on Mon Jun 17, 2013 10:33 pm

I can press j like five times before it hangs. Maybe I just need to patch my go.
adzenith
 
Posts: 1215
Joined: Mon Oct 19, 2009 9:12 pm

PreviousNext

Return to General Discussion

Who is online

Users browsing this forum: Google [Bot] and 33 guests