Re: Promises and MySql seem to not return

2024-03-20 Thread Chris Angelico
On Wed, 20 Mar 2024 at 21:30, Henrik Grubbström wrote: > > Thanks for the report and test case. > > Fixed in Pike master. It was due to the initialization order > in Sql.Promise::create(). Thanks! Confirmed fixed. > > Side note: Pike actually doesn't build against the latest MySQL due to > >

Re: Promises and MySql seem to not return

2024-03-19 Thread Chris Angelico
etting asynchronous requests to work. > > > > If we use `dbconn->typed_query`, we get the expected response. > > > > With promise_query, seeing: `SQL status: still running...` > > > > Chris Angelico promises (pun intended) to pry further into it, and I > >

Re: Hash mark prefix to a string

2022-05-28 Thread Chris Angelico
On Sun, 29 May 2022 at 10:21, Duke Normandin wrote: > > I asked this question on the Pike channel on libera.chat but nobody > is lurking at the moment. :) > > what does the # mean herein the following? > > [code] > str = > #"This is a multiline string > terminated by a double-quote like any other

Re: Pike in the News

2022-05-22 Thread Chris Angelico
On Mon, 23 May 2022 at 05:28, wrote: > b) Where's the source code? > > Here, I actually sort of agree that there's a discoverability problem. Yeah, more than sort-of for me; I can't really just link someone to the landing page and assume that they'll be able to find everything. Not sure that it

Re: Where have all the Pikers gone?

2022-05-20 Thread Chris Angelico
On Sat, 21 May 2022 at 09:42, chikega wrote: > > I’m a new learner. It's interesting to see results on Google Trend comparing > various high-level programming languages like Perl, PHP, Ruby, Lua. When I > punch in 'Pike programming language', I get this: "Hmm, your search doesn't > have enough

Re: Where have all the Pikers gone?

2022-05-20 Thread Chris Angelico
On Fri, 20 May 2022 at 23:51, Duke Normandin wrote: > > On Fri, 20 May 2022 12:55:32 +0200 > "Stephen R. van den Berg" wrote: > > > Duke Normandin wrote: > > >Awesome! So it seems to me that Pike should be able to give Ruby, > > >PHP, Perl, Python etc a good run for their money in the Web > >

Re: OOP syntax help

2022-01-07 Thread Chris Angelico
On Sat, Jan 8, 2022 at 11:12 AM Duke Normandin wrote: > > On Sat, 8 Jan 2022 10:58:53 +1100 > Chris Angelico wrote: > > [snip] > > > > "animal my_dog = animal(); ?? It seems to me that this should be > > > the cloning statement to create a pa

Re: OOP syntax help

2022-01-07 Thread Chris Angelico
On Sat, Jan 8, 2022 at 10:46 AM Duke Normandin wrote: > > I've /never/ been fond of OOP, but if I'm to continue with Pike, I > figure I should at least try to understand Pike's very of OOP. > > From: https://pike.lysator.liu.se/docs/tut/oop/creation_and_usage.md > > [quote] > Creating and Using

Re: Defining Functions / Procedures

2021-12-09 Thread Chris Angelico
On Fri, Dec 10, 2021 at 1:10 PM Duke Normandin wrote: > > Greetings .. > > function hello =lambda() {} > > or > > void hello() {} > > In Pike, which form is prefered or optimal? Why? > TIA ... Definitely the second, unless you need it to be a variable. ChrisA

Re: Fredrik Hübinette Book

2021-10-20 Thread Chris Angelico
On Wed, Oct 20, 2021 at 9:10 PM Robert J. Budzyński wrote: > > > > On Wed, Oct 20, 2021 at 7:44 AM Chris Angelico wrote: >> >> On Wed, Oct 20, 2021 at 2:44 PM James Latham wrote: >> > >> > Dear Pike lovers: >> > Thanks for the very inform

Re: Fredrik Hübinette Book

2021-10-19 Thread Chris Angelico
On Wed, Oct 20, 2021 at 2:44 PM James Latham wrote: > > Dear Pike lovers: > Thanks for the very informative Blog that you have created. > I would love to join in. > Is there any way to create a distributable pike program? > Ideally it would be all in one module. > Jim Latham Yes, absolutely!

Re: Fredrik Hübinette Book

2021-10-19 Thread Chris Angelico
On Wed, Oct 20, 2021 at 8:11 AM Chris Angelico wrote: > > On Wed, Oct 20, 2021 at 8:09 AM wrote: > > > There are some fairly cool features in the latest Pike builds that, to > > > my knowledge, aren't well documented yet. Maybe someone - and I'm > > > fully

Re: Fredrik Hübinette Book

2021-10-19 Thread Chris Angelico
On Wed, Oct 20, 2021 at 8:09 AM wrote: > > There are some fairly cool features in the latest Pike builds that, to > > my knowledge, aren't well documented yet. Maybe someone - and I'm > > fully aware that that probably means "I" - should put together an > > example of a socket server with

Re: Fredrik Hübinette Book

2021-10-19 Thread Chris Angelico
On Wed, Oct 20, 2021 at 6:19 AM H William Welliver wrote: > The only major flaw I am aware of is that the GTK example doesn’t work as > described because GTK1 isn’t supported anymore and it wasn’t updated to GTK2. > ... and needs to be updated to GTK3 if it's to survive. As the Red Queen

Re: Arrays

2021-10-18 Thread Chris Angelico
On Tue, Oct 19, 2021 at 10:03 AM Duke Normandin wrote: > > On Tue, 19 Oct 2021 09:26:34 +1100 > Chris Angelico wrote: > > > On Tue, Oct 19, 2021 at 9:19 AM Duke Normandin > > wrote: > > > > > > Pike v8.0 release 702 running Hilfe v3.5 (Incremental Pike

Re: Arrays

2021-10-18 Thread Chris Angelico
On Tue, Oct 19, 2021 at 9:19 AM Duke Normandin wrote: > > Pike v8.0 release 702 running Hilfe v3.5 (Incremental Pike Frontend) > > > array(string) flat = ({"this", "that", "the", "other"}); > > flat[1];(4) Result: "that" > > > flat[1]=3; > (5) Result: 3 > > > flat[1]; > (6) Result: 3 > > I was

Re: Where have all the Pikers gone?

2021-10-07 Thread Chris Angelico
On Fri, Oct 8, 2021 at 4:00 PM Duke Normandin wrote: > > On Fri, 8 Oct 2021 15:53:56 +1100 > Chris Angelico wrote: > > [snip] > > > > Good to know! This Pike noob was getting worried! It just > > > seemed to me - at first glance - that Pike should be as

Re: Where have all the Pikers gone?

2021-10-07 Thread Chris Angelico
On Fri, Oct 8, 2021 at 3:43 PM Duke Normandin wrote: > > On Fri, 8 Oct 2021 15:04:47 +1100 > Chris Angelico wrote: > > > On Fri, Oct 8, 2021 at 2:57 PM Duke Normandin > > wrote: > > > > > > Long time passing ... > > > > > > Is this

Re: Where have all the Pikers gone?

2021-10-07 Thread Chris Angelico
On Fri, Oct 8, 2021 at 2:57 PM Duke Normandin wrote: > > Long time passing ... > > Is this list/language THAT dead? > No community chatter? At all? No users? > > Maybe everybody is on IRC maybe? Is there an IRC Pike channel? > It's been pretty quiet here. The language itself still sees changes