January 30, 2006 Re: Interesting language comparison on Digg | ||||
---|---|---|---|---|
| ||||
Posted in reply to Charles | "Charles" <noone@nowhere.com> wrote in message news:drlds5$7a1$1@digitaldaemon.com... > Yea I feel your pain. I've kind of given up actively plugging D, its just taking so long. Hopefully before 2009 ( C++0x ) we will have a 1.0. ;-/ > Id like to see the compile time regex lib before I say yes or no to built > in > regex's , but I guess builtin couldnt really hurt the language. Sure. My position is not that D has to have built-in regex, just that if it doesn't then it can't hope to be a serious alternative to Perl and Ruby. > On a side note I read that article in one of the other posts comparing > ruby/c++/python/java -- and after looking at the source code for the > examples, ruby looks uber! I definetly want to give it a try now -- > having > retired perl long ago. It is indeed great. The thing that "worries" me is that I learned everything I know about it in the first two days, and that I've not learned anything since. This either means I'm missing out on a huge amount of stuff, or it's just as simple and easy as it seems. Most of my scripts use recls/Ruby, which is as simple as: require 'recls' fs = Recls::FileSearch::new("h:/stlsoft", "*.hpp|*.h", Recls::FILES | Recls::RECURSIVE) fs.each \ { |fe| lines = IO::readlines(fe.path) lines.each_with_index \ { |line, index| line.chomp! if line =~ / blah blah blah / lines[index] = blah2 blah2 blah2 end } if bChanged f = File::new(fe.path, "w") lines.each { |line| f << line << "\n" } f.close puts "Processed #{fe.path}" end } This is the basic form of my scripts, with which I can effect changes to hundreds/thousands of source files in one go. It's really really useful. (I'd love to be doing the same in D, but ...) |
January 30, 2006 Re: copy/paste XP cmd | ||||
---|---|---|---|---|
| ||||
Posted in reply to Regan Heath |
----- Original Message -----
From: "Regan Heath" <regan@netwin.co.nz>
Newsgroups: digitalmars.D
Sent: Tuesday, January 31, 2006 7:41 AM
Subject: OT: copy/paste XP cmd
> On Mon, 30 Jan 2006 17:47:31 +1100, Matthew <matthew@stlsoft.com> wrote:
>> Look, it's like this. I use the 2000 boot of my Windows machine in preference to the XP for basically one reason: I can select text from command boxes without first having to do Alt-Space E K, which I find incredibly tiresome when I've already been incovenienced by having to use the damn mouse. The other influencing factor is the fact that XP is a steaming heap of omni-crashing shite, but it's really just the usability of the command-box. I know it's crazy, but it's the truth.
>
> Have you tried "QuickEdit mode"?
> (left-click the upper left corner of a cmd window, choose properties,
> choose options, tick "QuickEdit mode")
>
> Now you can select and paste with the mouse, left-click-drag highlights, right-click copies (deselects) and then pastes (multiple times). I've come to like it, despite having to remove my right hand from the keyboard to do it.
ROFL!!!!!!!!!!!!!!
Wow. Don't you just love life. Always another way to make a galah of oneself.
Thanks for that. Now I can just hate XP because it crashes, and three months after each re-install it decides that some COM object somewhere is missing so it can no longer save Word or Excel documents (or let you copy their contents).
(Of course, I'll have to do this every time I'm using a cmd box with a different title, so it's not a complete panacea for what ails me.)
|
January 30, 2006 Re: copy/paste XP cmd | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthew | Matthew wrote: > > Thanks for that. Now I can just hate XP because it crashes, and three months > after each re-install it decides that some COM object somewhere is missing > so it can no longer save Word or Excel documents (or let you copy their > contents). Weird. XP has turned out to be at least as stable as 2000 for me. > (Of course, I'll have to do this every time I'm using a cmd box with a different title, so it's not a complete panacea for what ails me.) True. I have a bunch of shortcuts to different command configurations, so for it it was simply a matter of setting this option for each one. I'm not sure if this would work for command windows popped up by visual studio, however. Sean |
January 30, 2006 Re: Interesting language comparison on Digg | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthew | "Matthew" <matthew@stlsoft.com> wrote in message news:drkd1u$1tnk$2@digitaldaemon.com... > If that's not what D wants to be, then what does it want to be? (This is not rhetorical, I'm genuinely interested in getting an update on this issue.) Whatever that may be, can you give me an update on what current/forthcoming features will give it the advantage in that arena? What D offers is improved productivity (as much as 30% faster development) over C++ but with equivalent performance to C++. C++ isn't used because it supports OOP, or templates, etc. It's used because it offers performance, performance, performance. D offers that performance, but in a much easier to use and more productive package. |
January 30, 2006 Re: Interesting language comparison on Digg | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Reimer | "John Reimer" <terminal.node@gmail.com> wrote in message news:drlk6u$fq0$1@digitaldaemon.com... > You're getting your way more than most of us! Must be more of that ninjitsu. ;) It's because Don and Eric have made some really eye-popping templates that are well beyond what can be done with C++ templates. I'll be showing off their work at SDWest in March. |
January 30, 2006 Re: Interesting language comparison on Digg | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Walter Bright wrote: > "John Reimer" <terminal.node@gmail.com> wrote in message news:drlk6u$fq0$1@digitaldaemon.com... >> You're getting your way more than most of us! Must be more of that ninjitsu. ;) > > It's because Don and Eric have made some really eye-popping templates that are well beyond what can be done with C++ templates. I'll be showing off their work at SDWest in March. For what it's worth, here's a link to the session Walter is giving: https://www.cmpevents.com/SDw6/a.asp?option=G&V=3&id=228826 Sean |
January 30, 2006 Re: Interesting language comparison on Digg | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthew | "Matthew" <matthew@hat.stlsoft.dot.org> wrote in message news:drkk9b$290u$1@digitaldaemon.com... > Regular Expressions are a very powerful syntax for expressing search > strings, and reg ex libraries define mechanisms for applying that syntax > and > retrieving results. Here are some sample expressions from some of my > scripts: > > > if line =~ /^# include <#{projectName}/#{projectName}.h>/ In D: import std.regexp; if (find(line, r"^# include <#{projectName}/#{projectName}.h>") != -1) ... > elsif line =~ /(^.*?Updated\:\W+)(.*)/ > new_lines << $1 + currentDate + "\n" new_lines = sub(line, r"(^.*?Updated\:\W+)(.*)", "$`$&" ~ currentDate ~ "\n" ); Note that $` is the string preceding the match, and $& is the matched substring. |
January 31, 2006 Re: copy/paste XP cmd | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sean Kelly | "Sean Kelly" <sean@f4.ca> wrote in message news:drm2bl$vtf$1@digitaldaemon.com... > Matthew wrote: >> >> Thanks for that. Now I can just hate XP because it crashes, and three >> months >> after each re-install it decides that some COM object somewhere is >> missing >> so it can no longer save Word or Excel documents (or let you copy their >> contents). > > Weird. XP has turned out to be at least as stable as 2000 for me. > Same here; I've gotten it to hold up since June of 04 with no problems whatsoever. But then again, I've been known for beeing a complete Nazi as to what goes in and out of my computer. >> (Of course, I'll have to do this every time I'm using a cmd box with a different title, so it's not a complete panacea for what ails me.) > > True. I have a bunch of shortcuts to different command configurations, so for it it was simply a matter of setting this option for each one. I'm not sure if this would work for command windows popped up by visual studio, however. > > > Sean |
January 31, 2006 Re: copy/paste XP cmd | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sean Kelly | Sean Kelly wrote: > Matthew wrote: >> (Of course, I'll have to do this every time I'm using a cmd box with a different title, so it's not a complete panacea for what ails me.) > > > True. I have a bunch of shortcuts to different command configurations, so for it it was simply a matter of setting this option for each one. I'm not sure if this would work for command windows popped up by visual studio, however. Oh come on... After less than a single minute of googling I've found this: http://windows.about.com/library/tips/bltip130.htm -- -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS/M d-pu s+: a-->----- C+++$>++++ UL P+ L+ E--- W++ N++ o? K? w++ !O !M V? PS- PE- Y PGP t 5 X? R tv-- b DI- D+ G e>+++ h>++ !r !y ------END GEEK CODE BLOCK------ Tomasz Stachowiak /+ a.k.a. h3r3tic +/ |
January 31, 2006 Re: copy/paste XP cmd | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tom S | "Tom S" <h3r3tic@remove.mat.uni.torun.pl> wrote in message news:drm9o4$18tj$1@digitaldaemon.com... > Sean Kelly wrote: >> Matthew wrote: >>> (Of course, I'll have to do this every time I'm using a cmd box with a different title, so it's not a complete panacea for what ails me.) >> >> >> True. I have a bunch of shortcuts to different command configurations, so for it it was simply a matter of setting this option for each one. I'm not sure if this would work for command windows popped up by visual studio, however. > > Oh come on... After less than a single minute of googling I've found this: http://windows.about.com/library/tips/bltip130.htm Nice one. :-) |
Copyright © 1999-2021 by the D Language Foundation