SRFI 201 and 202: a reference implelmentation and an invitation to discussion

2020-11-23 Thread Panicz Maciej Godek
Hi, A while ago I proposed a few SRFIs, in particular https://srfi.schemers.org/srfi-201, which provides extensions to core bindings (define, lambda, let, let*, or) https://srfi.schemers.org/srfi-201, which extends SRFI 2 with the capability of pattern matching Recently, with a second draft, I

Re: Wisp as shipped language in Guile?

2017-05-13 Thread Panicz Maciej Godek
2017-05-13 3:52 GMT+02:00 Mark H Weaver : > Hi Arne, > > Arne Babenhauserheide writes: > > A few weeks ago I asked in IRC whether wisp[1] could be included with > > Guile in modules/language/wisp to allow every guile users to run wisp > > code from any Guile

Re: srfi-1 take and drop seriously broken

2016-11-21 Thread Panicz Maciej Godek
2016-11-21 8:34 GMT+01:00 Jan Synáček : > > Ok. Apart from the fact that it's written in srfi, I wonder what the > reasoning for such behavior is. I mean, what makes the "i" bigger than > the length of the list so illegal that you have to bail out? When is > such behavior

Re: srfi-1 take and drop seriously broken

2016-11-20 Thread Panicz Maciej Godek
2016-11-20 11:42 GMT+01:00 Jan Synáček : > > >> Please, tell me that this is just a mistake... This can't be true. I > >> still can't believe it. This is from 2.0.11. Please, tell me that the > >> implementation is fixed in 2.2. > >> > >> Yours truly puzzled, > > > > > > I

Re: srfi-1 take and drop seriously broken

2016-11-19 Thread Panicz Maciej Godek
2016-11-19 19:34 GMT+01:00 Jan Synáček : > Hi, > > scheme@(guile-user)> ,use (srfi srfi-1) > scheme@(guile-user)> (take (list 1 2 3) 4) > ERROR: In procedure list-head: > ERROR: In procedure list-head: Wrong type argument in position 1 > (expecting pair): () > >

Re: Shorter lambda expressions

2016-09-24 Thread Panicz Maciej Godek
2016-09-23 18:44 GMT+02:00 Panicz Maciej Godek <godek.mac...@gmail.com>: > I hope you don't mind me having dug this thread up, with an idea that is > only loosely related with the original one. > > Recently I've been doing a small project in Clojure, and I've found that > i

Re: Shorter lambda expressions

2016-09-23 Thread Panicz Maciej Godek
I hope you don't mind me having dug this thread up, with an idea that is only loosely related with the original one. Recently I've been doing a small project in Clojure, and I've found that it provides a function called "partial" that performs a sort of partial application. With guile's curried

Re: anyone define port types?

2016-03-30 Thread Panicz Maciej Godek
2016-03-30 19:53 GMT+02:00 Marko Rauhamaa : > I like OOP, only I don't like GOOPS. Its classes and generic functions > seem so idiomatically out of place, unschemish, if you will. > > This is how OOP ought to be done: > >

Re: anyone define port types?

2016-03-30 Thread Panicz Maciej Godek
2016-03-30 13:18 GMT+02:00 Jan Nieuwenhuizen <jann...@gnu.org>: > Panicz Maciej Godek writes: > > > I also used GOOPS, which I regret to this day, and so the > > whole framework needs a serious rewrite > > What is it that you do not like about GOOPS? Most spec

Re: anyone define port types?

2016-03-30 Thread Panicz Maciej Godek
Hi Andy, I have been using soft ports to implement a text widget in my GUI framework. I also used GOOPS, which I regret to this day, and so the whole framework needs a serious rewrite, but if you're collecting various species to the museum of make-soft-port, you can have a look:

Re: What is needed in guildhall to include it in Guile?

2016-02-22 Thread Panicz Maciej Godek
Hi Arne! 2016-02-22 16:08 GMT+01:00 Arne Babenhauserheide : > Hi, > > In january there was a thread here about Guildhall with the notion > > > I encourage you to hack on Guildhall to make it more usable for your > > needs. > > I finished my PhD last month, so I have some

Re: Towards De-icing ice-9 modules.

2016-02-12 Thread Panicz Maciej Godek
2016-02-12 21:41 GMT+01:00 Chad Albers : > Hi, > > In my attempt to assist the guile project, I thought I would share a > document on a plan to migrate some of the ice-9 modules into a more > intuitive, yet to be decided, namespace. Before I proposed a technological >

Re: I wrote fluid advection code: How to make this more elegant?

2016-01-23 Thread Panicz Maciej Godek
Hi, although I cannot be of immediate help with the topic, because I don't know anything about advection, I think that the main problem with your code is that it is imperative. While Python's stylistics handles the imperative code quite nicely, it looks rather strange in Scheme. >From my

Re: Request for feedback on SRFI-126

2015-09-28 Thread Panicz Maciej Godek
2015-09-28 10:13 GMT+02:00 Taylan Ulrich Bayırlı/Kammer < taylanbayi...@gmail.com>: > Panicz Maciej Godek <godek.mac...@gmail.com> writes: > > > > Maybe you should explain why there are so many implementations of > > Scheme in the first place? (That isn't the

Re: Request for feedback on SRFI-126

2015-09-27 Thread Panicz Maciej Godek
Hi, while I have nothing to say regarding the details of your SRFI, I find some of your motivations questionable, and therefore I decided to write this reply. Forgive the somewhat "negative" tone of this e-mail, despite my intentions being positive. > I've made pretty fine experiences with

Re: Request for feedback on SRFI-126

2015-09-27 Thread Panicz Maciej Godek
> > > > I've made pretty fine experiences with R7RS-small so far[0][1][2] > > [3], and after seeing people's disdain towards R7RS-large's > > direction and agreeing with them (although I wouldn't trust my own > > judgment alone), I've decided to try pushing R7RS-large in a > >

Re: Guile Assembler

2015-09-04 Thread Panicz Maciej Godek
2015-09-04 2:54 GMT+02:00 Mark H Weaver <m...@netris.org>: > Panicz Maciej Godek <godek.mac...@gmail.com> writes: > > > It is not a patch though, but just a separate module called (ice-9 > > nice-9) that is meant to be placed in the "ice-9" directo

Re: Making apostrophe, backtick, etc. hygienic?

2015-08-31 Thread Panicz Maciej Godek
2015-08-30 16:47 GMT+02:00 Taylan Ulrich Bayırlı/Kammer < taylanbayi...@gmail.com>: > Panicz Maciej Godek <godek.mac...@gmail.com> writes: > > > Your point is that quote (and unquote, and quasiquote, and syntax, and > > unsyntax, and quasisyntax) is a reader macro, s

Re: Making apostrophe, backtick, etc. hygienic?

2015-08-30 Thread Panicz Maciej Godek
2015-08-30 14:30 GMT+02:00 Taylan Ulrich Bayırlı/Kammer taylanbayi...@gmail.com: This is a bit of a crank idea, but here goes. Today I wasted some time trying to find the bug in the following piece of code: (define (syntax-car syntax) (syntax-case syntax () ((car . cdr) #'car)))

Re: Making apostrophe, backtick, etc. hygienic?

2015-08-30 Thread Panicz Maciej Godek
2015-08-30 15:16 GMT+02:00 Taylan Ulrich Bayırlı/Kammer taylanbayi...@gmail.com: Panicz Maciej Godek godek.mac...@gmail.com writes: You mean that #'x is synonymous to (syntax x), and that's where the problem stems from? Yup. I shadow 'syntax', but I don't explicitly shadow #'. It gets

Re: Guile Assembler

2015-06-24 Thread Panicz Maciej Godek
24 cze 2015 10:34 to...@tuxteam.de napisał(a): In addition, the module allows me to use the let and let* forms with multiple values: (let ((a (b c) (values 1 '(2 3 (+ a b c)) Any chance to see that in Guile? The module actually works with guile (it replaces the default bindings

Re: Guile Assembler

2015-06-24 Thread Panicz Maciej Godek
2015-06-24 11:44 GMT+02:00 Panicz Maciej Godek godek.mac...@gmail.com: I could prepare a smaller version of the module that perhaps could make it into the official distribution, if guile maintainers have nothing against, and send a patch I include the aforementioned. It is not a patch though

Re: Guile Assembler

2015-06-23 Thread Panicz Maciej Godek
Hm. Where's the difference to Guile's define? And why do you have double parentheses in your example? Still a bit lost. hmm...do you read the pasted code in the repo? ;-) Not yet, I must admit. But nevermind, got it. It looks like a definition for a parametric func or for a

Re: goops - guile-clutter unexpected bug while using #:virtual slot allocation for a clutter-actor subclass

2014-12-19 Thread Panicz Maciej Godek
Hi, My first impression is that the error might be caused by using the combination of #:allocation #:virtual and #:init-keyword for the colour slot. Since #:init-keyword initializes slot value with a given value, and virtual slots have no actual value, the semantics of such operation is rather

Re: Add support for record types in GOOPS methods?

2014-10-21 Thread Panicz Maciej Godek
2014-10-21 16:57 GMT+02:00 Dave Thompson dthomps...@worcester.edu: Hello all, Last night, I encountered what I consider to be a frustrating limitation of GOOPS methods: They do not support record type descriptors, only classes. This makes it difficult to take advantage of generic

Re: Dijkstra's Methodology for Secure Systems Development

2014-09-21 Thread Panicz Maciej Godek
2014-09-20 14:46 GMT+02:00 Taylan Ulrich Bayirli/Kammer taylanbayi...@gmail.com: Panicz Maciej Godek godek.mac...@gmail.com writes: [...] First of all let me say I agree with you; guile-devel is the wrong place to discuss these things. Having this settled, let's proceed with our

Re: Dijkstra's Methodology for Secure Systems Development

2014-09-21 Thread Panicz Maciej Godek
2014-09-21 13:11 GMT+02:00 Taylan Ulrich Bayirli/Kammer taylanbayi...@gmail.com: [...] Still, one last political remark from me: Things are more complicated. Google might be incapable of evil, but then they might be a tool of the US government. Not calling the US government evil either,

Re: Dijkstra's Methodology for Secure Systems Development

2014-09-20 Thread Panicz Maciej Godek
Hey, Maybe I'm a fucking ignorant jumped-up little prick, but at least I don't stink ;] Actually I don't think that you did put yourself into a particulatly comfortable position, and even if you don't care what the people around you think, maintaining personal hygiene seems like The Right Thing

Re: Dijkstra's Methodology for Secure Systems Development

2014-09-19 Thread Panicz Maciej Godek
Hi. I've observed that some time ago you started sending tons of revolutionary ideas regarding the way the software should be written, and crtiticising the current practices. I am not in the position to refer to those ideas, because I didn't manage to comprehend them fully (although I am trying

Re: Docstring as only form in a function

2014-02-20 Thread Panicz Maciej Godek
2014-02-20 17:59 GMT+01:00 Arne Babenhauserheide arne_...@web.de: Hi, I recently experimented with docstrings, and I stumbled over not being able to define a function which only has a docstring as body: (define (foo) bar) (procedure-documentation foo) = #f Adding a

Re: Shorter lambda expressions

2014-01-23 Thread Panicz Maciej Godek
Hi! 2014/1/23 Mark H Weaver m...@netris.org: Hello all, For a short time I liked 'cut' from SRFI-26, but I soon became frustrated by its limitations, most notably not being able to reference the arguments out of order or within nested expressions. I don't like the inconsistent style that

Re: [PATCH] Fix thread-unsafe lazy initializations

2014-01-23 Thread Panicz Maciej Godek
2014/1/23 Mark H Weaver m...@netris.org: This patch fixes all of the thread-unsafe lazy initializations I could find in stable-2.0, using 'scm_i_pthread_once'. Any comments and/or objections? Does this fix the error that Chris Vine found some time ago? If so, is there any test in the test

Re: [PATCH] Fix thread-unsafe lazy initializations

2014-01-23 Thread Panicz Maciej Godek
2014/1/23 Mark H Weaver m...@netris.org: Does this fix the error that Chris Vine found some time ago? Probably not, but who knows? Would you like to try? Sure, but it will take some time, because I have to set up the build environment first. I think I'll have it by tomorrow, if that's ok.

Fwd: Guile interpeter crash

2013-10-01 Thread Panicz Maciej Godek
-- Forwarded message -- From: Panicz Maciej Godek godek.mac...@gmail.com Date: 2013/10/1 Subject: Re: Guile interpeter crash To: Dmitry Bogatov kact...@gnu.org 2013/10/1 Dmitry Bogatov kact...@gnu.org Here is code that results crash (return 134). Hope it is interesting

Inconsistent behaviour of the pattern matcher

2013-04-28 Thread Panicz Maciej Godek
Hi, I've traced something that is not entirely a bug, but which was a little surprise for me. It has to do with the extensions that guile provides to the Scheme language -- namely, uniform vectors and arrays. The (ice-9 match) module offers the syntax (match #(1 2 3) (#(a b c) (list a b c)))

Re: Fun with guile, Erastones + goldbach conjecture

2013-04-09 Thread Panicz Maciej Godek
Hey, I see that the style of your code is fairly unorthodox. I'd suggest you to read the following chapters of SICP, if you haven't already: Section 3.5 (Streams), which introduces the notion of streams, or lazy lists (that can be infinite), with the most amazing example of Erastostenes' sieve