[dev] [OT] What's wrong with C++?

2010-09-10 Thread Nikhilesh S
ience that would help me develop my own opinion to help me decide on what language to use for programs I write in the future. In fact I quite like C, but I don't dislike C++. -- Nikhilesh S http://www.nikhilesh.info

Re: [dev] Re: [dvtm] buffered text on resize

2010-09-09 Thread Nikhilesh S
On Thu, Sep 09, 2010 at 02:02:10PM -0700, Suraj Kurapati wrote: > On 9/8/10, Niki Yoshiuchi wrote: > > even a Gnome user should be able to figure out how to fix it. > > Haha, well said, that quote is an instant classic! :-) I have witnessed a classic in the making. :O -- N

Re: [dev] [OT] Music?

2010-09-09 Thread Nikhilesh S
On Thu, Sep 09, 2010 at 12:02:21AM +, William Light wrote: > on Thu, Sep 09, 2010 at 12:12:24AM +0300, Nikhilesh S wrote: > > What kind of music do you listen to? Your favourite artists, genres, > > etc.? > > > > funkstörng, autechre, gridlock, the flashbulb, cepi

Re: [dev] [OT] Music?

2010-09-09 Thread Nikhilesh S
ent). Here's an example: http://www.youtube.com/watch?v=OgdaLWBvXA0 Towards the end you hear what's called a 'tihai' - something that's played thrice with three parts within each time but still stays on beat. Some fun stuff. :) -- Nikhilesh S http://www.nikhilesh.info

Re: [dev] [OT] Music?

2010-09-08 Thread Nikhilesh S
29Gw&feature=fvwd) > > Basically, Horowitz's anything is in the fav-ever category. He's > certainly the best represented single artist in my (probably largish) > CD collection. This is cool, I was just checking this out on YouTube. I'm more into silly electronic

[dev] [OT] Music?

2010-09-08 Thread Nikhilesh S
What kind of music do you listen to? Your favourite artists, genres, etc.? -- Nikhilesh S http://www.nikhilesh.info

Re: [dev] [wmii] Remove titlebar

2010-09-08 Thread Nikhilesh S
in feature and requires some messing I guess I'm fine with the titlebar - the other parts of wmii I like till now. :) Maybe if I figure it out I could patch it... -- Nikhilesh S http://www.nikhilesh.info

[dev] [wmii] Remove titlebar

2010-09-07 Thread Nikhilesh S
Is there a way to disable drawing of titlebars? -- Nikhilesh S http://www.nikhilesh.info

Re: [dev] nscript - a little stack-based scripting language interpretter I wrote

2010-08-26 Thread Nikhilesh S
riable !^&. 42 $!^& !^& print #Here we assign &print to + temporarily within a block to make + print #instead of adding numbers. Outside the block it's back to normal. { &print $+ #Prints '3'. 3 + } 1 repeat #TODO: Add an 'exec' function to just run a block? 2 3 + print #Here it prints '5'. -- Nikhilesh S http://www.nikhilesh.info

Re: [dev] nscript - a little stack-based scripting language interpretter I wrote

2010-08-26 Thread Nikhilesh S
Floating point support has been added!

Re: [dev] nscript - a little stack-based scripting language interpretter I wrote

2010-08-26 Thread Nikhilesh S
On Thu, 26 Aug 2010, pancake wrote: *) mv ReadMe README *) add install/uninstall/deinstall targets in makefile honoring PREFIX and DESTDIR vars *) CC, CFLAGS and others should be ?= and not =, this way make(1) honors the environment variables *) fix help message of ns to be in one line, descri

Re: [dev] nscript - nscc

2010-08-26 Thread Nikhilesh S
On Thu, 26 Aug 2010, pancake wrote: I have written an initial version of 'nscc' with support for creating native interfaces by parsing an 'nsi' file. This is really awesome work! I just wanted to add, you can use these functions from 'nsobj.h' for creating objects:- struct ns_obj ns_make

Re: [dev] nscript - a little stack-based scripting language interpretter I wrote

2010-08-25 Thread Nikhilesh S
On Thu, 26 Aug 2010, pancake wrote: with def you will be able to override any operator or function. nevertheless you can also doit with '$' and the parsing will go faster A quick way to allow that with '$' is move the 'findVariable' part before the 'findFunc' part in MD_READNAME in ns_interpre

Re: [dev] nscript - a little stack-based scripting language interpretter I wrote

2010-08-25 Thread Nikhilesh S
On Wed, 25 Aug 2010, anonymous wrote: You include files include include files. IMO one external include file (that is placed into /usr/include) should be enough. And internal include files can be placed into src/, one .h file for each c file. Then you can remove #ifdef guards. Read "Notes on

Re: [dev] nscript - a little stack-based scripting language interpretter I wrote

2010-08-25 Thread Nikhilesh S
On Wed, 25 Aug 2010, Kris Maglione wrote: My personal preference is for single-quoted strings to ignore escape sequences, and to escape single quotes by doubling them, and for double-quoted strings to process escapes and possibly do simple interpolation. I think this is a good idea - I've impl

Re: [dev] nscript - a little stack-based scripting language interpretter I wrote

2010-08-25 Thread Nikhilesh S
On Wed, 25 Aug 2010, Kris Maglione wrote: Personally, I don't think that a special syntax for variable definition fits well in a stack-based language. I prefer the PostScript syntax of quoting the word and using the def keyword, so: 2 $var def or { 'hi' print } $foo def or the revers

Re: [dev] nscript - a little stack-based scripting language interpretter I wrote

2010-08-25 Thread Nikhilesh S
On Wed, 25 Aug 2010, pancake wrote: I vote for 1char string, no new type. And u can reuse the rest of operators Why not return an int with the enum value? Ok, I've added 'getline', 'getchar', 'type'. Also, ns now accepts more options to execute code from standard input, file or from a string

Re: [dev] nscript - a little stack-based scripting language interpretter I wrote

2010-08-25 Thread Nikhilesh S
On Wed, 25 Aug 2010, Moritz Wilhelmy wrote: Anyway, this is completely unrelated, I just wanted to suggest you to take a look at postscript. It is also well-documented, see [1], [2]. Yup, I've seen postscript before. I will go check it out again, maybe it has some good ideas. C bindings woul

Re: [dev] nscript - a little stack-based scripting language interpretter I wrote

2010-08-25 Thread Nikhilesh S
On Wed, 25 Aug 2010, pancake wrote: * Remove 'code' in nstest.c and put it as a testcase t/test nstest.c is gone, there's now ns.c, a standard-input-interpreter. The tests are now in the directory test/. You can now just run './ns < test/fact.ns' for example. * floating point support (append

Re: [dev] nscript - a little stack-based scripting language interpretter I wrote

2010-08-25 Thread Nikhilesh S
#x27;"' quote char for strings. Ok, I've implemented this, check the latest git update. You can now use both '"' and ''' for strings. Thanks for your other suggestions! They are interesting ideas. I will get back to them soon, and 'anonymous', your suggestions too. -- Nikhilesh S http://www.nikhilesh.info

Re: [dev] nscript - a little stack-based scripting language interpretter I wrote

2010-08-24 Thread Nikhilesh S
On Wed, 25 Aug 2010, yy wrote: It is difficult to form an opinion about a language if there is no documentation or any examples, and it is difficult to form an opinion about the implementation without understanding the language. What features does it have? How does it look like? How does it com

[dev] nscript - a little stack-based scripting language interpretter I wrote

2010-08-24 Thread Nikhilesh S
better but I just wanted to try something new. The trie code was pretty short so I liked it. Tell me what you think. < I'm half-expecting some harsh criticism about my coding style or something :-( > -- Nikhilesh S http://www.nikhilesh.info

[dev] [wmii] colrules percentages?

2010-08-18 Thread Nikhilesh S
ch in the colrules but it still didn't come out right (the leftmost one was too small, rightmost too big). Thanks for your help! :-) -- Nikhilesh S http://www.nikhilesh.info

Re: [dev] flo - a command line program for organizing events, to-dos, and deadlines

2010-08-17 Thread Nikhilesh S
On Tue, 17 Aug 2010, Alexander Teinum wrote: It might be obvious, but there’s one thing that I have found that is nice about changing ids, and that’s when you’re removing items in a row. Count how many items you want to remove, and then remove the first id three times. Type command, enter, arro

Re: [dev] flo - a command line program for organizing events, to-dos, and deadlines

2010-08-17 Thread Nikhilesh S
I made a flo-git package for AUR then when I was about to submit I found that there was already flo-git in AUR. This would have been my first package. ;_;

Re: [dev] [st] 256color info file?

2010-08-16 Thread Nikhilesh S
On Tue, 17 Aug 2010, Ramana Kumar wrote: Is there a file st-256color.info missing from the st repo? I just downloaded hg version 85 and tried to make it, and it failed with "tic: Can't open st-256color.info". I had the same problem when I tried it. I did a 'touch st-256color.info' hoping it di

[dev] [wmii] C configuration

2010-08-16 Thread Nikhilesh S
Any of you guys use a program in C with libixp for wmii configuration? -- Nikhilesh S http://nikki93.github.com/