Re: typescript plugin for vibe.d diet templates
On 01/17/2015 10:24 AM, Fatih Kadir Akin wrote: I met the language yesterday, I wrote the package yesterday :) I'm in awe! :) Ali
Re: Heady House Hunting with D
On Saturday, 17 January 2015 at 21:41:15 UTC, Andrei Alexandrescu wrote: 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 maybe we should just link the main websites when creating reddit links instead of the forum?
Re: Heady House Hunting with D
On Friday, 16 January 2015 at 18:44:47 UTC, Robert M. Münch wrote: On 2015-01-14 03:46:38 +, Philpax said: 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 Cool stuff! I saw this: With real data, this produced a list of ~40 houses with all relevant information included Well, my company is doing a mathematics based pricing analysis based on properties (an enhanced multi dimensional regression analysis approach). See: http://www.nlpp.ch So, if you want to see how the prices shouldbe and which criteria drives the costs, let me know. Houseprices would be a nice showcase I wanted to do for some time. I'd definitely like to see this. I wanted to try out something similar, but working with unsold houses meant that all the data was in flux (especially price). A more detailed analysis based upon already-sold houses would be quite interesting!
Re: Heady House Hunting with D
On Friday, 16 January 2015 at 20:20:56 UTC, Vladimir Panteleev 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. Heh, I wrote something similar (much much simpler) to find the best hotel for DConf 2013. The program extracted the hotel's geographical coordinates, and then queried the Google Maps API to find the one that had the shortest public transit time assuming we wanted to arrive at 8:30 AM. Since then, I started doing it for all important purchases - TV, AC unit, laptop... The laptop program used a score model like yours. The biggest issue is that it's hard to find accurate information on household hardware, especially since there are a myriad models for each tiny European market. Here's the hotel program (list.txt is a list of booking.com URLs): http://dump.thecybershadow.net/2ebca3f47b801aed0104585f60b9587e/scan.d By the way, does your blog have a RSS feed for D posts? Then I could add it to Planet D. Heh, good to know that other people have taken similarly clever approaches to decision making :) I don't have a D-specific RSS feed (my blog's fairly simple, since I haven't written many posts) but I have one for all posts: http://philpax.me/news.rss. In the future, I'll consider adding categories and category-specific RSS feeds.
Re: Heady House Hunting with D
On Sunday, 18 January 2015 at 13:06:06 UTC, Mengu wrote: On Saturday, 17 January 2015 at 21:41:15 UTC, Andrei Alexandrescu wrote: 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 maybe we should just link the main websites when creating reddit links instead of the forum? I would've preferred that, as I wanted to screen it by the D community before having it linked to elsewhere. Not a huge deal, though.
Re: typescript plugin for vibe.d diet templates
On 2015-01-17 19:24, Fatih Kadir Akin wrote: 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 :) How about embedding the TypeScript compiler and call it from D, perhaps using DMDScript [1]. [1] http://code.dlang.org/packages/dmdscript -- /Jacob Carlborg
Re: typescript plugin for vibe.d diet templates
On Saturday, 17 January 2015 at 18:24:52 UTC, Fatih Kadir Akin wrote: 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 :) I was going to make a PR to use pipes, but also found that `tsc` sadly doesn't support stdin/stdout. But they have an as-of-yet unimplemented enhancement request; they probably wouldn't refuse a PR: https://github.com/Microsoft/TypeScript/issues/1226 As for FIFOs, they unfortunately don't work on Windows... (and NTFS _does_ support symlinks!) 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. https://github.com/f/diet-typescript/pull/1
Re: Heady House Hunting with D
On 1/18/15 5:06 AM, Mengu wrote: On Saturday, 17 January 2015 at 21:41:15 UTC, Andrei Alexandrescu wrote: 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 maybe we should just link the main websites when creating reddit links instead of the forum? Makes sense, but the one way to ensure that is to just do it. -- 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 Hi, This is an impressive work. I's really nice to see a presentation of how much help can be provided from the D editor and existing language labiaries. I have several questions as well: 1. Was the libdparser integrated with extension system or is it embedded in the core? 2. What are the dependencies? 3. How hard it would be to change the feellook of the gui as it is in conventional editors (Visual, MonoDeveop, GtCreator, Eclipse). I mean menus, buttons, views etc? Cheers, Piotrek