Re: [racket-users] advice for writing desktop app

2015-04-03 Thread Alexander D. Knauth

On Apr 3, 2015, at 4:40 AM, Gour  wrote:

> I've found the following:
> 
> "Sadly, RacketGUI lacks some advanced controls I often want:
> 
>trees
>tables containing controls in cells
>However the list-box% control supports cells that only contain text.
>tree-tables
> “

For tables, I wrote my own version of some kind of table for racket’s gui so 
that I could use it in a gui latin dictionary I was making.
I’ll reply again if I can find it and separate it into its own library that I 
can share.

Also, I looked on pkgs.racket-lang.org, and found this:
http://pkgs.racket-lang.org/#[table-panel]
http://pkg-build.racket-lang.org/doc/table-panel/index.html

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] advice for writing desktop app

2015-04-03 Thread Alexander D. Knauth

On Apr 3, 2015, at 8:56 AM, Alexander D. Knauth  wrote:

> 
> On Apr 3, 2015, at 4:40 AM, Gour  wrote:
> 
>> I've found the following:
>> 
>> "Sadly, RacketGUI lacks some advanced controls I often want:
>> 
>>   trees
>>   tables containing controls in cells
>>   However the list-box% control supports cells that only contain text.
>>   tree-tables
>> “
> 
> For tables, I wrote my own version of some kind of table for racket’s gui so 
> that I could use it in a gui latin dictionary I was making.
> I’ll reply again if I can find it and separate it into its own library that I 
> can share.

Here it is, although some of the things I did like creating objects on a dummy 
panel and then reparenting them seem like they could be bad ideas.
https://github.com/AlexKnauth/racket-gui-table

> Also, I looked on pkgs.racket-lang.org, and found this:
> http://pkgs.racket-lang.org/#[table-panel]
> http://pkg-build.racket-lang.org/doc/table-panel/index.html

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] advice for writing desktop app

2015-04-03 Thread Vincent St-Amour
At Fri, 03 Apr 2015 10:40:18 +0200,
Gour wrote:
> So, it looks, (almost) everything is there present in Racket, so I wonder
> whether you consider that writing desktop GUI app is suitable niche for
> Racket making one productive and still getting decent performance?

I have written GUI applications in Racket, .NET, Swing and tk, and
Racket is the most pleasant by far, IMO.

Racket performance is pretty good in general. The Racket performance
docs have more information:

http://docs.racket-lang.org/guide/performance.html

> Does using Typed Racket improve things significantly?

Performance-wise, it depends on the kind of code. Typed Racket performs
some type-driven optimizations. Those are most useful for numeric code,
but you may see modest speedups in other kinds of code too. I don't
expect much difference for GUI code, though. See the Typed Racket
performance docs for more details:

http://docs.racket-lang.org/ts-guide/optimization.html

> I did graduate software engineering long ago and was using/learning several
> languages from Fortran, Pascal, C(++), but when I was about to learn Lisp, all
> students had to take Prolog course, so I'm Lisp/Scheme/Racket noob except
> that I wrote several setq-s when configuring Emacs.
> 
> Considering that I like learning from books, do you recommend Realm of Racket
> book to start learning along with the online docs? Any other book?

Realm of Racket is very good, and since you already have programming
experience, you should be able to pick it up easily.

If you need a gentler introduction to thinking functionally, I would
recommend How to Design Programs:

http://www.ccs.neu.edu/home/matthias/HtDP2e/

Vincent

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] advice for writing desktop app

2015-04-04 Thread Gour

Vincent St-Amour  writes:

> I have written GUI applications in Racket, .NET, Swing and tk, and
> Racket is the most pleasant by far, IMO.

I'm glad to hear it. Racket, as language, really looks beautiful - simple
syntax and powerful expressibility, afaict.

Do you find Racket's GUI sufficient for desktop appps?

>
> Racket performance is pretty good in general. The Racket performance
> docs have more information:

Thank you, I'll take a look.

> Realm of Racket is very good, and since you already have programming
> experience, you should be able to pick it up easily.

Thank you.

> If you need a gentler introduction to thinking functionally, I would
> recommend How to Design Programs:

That what I'm reading atm while considering whether to buy ebook or paperback
version of RoR.


Sincerely,
Gour

-- 
One is understood to be in full knowledge whose every endeavor 
is devoid of desire for sense gratification. He is said by sages 
to be a worker for whom the reactions of work have been burned 
up by the fire of perfect knowledge.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] advice for writing desktop app

2015-04-04 Thread Gour

Alexander D. Knauth  writes:

> For tables, I wrote my own version of some kind of table for racket’s gui
> so that I could use it in a gui latin dictionary I was making.

Thanks. Looks good.


Sincerely,
Gour

-- 
One is understood to be in full knowledge whose every endeavor 
is devoid of desire for sense gratification.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] advice for writing desktop app

2015-04-04 Thread Gour

Alexander D. Knauth  writes:

> Here it is, although some of the things I did like creating objects on a
> dummy panel and then reparenting them seem like they could be bad ideas.
> https://github.com/AlexKnauth/racket-gui-table

Thank you. I did star it.

What about trees? You don't have need for it?


Sincerely,
Gour

-- 
One is understood to be in full knowledge whose every endeavor 
is devoid of desire for sense gratification.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] advice for writing desktop app

2015-04-04 Thread Jens Axel Søgaard
Tree?

Do you mean this?

http://docs.racket-lang.org/mrlib/Hierarchical_List_Control.html?q=button%25

/Jens Axel


2015-04-04 10:30 GMT+02:00 Gour :
>
> Alexander D. Knauth  writes:
>
>> Here it is, although some of the things I did like creating objects on a
>> dummy panel and then reparenting them seem like they could be bad ideas.
>> https://github.com/AlexKnauth/racket-gui-table
>
> Thank you. I did star it.
>
> What about trees? You don't have need for it?
>
>
> Sincerely,
> Gour
>
> --
> One is understood to be in full knowledge whose every endeavor
> is devoid of desire for sense gratification.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
--
Jens Axel Søgaard

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] advice for writing desktop app

2015-04-05 Thread Lux
> Here it is, although some of the things I did like creating objects on a 
> dummy panel and then reparenting them seem like they could be bad ideas.
> https://github.com/AlexKnauth/racket-gui-table

Thanks, I've searched something like this for several days, starred. Maybe 
would be a good idea adding

(send frame show #t)

In test.rkt ? Or I miss something?

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] advice for writing desktop app

2015-04-05 Thread Gour

Jens Axel Søgaard  writes:

> Tree?
>
> Do you mean this?
>
> http://docs.racket-lang.org/mrlib/Hierarchical_List_Control.html?q=button%25

Hmm, there is no screenshot, but it could be that's it. Thank you!


Sincerely,
Gour

-- 
When your intelligence has passed out of the dense forest 
of delusion, you shall become indifferent to all that has 
been heard and all that is to be heard.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] advice for writing desktop app

2015-04-05 Thread Alexander D. Knauth

On Apr 5, 2015, at 5:22 AM, Lux  wrote:

>> Here it is, although some of the things I did like creating objects on a 
>> dummy panel and then reparenting them seem like they could be bad ideas.
>> https://github.com/AlexKnauth/racket-gui-table
> 
> Thanks, I've searched something like this for several days, starred. Maybe 
> would be a good idea adding
> 
> (send frame show #t)
> 
> In test.rkt ? Or I miss something?

I left that out of the file so that it wouldn’t try to make a window appear if 
I just run raco test on everything or something like that, or if in the future 
I use Travis CI or something.  But when I run the file in DrRacket, I type in 
(send frame show #t) to check it.  But even without that, it should make sure 
that I don’t have any blatant contract violations in the code that runs right 
away to set it up.  


-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] advice for writing desktop app

2015-04-05 Thread Giuseppe Luca Scrofani
>
> I left that out of the file so that it wouldn’t try to make a window
> appear if I just run raco test on everything or something like that, or if
> in the future I use Travis CI or something.  But when I run the file in
> DrRacket, I type in (send frame show #t) to check it.  But even without
> that, it should make sure that I don’t have any blatant contract violations
> in the code that runs right away to set it up.
>

Thanks for explanation

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.