[racket-users] Re: tabular text display

2017-09-21 Thread Jack Firth
I've implemented this for board games occasionally, so +1 to someone making 
a package.

-- 
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.


[racket-users] Re: Inside Racket Seminar 7. Alexis King on Hackett

2017-09-21 Thread Jay McCarthy
Reminder: This is tomorrow!

On Wed, Sep 6, 2017 at 6:07 AM, Jay McCarthy  wrote:
> On September 22nd at 3:30pm Eastern time, please join us for the
> seventh Inside Racket Seminar where Alexis King will give us a
> walk-through of the Hackett programming language implementation.
>
> As before, it will be on Google Hangouts on Air with Alexis walking
> through the code and giving an explanation of how it all hooks
> together. This is not a tutorial on Racket or on the library, but a
> kind of oral history and explanation of the software and how it works.
> Our hope is that this will increase the ability of others to build and
> maintain similar software as we share this kind of expertise in a way
> that doesn't fit our existing distribution mechanisms (research
> papers, RacketCon talks, documentation, etc.)
>
> Link to the stream:
> https://www.youtube.com/watch?v=3xFWcNarb3Q
>
> I hope that you are able to attend and send your own questions as we go 
> through.
>
> I have linked some related reading on the Wiki page:
>
> https://github.com/racket/racket/wiki/Inside-Racket-Seminar-7.-Alexis-King-on-Hackett
>
> Please feel free to send questions beforehand, on this thread or to me
> personally. We will archive the video for later viewing, etc.
>
> As it turns out, Alexis will also be speaking at RacketCon this year
> in a shorter form, so you may consider this a kind of preview for what
> is to come there. Check out the rest of the speakers and find
> registrations details here:
>
> http://con.racket-lang.org
>
> See you all soon!
>
> --
> -=[ Jay McCarthy   http://jeapostrophe.github.io]=-
> -=[ Associate ProfessorPLT @ CS @ UMass Lowell ]=-
> -=[ Moses 1:33: And worlds without number have I created; ]=-



-- 
-=[ Jay McCarthy   http://jeapostrophe.github.io]=-
-=[ Associate ProfessorPLT @ CS @ UMass Lowell ]=-
-=[ Moses 1:33: And worlds without number have I created; ]=-

-- 
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] tabular text display

2017-09-21 Thread Jay McCarthy
`raco pkg show` implements something very close that you could turn
into a library

https://github.com/racket/racket/blob/master/racket/collects/pkg/private/show.rkt#L102

On Thu, Sep 21, 2017 at 5:03 PM, 'John Clements' via users-redirect
 wrote:
> Before I go re-inventing the wheel, I want to ask you folks: has anyone 
> written a library that prints out tabular data in a textual format?
>
> E.G: given
>
> ‘((“a” “bcd” “ef”) (“gh” “hhu.thnt” “t”)
>
> returns
>
> "
> --
> | a  | bcd  | ef |
> | gh | hhu.thnt | t  |
> ———
> “
>
> (sorry about the horrible damage that Apple Mail inflicts upon this message.)
>
> … in the style of postgresql and similar display engines?
>
> It’s easy to write one of these, but if someone else has done it, it will 
> probably have nice bells and whistles that mine won’t.
>
> John
>
>
>
>
>
>
>
> --
> 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.



-- 
-=[ Jay McCarthy   http://jeapostrophe.github.io]=-
-=[ Associate ProfessorPLT @ CS @ UMass Lowell ]=-
-=[ Moses 1:33: And worlds without number have I created; ]=-

-- 
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] tabular text display

2017-09-21 Thread Greg Hendershott
Clojure's pretty print collection has a `print-table`[^1].  Similar
might be a handy addition to `racket/pretty`. Presumably it would work
on any dictionary -- as well as a header-less sequence flavor like you
showed?

Maybe someone could do during the Sunday Rackethon. :)

[^1]: 


-- 
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] tabular text display

2017-09-21 Thread Hendrik Boom
On Thu, Sep 21, 2017 at 05:03:57PM -0400, 'John Clements' via users-redirect 
wrote:
> Before I go re-inventing the wheel, I want to ask you folks: has anyone 
> written a library that prints out tabular data in a textual format?
> 
> E.G: given 
> 
> ‘((“a” “bcd” “ef”) (“gh” “hhu.thnt” “t”)
> 
> returns
> 
> "
> --
> | a  | bcd  | ef |
> | gh | hhu.thnt | t  |
> ———
> “
> 
> (sorry about the horrible damage that Apple Mail inflicts upon this message.)
> 
> … in the style of postgresql and similar display engines?
> 
> It’s easy to write one of these, but if someone else has done it, it will 
> probably have nice bells and whistles that mine won’t.

Your example needs a fixed-width font.  Perhaps it would be usefu for it
to be able to produce HTML tables as well.

-- hendrik

-- 
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.


[racket-users] tabular text display

2017-09-21 Thread 'John Clements' via users-redirect
Before I go re-inventing the wheel, I want to ask you folks: has anyone written 
a library that prints out tabular data in a textual format?

E.G: given 

‘((“a” “bcd” “ef”) (“gh” “hhu.thnt” “t”)

returns

"
--
| a  | bcd  | ef |
| gh | hhu.thnt | t  |
———
“

(sorry about the horrible damage that Apple Mail inflicts upon this message.)

… in the style of postgresql and similar display engines?

It’s easy to write one of these, but if someone else has done it, it will 
probably have nice bells and whistles that mine won’t.

John







-- 
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.


[racket-users] GUI toolkits

2017-09-21 Thread Hendrik Boom
On Thu, Sep 21, 2017 at 06:09:53AM -0400, Neil Van Dyke wrote:
> One possibility is that Racket was working with GTK3 before, but GTK3 broke
> that (or broke your GTK3 theme) in a newer version.  I've heard developer
> complaints about this, and about engineering culture changes and politics.
> 
> Firefox might be a good example to look at.  Some URLs that don't involve
> cursing or intrigue:
> https://wiki.archlinux.org/index.php/firefox#Firefox_looks_bad_with_GTK.2B_.3E.3D3.20
> https://bugzilla.mozilla.org/show_bug.cgi?id=1268234
> 
> I no longer have a good long-term recommendation for open source desktop GUI
> toolkits; maybe next year.  For now, I go to some trouble to use GTK2 apps
> whenever possible.

Is anyone still maintaining GTK2?

I've heard good things about Qt and FLTK, but have no experience with them.

-- hendrik

-- 
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] Strange gray lines in DrRacket editor

2017-09-21 Thread Neil Van Dyke
One possibility is that Racket was working with GTK3 before, but GTK3 
broke that (or broke your GTK3 theme) in a newer version.  I've heard 
developer complaints about this, and about engineering culture changes 
and politics.


Firefox might be a good example to look at.  Some URLs that don't 
involve cursing or intrigue:

https://wiki.archlinux.org/index.php/firefox#Firefox_looks_bad_with_GTK.2B_.3E.3D3.20
https://bugzilla.mozilla.org/show_bug.cgi?id=1268234

I no longer have a good long-term recommendation for open source desktop 
GUI toolkits; maybe next year.  For now, I go to some trouble to use 
GTK2 apps whenever possible.


The good news: for most of us developers using Racket on GNU/Linux, one 
nice side-effect of the Racket cross-platform desktop GUI stuff is that 
we don't have to decide whether to code for GTK2/GTK3/Qt/etc. -- we can 
shift all that pain onto Matthew, et al. :)


--
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.


[racket-users] Strange gray lines in DrRacket editor

2017-09-21 Thread Luis Sanjuán
Hi again, Jaroslaw and everyone concerned.

I have investigated a bit further on this issue. This is a quick report of my 
findings thus far. If I can provide more useful information, I'll do it in a 
new post.

To summarize what I have found.

1. Artifacts are still there, though mitigated, even after applying the last 
proposed workarounds.
2. At least on Unix systems, the issue seems to be completely fixed by falling 
back to GTK2.

More details.

* Basic Machine description

Platform: Dell XPS 13 9360. Graphics: Iris Plus Graphics 640 driven by the i915 
module (default chipset settings)

OS: Ubuntu 16.04.3 (Linux kernel: 4.10.0-33-generic)

* Description of the issue

Ghosting lines and/or little squares screen artifacts appears on the drracket 
canvas while scrolling. Much more prominent when text is scaled and/or when 
graphical objects like comment boxes are included in the code.

* Fix

On Unix systems, falling back to GTK2 when running drracket seems to completely 
fix the issue:

PLT_GTK2=1 drracket

Jaroslaw, I don't know about Windows but if you can do something like this when 
running drracket, you may fix the problem by now.

-- 
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.