Live data from Hacker News

Show HN: Primrose – a text editor that runs in a WebGL texture

primroseeditor.com

91–100 of 105 posts

Re: Show HN: Primrose – a text editor that runs in a WebGL texture

#91

Earlier quoted context omitted.

I'm the same way, so I can relate to your pain. I've had this happen before with Chrome/Chromium with hundreds of tabs. I now use Firefox for two reasons: One, the UI is better than Chrome/Chromium with hundreds of tabs active, and two I now simply periodically clear out long term tabs when I no longer have an immediate need for them by bookmarking them. My friends think I'm insane by keeping so many tabs open. Maybe…

Check out an extension called OneTab. You will LOVE it!

It looked very intriguing, and I installed it, but the reviews for the Firefox version are really terrible. Just a heads up in case someone should also install the addon, but not catch the bad reviews.

Re: Show HN: Primrose – a text editor that runs in a WebGL texture

#92
post #72
post #44

Just a warning, if you try this while using Safari it might crash and close all of your tabs somehow. And it might make it so that you can't reopen those tabs despite the fact that you have tabs set to be restored each session. And you may in fact experience the acute pain of losing a year's worth of painstakingly accumulated tabs. Not that this has happened to me.

Safari has this feature called Reading List, you should look into it.

Reading List is annoying to use and inferior to tabs.

Re: Show HN: Primrose – a text editor that runs in a WebGL texture

#93

Earlier quoted context omitted.

Thanks. You can see it at https://github.com/shurcooL/Conception-go#screenshot , but it's less than 10% finished at this point. Everything you see is rendered in OpenGL. The text editing component has syntax and diff highlighting support. It's written in Go, but I'm planning to have it running in the browser by compiling Go to JS and using OpenGL bindings with two backends: WebGL and OpenGL. In terms of usability, it…

I thought I recognized your user name. I had looked at Conception a little while ago. It's a neat project and I'm looking forward to seeing more of what you do with it. Yeah, I have written everything so far in plain JavaScript. I've been considering something else, but all of the available options seem a tad... monolithic. If I'm going to not-javascript, then I think the answer is to go to something that is complete…

> If I'm going to not-javascript, then I think the answer is to go to something that is completely type safe and static, instead. I'd really like to be able to write-once-and-run-desktop-and-browser. I used to do C++, and now there is Emscripten, but I'd really rather not get back into C++ again.

I agree completely, about type safe, static types, and not wanting to get back to the mess of C++ (header files, makefiles, ifdefs, complexity, etc.).

Which is why I think Go fits the bill so well.

> Go looked interesting, and there seems to already be a fair amount of work towards transpiling to JS.

There is indeed. I've already done quite a lot with it, but with smaller side projects for now. That's where I gained the confidence and I will work towards applying it to my main projects now.

I can link you to https://github.com/shurcooL/play/commit/e53557dd9c070ce0ec52.... You can look at the latest code, it's all in a single main.go file, and it runs great in the browser.

Re: Show HN: Primrose – a text editor that runs in a WebGL texture

#94
post #20

Earlier quoted context omitted.

We use forever for this: https://github.com/foreverjs/forever forever -w start yourFile.js That'll keep it up and going as a daemon and reboot it when files change :)

No, that's not the issue. I actually am using forever. I'm not entirely sure what the problem was, but I think the entire VPS was falling over, so when it comes back there is nothing to kick off forever. It is fixed, now, though, by letting Apache serve the static files. I'm not a sysadmin and I've never had anywhere near this much traffic before.

Ah, perhaps setting up an @reboot cron job to kick off the forever process would do the trick.

Also, setting up a CDN in front of your static files is actually much easier than it sounds at first. You can just setup a Cloudfront distribution that uses your domain as its source; that should take off a lot of the load.

Re: Show HN: Primrose – a text editor that runs in a WebGL texture

#95

Earlier quoted context omitted.

I thought I recognized your user name. I had looked at Conception a little while ago. It's a neat project and I'm looking forward to seeing more of what you do with it. Yeah, I have written everything so far in plain JavaScript. I've been considering something else, but all of the available options seem a tad... monolithic. If I'm going to not-javascript, then I think the answer is to go to something that is complete…

> If I'm going to not-javascript, then I think the answer is to go to something that is completely type safe and static, instead. I'd really like to be able to write-once-and-run-desktop-and-browser. I used to do C++, and now there is Emscripten, but I'd really rather not get back into C++ again. I agree completely, about type safe, static types, and not wanting to get back to the mess of C++ (header files, makefiles…

Awesome, I'll check it out. You may have just convinced me to pick up Go.

Re: Show HN: Primrose – a text editor that runs in a WebGL texture

#96

Earlier quoted context omitted.

> If I'm going to not-javascript, then I think the answer is to go to something that is completely type safe and static, instead. I'd really like to be able to write-once-and-run-desktop-and-browser. I used to do C++, and now there is Emscripten, but I'd really rather not get back into C++ again. I agree completely, about type safe, static types, and not wanting to get back to the mess of C++ (header files, makefiles…

Awesome, I'll check it out. You may have just convinced me to pick up Go.

Glad to hear it! :)

Feel free to ping me with any questions you may run into (like what are best packages to use, or anything else) and I'll happily help out!

Re: Show HN: Primrose – a text editor that runs in a WebGL texture

#97

Earlier quoted context omitted.

There are definitely people working on it, but I don't think the resolution is going to be there for text editing in the first (or even second) generation Rift. That said, take a look at these: http://www.reddit.com/r/oculus/comments/2hbktl/best_virtual_...

This issue is actually where the idea came from to put the text on the inside of a sphere. I wanted to make a VERY big text field, so that I could fit a good amount of text on the object at a font size large enough to read the text well. At that size, the edges of a rectangular window are so much further away from the viewer that there is significant distortion. The sphere makes for a much more comfortable viewing an…

Ah, interesting approach! I'd been stuck thinking about it in terms of replicating my standard multi-monitor setup in VR, but without the physical constraints of my desk and the manufacturing costs of large panels, there's really no need to set it up that way. Neat!

Re: Show HN: Primrose – a text editor that runs in a WebGL texture

#98
post #52

This is so cool. Very interesting as an idea, hard to explain without seeing it I almost didn't click. Side note: I tried to load this on Chrome for Android and it went very badly. I got redirected through two of those bright red "UNSAFE YOU SHALL NOT PASS" https pages and then finally got to a page that didn't do much at all. No idea why, worked fine in Chrome on OS X.

There are no overt technical reasons it won't run on Android. At one point, I did have it running in Chrome and Firefox on Android, but I had a lot of difficulty getting it to run without regularly crashing the browser and bombing out to the home screen. I don't know if that is an Android issue or a Galaxy Note 3 issue, but it was pretty reliably reproduceable in both browsers with just a "load this page, now refresh…

Thanks for the very detailed response, I hope you didn't take my comment to be negative! This is an awesome project, it's just kind of a tradition on Hacker News to point out bugs (even small ones on great things) because this is a technical audience.

Re: Show HN: Primrose – a text editor that runs in a WebGL texture

#99
post #98

Earlier quoted context omitted.

There are no overt technical reasons it won't run on Android. At one point, I did have it running in Chrome and Firefox on Android, but I had a lot of difficulty getting it to run without regularly crashing the browser and bombing out to the home screen. I don't know if that is an Android issue or a Galaxy Note 3 issue, but it was pretty reliably reproduceable in both browsers with just a "load this page, now refresh…

Thanks for the very detailed response, I hope you didn't take my comment to be negative! This is an awesome project, it's just kind of a tradition on Hacker News to point out bugs (even small ones on great things) because this is a technical audience.

No, no. Just thought it was a good opportunity to explain.

Re: Show HN: Primrose – a text editor that runs in a WebGL texture

#100

Earlier quoted context omitted.

I'm the same way, so I can relate to your pain. I've had this happen before with Chrome/Chromium with hundreds of tabs. I now use Firefox for two reasons: One, the UI is better than Chrome/Chromium with hundreds of tabs active, and two I now simply periodically clear out long term tabs when I no longer have an immediate need for them by bookmarking them. My friends think I'm insane by keeping so many tabs open. Maybe…

Check out an extension called OneTab. You will LOVE it!

Gotta admit. I've been using Session Manager [1] for years. It's a bit clunky, but it works pretty well once you figure out the UI for saving tab sets. It appears the primary complaints also revolve around its poor UI, but hey, I'm used to it. ;)

[1] https://addons.mozilla.org/en-US/firefox/addon/session-manag...

Post reply on HN