[racket-users] Paper from my first year in graduate school - Racket Simulation

2021-12-21 Thread Linh Chi Nguyen
Hey, all the simulations for my paper (published in Bio-inspired EAI International Conference 2016) back then when I was a first year graduate student are in Racket ! This morning I discover that it has 624 downloads and counting. I am so proud of my graduate time <3

[racket-users] (seventh RacketCon) Call for Speakers

2017-06-07 Thread Linh Chi Nguyen
I endorse that Racket Con is super cool. I was in last year. Every one has a universe of beautiful things in their head. If there is something i have learnt from game theory, it is this: if we have the same prior, then we cannot agree to disagree. However, since we have different genetic

[racket-users] Re: generate sentences

2017-03-17 Thread Linh Chi Nguyen
i have some progress on the markov machine that generate random sentences. i update here just in case. the program that consumes text and then calculate the probability of the next word, given the current word is a markov machine of memory 1. memory 1 means that we input it one word and it

Re: [racket-users] generate sentences

2017-02-25 Thread Linh Chi Nguyen
after i did the exercise as guided, i think there is no need to use hash-table. also, i don't use the provided text input, but i read-words from text files. so i have to add some trick to create the beginning " " and the end "." for the writing-style. in the function (add-to-ws ws word1

Re: [racket-users] generate sentences

2017-02-25 Thread Linh Chi Nguyen
oh it's very kind of you. thank you, let's see -- 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,

[racket-users] generate sentences

2017-02-21 Thread Linh Chi Nguyen
hello, i'm doing this exercise and would appreciate any comments. i want to create a machine to scan a text, then split the text into elements (storing in a hash table). then we connect these hash keys in a probabilistic way, so that if we start from a word, we can jump to other words in a

[racket-users] mass production of definitions

2016-10-27 Thread Linh Chi Nguyen
in case someone finds this useful :) hi vincent, how are you? i would like to ask you this , i'm trying to mass produce definitions, however `eval is tricky: (define l1 (list 'a 'b)) (define l2 (list (list 1 2) (list 3 4))) (for ([i (in-list l1)] [j (in-list l2)]) (eval

[racket-users] Re: [ANN] New package: live-free-or-die

2016-09-25 Thread Linh Chi Nguyen
let its spirit live on, for jay's big heart ^^ On Thursday, 22 September 2016 04:33:32 UTC+2, Jay McCarthy wrote: > I've just put a new package on the server: live-free-or-die > > This package lets you escape from Typed Racket's contracts. > > -- > > Here's a little example: > > Suppose that

[racket-users] post racketcon '16: simulation of population playing PD game in Racket

2016-09-25 Thread Linh Chi Nguyen
Hello everyone, So I thank again Matthias for the opportunity and everyone for the incredible hospitality. I write down the script of my presentation, add notes, add the extra parts (that i said i didnt have time to show), link to code parts on github, and append a final part to answer Ben's

[racket-users] lazy vs strict, raco vs racket

2016-01-27 Thread Linh Chi Nguyen
Hello, so i have this racket code to run simulation, and I can run it on sorta a cluster (the lab utilises the computer classroom at night and turns it into a cluster - as they call it). The thing is when i run on the cluster, it doesn't accept any kind of GUI, so i have to switch from

Re: [racket-users] help on coding finite state automata

2015-10-13 Thread Linh Chi Nguyen
Matthias you work like a machine, too fast. Anyway, I have no idea what is type or not type. But I have some general remarks: 1. A general automaton can have many states, say, 10 states. so the action in each state can be either cooperate or defect (this is a deterministic automaton, for a

Re: [racket-users] help on coding finite state automata

2015-10-12 Thread Linh Chi Nguyen
I dont know how the email group work. If someone keeps receiving emails out of interest, please notice me. Thanks Bryan for the suggestion, it's nice to know, however Im not able to afford upgrading now. And Matthias, for your notice of the spawning process ``` (define (randomise-over-fitness

Re: [racket-users] help on coding finite state automata

2015-10-11 Thread Linh Chi Nguyen
Thank you very much, Im trying to see it. However Im very unfamiliar with module in racket. So far I can only answer you this: about your comment > [define survivors (drop population speed)] > ;; MF: THIS LOOKS LIKE IT MAY "RESURRECT" AUTOM. THAT ARE ALIVE > [define successors

Re: [racket-users] running racket command line, load mode works but module mode doesnt

2015-10-11 Thread Linh Chi Nguyen
ou could require "racket" with -l: > > $ racket -t foo.rkt -l racket -e '(hello)' > > > Or your module could provide the bindings from racket. Then you could > add something like > > ``` > (provide (all-from-out racket) > ``` > > in the foo.rkt m

Re: [racket-users] help on coding finite state automata

2015-10-11 Thread Linh Chi Nguyen
od "fsm0.rkt" tv))' '(run)' ``` Thank you, Chi On Sunday, 11 October 2015 09:24:07 UTC+2, Linh Chi Nguyen wrote: > Thank you very much, > Im trying to see it. However Im very unfamiliar with module in racket. > > So far I can only answer you this: > > about your commen

Re: [racket-users] running racket command line, load mode works but module mode doesnt

2015-10-11 Thread Linh Chi Nguyen
Dear Daniel, I have blindly tried and so far these two things work for me: 1. Add this to the end of the file (maybe module* main #f...) ``` (module+ main (hello) ) ``` and then "racket -t foo.rkt" prints "Hello, world!". 2. If you want to use "-e" (e.g. for testing) you need more

Re: [racket-users] help on coding finite state automata

2015-10-11 Thread Linh Chi Nguyen
Sorry for the emails. But I'd like to post that the question of how to require a module then evaluate a command is answered here: https://groups.google.com/forum/#!topic/racket-users/byL7W1yktas by Daniel. Thank you so much for all your help and patience, chi -- You received this message

[racket-users] running racket command line, load mode works but module mode doesnt

2015-10-10 Thread Linh Chi Nguyen
Hi everyone, The situation is that I have a racket file with the same code but 2 version, one in module and one in load mode. ``` hi.rkt is in load mode ``` ``` bye.rkt is the same code but in module mode #lang racket (provide run-some-commands) ``` Both work just fine if I use a REPL. The

[racket-users] help on coding finite state automata

2015-09-03 Thread Linh Chi Nguyen
Dear All, I'm a complete newbie in racket and need help in coding finite state machine/automata. Please pardon any of my ignorance. Thanks to this post of Tim Thornton, I see a very good way to code FSM: http://timthornton.net/blog/id/538fa6f2f09a16ba0674813d I'd summarise it as following: A