Re: [racket-users] Re: How do I get (system-tzid) to return the correct value?

2019-02-21 Thread Jon Zeppieri
I just realized that some of my instructions rely on DrRacket, and you mentioned that this is on AWS, so you probably you're likely not running that. The reason I suggested running the code in DrRacket is that it allows you to work within a module, so that you're not restricted to calling only prov

Re: [racket-users] Re: How do I get (system-tzid) to return the correct value?

2019-02-21 Thread Jon Zeppieri
On Thu, Feb 21, 2019 at 10:12 PM Brian Adkins wrote: > On Thursday, February 21, 2019 at 9:54:23 PM UTC-5, Jon Zeppieri wrote: >> >> >> >> On Thu, Feb 21, 2019 at 9:48 PM Brian Adkins wrote: >> >>> On Thursday, February 21, 2019 at 9:35:58 PM UTC-5, Brian Adkins wrote: On Thursday, Feb

Re: [racket-users] Help with generators from python land!

2019-02-21 Thread Konrad Hinsen
On 21/02/2019 20:40, Zelphir Kaltstahl wrote: Python, I believe, has some kind of `Iterable` interface, which a generator satisfies and which specifies the method to call to get the next value. In Racket maybe one would have to do with a convention of how to get a next value from a lazy list.

Re: [racket-users] Re: How do I get (system-tzid) to return the correct value?

2019-02-21 Thread Brian Adkins
On Thursday, February 21, 2019 at 10:12:02 PM UTC-5, Brian Adkins wrote: > > On Thursday, February 21, 2019 at 9:54:23 PM UTC-5, Jon Zeppieri wrote: >> >> >> >> On Thu, Feb 21, 2019 at 9:48 PM Brian Adkins wrote: >> >>> On Thursday, February 21, 2019 at 9:35:58 PM UTC-5, Brian Adkins wrote:

Re: [racket-users] Re: How do I get (system-tzid) to return the correct value?

2019-02-21 Thread Brian Adkins
On Thursday, February 21, 2019 at 9:54:23 PM UTC-5, Jon Zeppieri wrote: > > > > On Thu, Feb 21, 2019 at 9:48 PM Brian Adkins > wrote: > >> On Thursday, February 21, 2019 at 9:35:58 PM UTC-5, Brian Adkins wrote: >>> >>> On Thursday, February 21, 2019 at 9:26:07 PM UTC-5, Brian Adkins wrote: >>

Re: [racket-users] "table" data structure in Racket

2019-02-21 Thread travis . hinkelman
After posing the question yesterday, I spent a little time poking around in the Github repository for Apache Arrow and came to the same conclusion, i.e., large project presumably facilitated by corporate backing. On Thursday, February 21, 2019 at 4:28:55 PM UTC-8, Alex Harsanyi wrote: > > > > O

Re: [racket-users] Re: How do I get (system-tzid) to return the correct value?

2019-02-21 Thread Jon Zeppieri
On Thu, Feb 21, 2019 at 9:48 PM Brian Adkins wrote: > On Thursday, February 21, 2019 at 9:35:58 PM UTC-5, Brian Adkins wrote: >> >> On Thursday, February 21, 2019 at 9:26:07 PM UTC-5, Brian Adkins wrote: >>> >>> I'm using the (today) function from the gregor library. It was returning >>> tomorrow

[racket-users] Re: How do I get (system-tzid) to return the correct value?

2019-02-21 Thread Brian Adkins
On Thursday, February 21, 2019 at 9:35:58 PM UTC-5, Brian Adkins wrote: > > On Thursday, February 21, 2019 at 9:26:07 PM UTC-5, Brian Adkins wrote: >> >> I'm using the (today) function from the gregor library. It was returning >> tomorrow instead of today, so I thought the problem was the timezone

[racket-users] Re: How do I get (system-tzid) to return the correct value?

2019-02-21 Thread Brian Adkins
On Thursday, February 21, 2019 at 9:26:07 PM UTC-5, Brian Adkins wrote: > > I'm using the (today) function from the gregor library. It was returning > tomorrow instead of today, so I thought the problem was the timezone on my > Ubuntu server. I configured the timezone to be US/Eastern via: sudo

[racket-users] How do I get (system-tzid) to return the correct value?

2019-02-21 Thread Brian Adkins
I'm using the (today) function from the gregor library. It was returning tomorrow instead of today, so I thought the problem was the timezone on my Ubuntu server. I configured the timezone to be US/Eastern via: sudo dpkg-reconfigure tzdata Now the date command returns: Thu Feb 21 21:23:43 EST

Re: [racket-users] "table" data structure in Racket

2019-02-21 Thread Alex Harsanyi
On Thursday, February 21, 2019 at 7:19:39 AM UTC+8, travis.h...@gmail.com wrote: > > Hi All, > > I'm resurrecting this thread to ask if anyone in the Racket community has > Apache Arrow on their radar. It seems like Apache Arrow might be gaining > steam. > > Apache Arrow is a cross-language d

Re: [racket-users] How do you make students submit programming assignments online for automatic tests?

2019-02-21 Thread Jordan Johnson
On Feb 20, 2019, at 10:40, 'John Clements' via Racket Users wrote: > One solution would be to use the command-line version of Racket’s > handin-server, which is language-agnostic to the degree that it can just > submit arbitrary files to the server, and what happens on the back end is up > to

Re: [racket-users] Help with generators from python land!

2019-02-21 Thread Dave McDaniel
Yes, that is a key difference to the extent of the laziness I think. The python generator is different than `for` in racket as what is returned from calling a generator function in python is not a list at all, its a generator that must be externally driven in order to produce values. Whereas

Re: [racket-users] Help with generators from python land!

2019-02-21 Thread Zelphir Kaltstahl
Ah, you are of course right. Somehow I thought about `for/list` and returning lists and then doing something on the returned list, instead of simply doing it _inside_ the `for`. Apologies! On 2/21/19 8:46 PM, Robby Findler wrote: > For the record, `for` iterators go element-by-element. For example

[racket-users] Re: How do you make students submit programming assignments online for automatic tests?

2019-02-21 Thread Zelphir Kaltstahl
If you were using Racket, you might be interested in this RacketCon video (time is linked): https://youtu.be/WI8uA4KjQJk?t=1510 Racket has a very tree like code structure right in front of the developer, while I guess you would have to get through to the AST in other languages, where that is n

[racket-users] Use cases for tables and records

2019-02-21 Thread jackhfirth
Hi folks! I'm looking for use cases for a few small data structure libraries I'm working on: - Records , which are dictionaries mapping keywords to values. Keys must be keywords, which allows for more efficient behavior in various cases and s

Re: [racket-users] Help with generators from python land!

2019-02-21 Thread Robby Findler
For the record, `for` iterators go element-by-element. For example, this program does not construct anything that has all of the natural numbers in it: #lang racket (define my-stuffs-value (hash 'telephone 3 'bluejeans 24 'house 10 'computer 3000)) (define my-estate

Re: [racket-users] Help with generators from python land!

2019-02-21 Thread Zelphir Kaltstahl
I don't think one can see `for` in Racket as equivalent to generators in Python. Generators in Python are used when you want to save memory by not producing all values at once, but want to go value by value (which to my knowledge Racket's `for` variants do not do, but I'd like to be corrected,

Re: [racket-users] Help with generators from python land!

2019-02-21 Thread Dave McDaniel
Hi Jon, Thanks for the very detailed explanation. It does make good sense and is helpful in getting up to speed on racket in general. Regarding the docs, it does not say "slight", but rather "can provide better", I read this as slight since it wasn't definitive--but I understand better now ba