civodul

civodul commented on issue guile-zlib/guile-zlib#4

uncompress: The procedure fails when input data compression ratio is big

Hello @a_v_p,

1 month ago

civodul closed pull request guile-zlib/guile-zlib#3

Inherit encoding on port creation

1 month ago

civodul commented on issue guile-zlib/guile-zlib#3

Inherit encoding on port creation

Pushed as 5ee750969b90246857c26bb917cfcbae9135f6d4, thanks!

1 month ago

civodul pushed to master at guile-zlib/guile-zlib

  • 13c51267d1 maint: Update ‘guix.scm’. * guix.scm: Use ‘local-file’ for source. Remove input labels. Add synopsis, description, and home page.
  • b88f70b423 Update NEWS.
  • 5ee750969b On port creation, inherit the encoding of original ports * zlib.scm (make-gzip-input-port, make-gzip-output-port, make-zlib-output-port, make-zlib-input-port): As stated. * tests/zlib.scm: Test.
  • View comparison for these 3 commits »

1 month ago

civodul closed issue guile-zlib/guile-zlib#4

uncompress: The procedure fails when input data compression ratio is big

2 months ago

civodul commented on issue guile-zlib/guile-zlib#4

uncompress: The procedure fails when input data compression ratio is big

Merged, thanks @a_v_p!

2 months ago

civodul pushed to master at guile-zlib/guile-zlib

  • 9a32cef04a zlib.scm: Improve the heuristics of the bytevector size calculation * zlib.scm (%uncompress2): New FFI procedure. (uncompress): Improve the heuristics of the output bytevector size calculation. [try-uncompress]: Use "%uncompress2". Return the read source length as the 3rd parameter. [try-again]: Calculate the next output bytevector size as proportion, using the values of the read compressed data length and the current output bytevector size.
  • 575bf517b4 tests/zlib.scm: Add a new test * tests/zlib.scm ("uncompress: High compression ratio"): New test.
  • 38a7a7def6 zlib (uncompress): Bugfix: Handle big compression ratios properly The "uncompress" procedure would fail to allocate enough memory for the output data when the input data compression ratio is big. This patch fixes it by increasing the memory size multiplier itself with each memory increasing step. * zlib.scm (uncompress): Bugfix: Handle big compression ratios properly by increase the memory multiplier each time the procedure allocates a bigger bytevector for the output data.
  • View comparison for these 3 commits »

2 months ago

civodul commented on issue guile-sqlite3/guile-sqlite3#19

Add sqlite-last-insert-rowid.

Neat, thank you @pukkamustard!

4 months ago

civodul merged pull request guile-sqlite3/guile-sqlite3#19

Add sqlite-last-insert-rowid.

4 months ago

civodul closed pull request guile-sqlite3/guile-sqlite3#19

Add sqlite-last-insert-rowid.

4 months ago

civodul commented on issue guile-zlib/guile-zlib#4

uncompress: The procedure fails when input data compression ratio is big

Hi!

5 months ago

civodul created pull request cwebber/guile-squee#8

Clear the connection-to-port mapping for new connections.

10 months ago

civodul pushed to socket-port-memoization-fix at civodul/guile-squee

  • 4c8bd3d735 Clear the connection-to-port mapping for new connections. Fixes a bug whereby 'PQconnectdb' might return the pointer of a previously-closed connection, leading 'wrap-pg-conn' to return the object corresponding to that old connection, leading 'connection-socket-port' to return a port for the file descriptor of that old connection—possibly the wrong file descriptor. See <https://issues.guix.gnu.org/64297#1>. * squee.scm (%connection-socket-table): New variable. (connection-socket-port): Use it instead of a closed over table. (pg-conn-finish, connect-to-postgres-paramstring): Add 'hashq-remove!' call.
  • fab9d95907 Fix handling for exec-query with multiple statements
  • 89cdb9b115 Merge branch 'non-blocking-queries' of civodul/guile-squee into master
  • 67bd6c3679 Implement non-blocking queries, cooperating with suspendable ports. This uses the asynchronous interface of libpq to execute queries, as documented at: https://www.postgresql.org/docs/current/libpq-async.html After sending the query, 'exec-query' invokes Guile's 'current-read-waiter' to wait on the underlying file descriptor. This should make it more usable in a fiberized context.
  • a151fd006f Merge branch 'master' of mothacehe/guile-squee into master

10 months ago

civodul created new branch socket-port-memoization-fix at civodul/guile-squee

10 months ago

civodul created pull request cwebber/guile-squee#7

Non-blocking 'exec-query', for use in Fiberized programs

11 months ago

civodul pushed to non-blocking-queries at civodul/guile-squee

  • 67bd6c3679 Implement non-blocking queries, cooperating with suspendable ports. This uses the asynchronous interface of libpq to execute queries, as documented at: https://www.postgresql.org/docs/current/libpq-async.html After sending the query, 'exec-query' invokes Guile's 'current-read-waiter' to wait on the underlying file descriptor. This should make it more usable in a fiberized context.
  • a151fd006f Merge branch 'master' of mothacehe/guile-squee into master
  • e0614273ad Use PQexec for queries without arguments. PQexecParams allows at most one SQL command in the given string. When loading an SQL file, it forces the user to parse the commands beforehand, using semi-colons. When dealing with trigger functions that may contains nested semi-colons the parsing is problematic. The PQexec function accepts multiple queries and process them is a single transaction. It is more suited to load an SQL command file. Adapt exec-query procedure so that it uses PQexec function when no arguments are passed and PQexecParams otherwise. * squee.scm (%PQexec): New procedure. (exec-query): Using when no arguments are passed.
  • c1497a216e Merge branch 'master' of mothacehe/guile-squee into master
  • a9826cf17a Return the affected rows count. * squee.scm (%PQcmdtuples): New variable. (exec-query): Return the number of affected rows when the command doesn't return tuples. That's the case for an UPDATE or DELETE query for instance.

11 months ago

civodul created new branch non-blocking-queries at civodul/guile-squee

11 months ago

civodul forked a repository to civodul/guile-squee

11 months ago

civodul pushed tag v0.4.0 to cwebber/guile-gcrypt

1 year ago

civodul pushed to master at cwebber/guile-gcrypt

  • 425554d432 build: Bump version to 0.4.0. * configure.ac: Bump to 0.4.0.

1 year ago