Re: Deadcode: A code editor in D
On Saturday, 17 January 2015 at 16:54:32 UTC, Jonas Drewsen wrote: It you have thoses dependencies already then why not use gtksourceview for the editor stuff? Sure, but then I'd miss all the fun, as you said below: It took me quite some time to do that ie. undo/redo system, text layout, highlight system, navigation, text anchors, efficient text and line gapbuffers etc. You get that for free with gtksourceview. I'm liking to play around with all these stuff. I'm writing this editor very slowly, a bit every weekend or when I've free time. :) Matheus.
Re: typescript plugin for vibe.d diet templates
First, creating temporary files with predictable names is a bad idea, because it opens the door for symlink attacks. Unfortunately, I don't know of an alternative way to do this safely using only the standard library; it seems, this crucial functionality is missing. I've asked here: TypeScript compiler doesn't accept stdin pipes, I tried using Unix fifo but since I'm not an Unix expert, couldn't figure it out. The last thing was using a temporary file -- which also sounds not good to me :) The second thing is that you're using `pipeShell()`, which takes only the entire command as a parameter. Because this command will be interpreted by the shell, you have to make sure that all you're arguments are correctly escaped. However, in your case you don't actually need a shell; `pipeProcess()` is a better solution, because it takes the argument list as an array: auto pipes = pipeProcess( [tsc, inputFileName, --out, outputFileName], Redirect.stderrToStdout | Redirect.stdout ); It really makes sense, I'm going to update -- you also can open a PR. I met the language yesterday, I wrote the package yesterday :) I don't know internals, but when I learn them, (which is happening by now) going to fix it, Thanks for your detailed comments! :)
Re: Heady House Hunting with D
On Wednesday, 14 January 2015 at 03:46:39 UTC, Philpax wrote: Hey everyone, I recently wrote a blog post about how I used D/vibe.d to help find a new house. I haven't publicized it anywhere else yet, so I'm looking forward to what the D community has to say! You can check it out here: http://philpax.me/blog/heady-house-hunting-with-d D made it easy to model the problem and quickly crunch through it; I'm pretty happy with how quickly I was able to get decent results. It's not the most idiomatic of code, but D's flexibility meant that I could concentrate on the concept instead of the implementation details. Thanks, Philpax Any plans to post this to Reddit/Hackernews?
Re: Heady House Hunting with D
On 1/17/15 12:18 PM, Meta wrote: On Wednesday, 14 January 2015 at 03:46:39 UTC, Philpax wrote: Hey everyone, I recently wrote a blog post about how I used D/vibe.d to help find a new house. I haven't publicized it anywhere else yet, so I'm looking forward to what the D community has to say! You can check it out here: http://philpax.me/blog/heady-house-hunting-with-d D made it easy to model the problem and quickly crunch through it; I'm pretty happy with how quickly I was able to get decent results. It's not the most idiomatic of code, but D's flexibility meant that I could concentrate on the concept instead of the implementation details. Thanks, Philpax Any plans to post this to Reddit/Hackernews? http://www.reddit.com/r/programming/comments/2sf48d/heady_house_hunting_with_d_xposted_rd_language/ Andrei
Re: Deadcode: A code editor in D
On Friday, 16 January 2015 at 21:19:08 UTC, Jonas Drewsen wrote: I have been working on an editor written in D for use with D for some time now and have made a blog post about it. Any feedback or suggestions are welcome. http://deadcodedev.steamwinter.com Thanks Jonas This looks interesting. It would be really nice to be able to view the source for this, even if it comes with massive beta quality, subject to change/incomplete caveats everywhere.
Re: DConf 2015 discounted hotel rooms now available
On 1/16/2015 2:17 PM, Steven Schveighoffer wrote: Note: I didn't realize this originally, but when I booked my flight, the prices are much higher than they should be, and less availability. I realized the reason why -- Monday is Memorial Day in the US, just about everyone has it off. Just a heads up to those booking travel. BTW, because of the less choice, I had to fly in Monday to avoid getting there at 12 am Wednesday. I'll be there all day Tuesday if anyone wants to hang out. I just booked my flight, car hotel. Things aren't too bad from Seattle, but I still recommend to people to book as early as possible. I should arrive Tuesday late afternoon.
typescript plugin for vibe.d diet templates
a friend of mine liked d so much -you know, after i show off all the kewl features :)- he just built a typescript plugin for vibe.d diet templates. it's a fork of martin's coffeescript plugin. https://github.com/f/diet-typescript for the uninformed, typescript is a typed superset of javascript that compiles to plain old javascript. more info can be reached at www.typescriptlang.org.
Re: Deadcode: A code editor in D
On Friday, 16 January 2015 at 21:19:08 UTC, Jonas Drewsen wrote: I have been working on an editor written in D for use with D for some time now and have made a blog post about it. Any feedback or suggestions are welcome. http://deadcodedev.steamwinter.com Thanks Jonas Nice. Atila
Re: Deadcode: A code editor in D
On Saturday, 17 January 2015 at 06:14:12 UTC, Jonas Drewsen wrote: Do you have some info/link to your editor? I'm currently writing in D using GtkD (http://code.dlang.org/packages/gtk-d), and using Cairo to manage the text drawing. It will not have a menu, just a console at bottom. I'm wanting it to be simple with some features that I like most and the keybindings that fit in my Dvorak layout better. I'll release it at some point, but I want to polish more before that. :) Matheus.
Re: typescript plugin for vibe.d diet templates
On Saturday, 17 January 2015 at 11:26:40 UTC, Mengu wrote: a friend of mine liked d so much -you know, after i show off all the kewl features :)- he just built a typescript plugin for vibe.d diet templates. it's a fork of martin's coffeescript plugin. https://github.com/f/diet-typescript for the uninformed, typescript is a typed superset of javascript that compiles to plain old javascript. more info can be reached at www.typescriptlang.org. Nice work, but I have some gripes with it: First, creating temporary files with predictable names is a bad idea, because it opens the door for symlink attacks. Unfortunately, I don't know of an alternative way to do this safely using only the standard library; it seems, this crucial functionality is missing. I've asked here: http://forum.dlang.org/thread/xliylzcxrsfilmqsn...@forum.dlang.org The second thing is that you're using `pipeShell()`, which takes only the entire command as a parameter. Because this command will be interpreted by the shell, you have to make sure that all you're arguments are correctly escaped. However, in your case you don't actually need a shell; `pipeProcess()` is a better solution, because it takes the argument list as an array: auto pipes = pipeProcess( [tsc, inputFileName, --out, outputFileName], Redirect.stderrToStdout | Redirect.stdout );
Re: Deadcode: A code editor in D
On Sat, 17 Jan 2015 06:34:10 + Jonas Drewsen via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On Friday, 16 January 2015 at 21:41:39 UTC, ketmar via Digitalmars-d-announce wrote: On Fri, 16 Jan 2015 21:32:32 + Jonas Drewsen via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: It is currently only compiling on linux and I haven't tried to start it there. It is based on libsdl so I don't see much trouble in getting it to work. so it's using it's own ttf renderer (or SDL_ttf)? ah, too bad for me. :-( It is using SDL_ttf to render glyphs to fontmaps. I use these together with opengl in the text layout engine to get the final result. I'll probably open source it when it is out of beta. may i ask why don't you go with open source from the start? i'm not insisting on anything, i'm just curious. It started out on my own github server with a lot of expermentation that didn't make sense to share and it just wasn't a priority to open source it before it was ready. i see. thank you for your answers. signature.asc Description: PGP signature
Re: Deadcode: A code editor in D
On Saturday, 17 January 2015 at 13:32:37 UTC, MattCoder wrote: On Saturday, 17 January 2015 at 06:14:12 UTC, Jonas Drewsen wrote: Do you have some info/link to your editor? I'm currently writing in D using GtkD (http://code.dlang.org/packages/gtk-d), and using Cairo to manage the text drawing. It you have thoses dependencies already then why not use gtksourceview for the editor stuff? It took me quite some time to do that ie. undo/redo system, text layout, highlight system, navigation, text anchors, efficient text and line gapbuffers etc. You get that for free with gtksourceview. It will not have a menu, just a console at bottom. I'm wanting it to be simple with some features that I like most and the keybindings that fit in my Dvorak layout better. The Menu button will be different in the final version and maybe hidden by default. I am used to emacs keybindings myself but have designed it around being able to use either emacs, vi or standard bindings. I'll release it at some point, but I want to polish more before that. :) I known the feeling :)