]> gitweb.factorcode.org Git - factor.git/log
factor.git
2 years agozoneinfo: Fix zome timezone parsing. Fixzoneinfo
Doug Coleman [Sat, 19 Feb 2022 20:31:12 +0000 (14:31 -0600)]
zoneinfo: Fix zome timezone parsing.

2 years agozoneinfo: upgrade
Doug Coleman [Wed, 16 Feb 2022 23:48:10 +0000 (17:48 -0600)]
zoneinfo: upgrade

2 years agohelp.syntax: trim common whitespace from code examples
John Benediktsson [Wed, 16 Feb 2022 04:59:18 +0000 (20:59 -0800)]
help.syntax: trim common whitespace from code examples

2 years agohelp.syntax: use split-lines for now.
John Benediktsson [Wed, 16 Feb 2022 04:34:55 +0000 (20:34 -0800)]
help.syntax: use split-lines for now.

Perhaps we remove common blank prefixes instead so that indentation is
still supported.

2 years agoio.sockets.secure.unix: Disable bad unit test for libssl3
Doug Coleman [Wed, 16 Feb 2022 00:55:23 +0000 (18:55 -0600)]
io.sockets.secure.unix: Disable bad unit test for libssl3

2 years agobootstrap: change array-capacity coercer
John Benediktsson [Tue, 15 Feb 2022 20:56:23 +0000 (12:56 -0800)]
bootstrap: change array-capacity coercer

2 years agoRevert "vm: set array_size_max to fixnum_max."
John Benediktsson [Tue, 15 Feb 2022 20:55:47 +0000 (12:55 -0800)]
Revert "vm: set array_size_max to fixnum_max."

This reverts commit df89e18996f440a61cbdb01204e3654e5642fae6.

2 years agoRevert "layouts: change max-array-capacity to most-positive-fixnum"
John Benediktsson [Tue, 15 Feb 2022 20:55:40 +0000 (12:55 -0800)]
Revert "layouts: change max-array-capacity to most-positive-fixnum"

This reverts commit ffad6a8dc8e33cf9811d08a02cd46aa3fcce8ee0.

2 years agovm: set array_size_max to fixnum_max.
John Benediktsson [Tue, 15 Feb 2022 19:40:27 +0000 (11:40 -0800)]
vm: set array_size_max to fixnum_max.

2 years agolayouts: change max-array-capacity to most-positive-fixnum
John Benediktsson [Tue, 15 Feb 2022 19:27:19 +0000 (11:27 -0800)]
layouts: change max-array-capacity to most-positive-fixnum

2 years agogdbm: removing this test case
John Benediktsson [Tue, 15 Feb 2022 19:21:39 +0000 (11:21 -0800)]
gdbm: removing this test case

2 years agomaze: generate new mazes with a click
John Benediktsson [Tue, 15 Feb 2022 18:07:30 +0000 (10:07 -0800)]
maze: generate new mazes with a click

2 years agovocabs.parser: use left/right quotation marks in note
John Benediktsson [Tue, 15 Feb 2022 17:55:29 +0000 (09:55 -0800)]
vocabs.parser: use left/right quotation marks in note

2 years agobitcoin.client: ahem
John Benediktsson [Tue, 15 Feb 2022 04:32:13 +0000 (20:32 -0800)]
bitcoin.client: ahem

2 years agowebsites.concatenative: adding cgit
John Benediktsson [Tue, 15 Feb 2022 04:11:58 +0000 (20:11 -0800)]
websites.concatenative: adding cgit

2 years agotools.completion: let REUSE: find vocabularies
Doug Coleman [Mon, 14 Feb 2022 23:59:22 +0000 (17:59 -0600)]
tools.completion: let REUSE: find vocabularies

2 years agomath.rectangles.positioning: fix popups that draw super small at the bottom of the...
John Benediktsson [Mon, 14 Feb 2022 00:09:18 +0000 (16:09 -0800)]
math.rectangles.positioning: fix popups that draw super small at the bottom of the screen.

2 years agoalien.libraries.finder: remove find-first-function for now.
John Benediktsson [Sun, 13 Feb 2022 23:09:24 +0000 (15:09 -0800)]
alien.libraries.finder: remove find-first-function for now.

2 years agoopenssl.libssl: simpler for now ssl-peer-certificate.
John Benediktsson [Sun, 13 Feb 2022 23:08:57 +0000 (15:08 -0800)]
openssl.libssl: simpler for now ssl-peer-certificate.

2 years agogrowable: use integer>fixnum-strict
John Benediktsson [Sun, 13 Feb 2022 23:04:51 +0000 (15:04 -0800)]
growable: use integer>fixnum-strict

2 years agoopenssl: hacky way to support SSL_get1_peer_certificate
Doug Coleman [Sun, 13 Feb 2022 22:38:36 +0000 (16:38 -0600)]
openssl: hacky way to support SSL_get1_peer_certificate

2 years agoopenssl.libssl: get the right function for tests too
Doug Coleman [Sun, 13 Feb 2022 22:08:50 +0000 (16:08 -0600)]
openssl.libssl: get the right function for tests too

2 years agoopenssl: SSL_get_peer_certificate is deprecated, use SSL_get1_peer_certificate instead
Doug Coleman [Sun, 13 Feb 2022 22:04:58 +0000 (16:04 -0600)]
openssl: SSL_get_peer_certificate is deprecated, use SSL_get1_peer_certificate instead

SSL_get1_peer_certificate is an alias of SSL_get_peer_certificate but the symbol
SSL_get_peer_certificate is not in openssl 3.0.1 (ubuntu 22)

2 years agoalien.libraries.finder: Add a word to find the first matching function from a list.
Doug Coleman [Sun, 13 Feb 2022 22:04:15 +0000 (16:04 -0600)]
alien.libraries.finder: Add a word to find the first matching function from a list.

2 years agoRevert "float_bits: cleaner way to cast between bits and float/double"
Doug Coleman [Sun, 13 Feb 2022 20:56:04 +0000 (14:56 -0600)]
Revert "float_bits: cleaner way to cast between bits and float/double"

This reverts commit e030e1a62fbf273e353af1f15866f81e2db1284f.

Works but has warnings and is undefined behavior. Also doesn't fix
the issue with NAN: 123 setting the qnan bit.

Can safely use `bit_cast` with C++20 someday.

2 years agofloat_bits: cleaner way to cast between bits and float/double
Doug Coleman [Sun, 13 Feb 2022 17:59:57 +0000 (11:59 -0600)]
float_bits: cleaner way to cast between bits and float/double

2 years agobasis: fix using lists a little
Doug Coleman [Sun, 13 Feb 2022 17:59:41 +0000 (11:59 -0600)]
basis: fix using lists a little

2 years agotools.ps.macosx: use unix.sysctl
John Benediktsson [Sun, 13 Feb 2022 17:31:11 +0000 (09:31 -0800)]
tools.ps.macosx: use unix.sysctl

2 years agosystem-info: implement system-info.freebsd via sysctl
Alex Maestas [Sun, 13 Feb 2022 04:47:21 +0000 (04:47 +0000)]
system-info: implement system-info.freebsd via sysctl

This commit also moves the sysctl interface into unix.sysctl to share
it between OS X and FreeBSD.

2 years agoreadline-listener: change to filter first and then unique
John Benediktsson [Sat, 12 Feb 2022 23:46:58 +0000 (15:46 -0800)]
readline-listener: change to filter first and then unique

2 years agosystem-info.macosx: fix system-code-name for Version 11/12.
John Benediktsson [Sat, 12 Feb 2022 23:38:12 +0000 (15:38 -0800)]
system-info.macosx: fix system-code-name for Version 11/12.

2 years agofreebsd: declare posix_spawn-related types
Alex Maestas [Sat, 12 Feb 2022 22:34:39 +0000 (22:34 +0000)]
freebsd: declare posix_spawn-related types

Copied from OS X declarations as void pointers

2 years agobuild.sh: install bash on freebsd
Alex Maestas [Sat, 12 Feb 2022 22:33:54 +0000 (22:33 +0000)]
build.sh: install bash on freebsd

2 years agoreadline-listener: words are just strings, so display unique ones
John Benediktsson [Sat, 12 Feb 2022 18:55:05 +0000 (10:55 -0800)]
readline-listener: words are just strings, so display unique ones

2 years agoRevert "furnace.chloe-tags: change indexing now that empty strings are not included"
John Benediktsson [Sat, 12 Feb 2022 16:43:49 +0000 (08:43 -0800)]
Revert "furnace.chloe-tags: change indexing now that empty strings are not included"

This reverts commit 6898937ef68210561481777841b2cb4a86bd32dd.

2 years agoRevert "xml: Changing how we represent contained-tags"
John Benediktsson [Sat, 12 Feb 2022 16:43:24 +0000 (08:43 -0800)]
Revert "xml: Changing how we represent contained-tags"

This reverts commit b56d3314b12f7aa223925f97f56cc5faaa7da778.

2 years agofurnace.chloe-tags: change indexing now that empty strings are not included
John Benediktsson [Sat, 12 Feb 2022 16:41:48 +0000 (08:41 -0800)]
furnace.chloe-tags: change indexing now that empty strings are not included

2 years agoeval: another test for eval-with-stack>string
John Benediktsson [Sat, 12 Feb 2022 04:18:57 +0000 (20:18 -0800)]
eval: another test for eval-with-stack>string

2 years agoeval: adding test for eval-with-stack>string
John Benediktsson [Sat, 12 Feb 2022 04:17:58 +0000 (20:17 -0800)]
eval: adding test for eval-with-stack>string

2 years agoeval: don't with-file-vocabs in (eval-with-stack>string)
John Benediktsson [Sat, 12 Feb 2022 04:16:33 +0000 (20:16 -0800)]
eval: don't with-file-vocabs in (eval-with-stack>string)

2 years agoxmode.loader: fix parsing of nodes containing cdata
John Benediktsson [Sat, 12 Feb 2022 04:06:17 +0000 (20:06 -0800)]
xmode.loader: fix parsing of nodes containing cdata

2 years agohtml.templates.chloe: fix tests for script cdata change
John Benediktsson [Sat, 12 Feb 2022 03:57:39 +0000 (19:57 -0800)]
html.templates.chloe: fix tests for script cdata change

2 years agoRevert "io.directories.unix: switch to readdir(3) since readdir_r(3) is deprecated"
John Benediktsson [Sat, 12 Feb 2022 03:53:57 +0000 (19:53 -0800)]
Revert "io.directories.unix: switch to readdir(3) since readdir_r(3) is deprecated"

This reverts commit e0531ea85337e9d1e5af26568436ea23bdaf8e34.

2 years agofixups: fix compute-fixups which was resetting the error value
John Benediktsson [Sat, 12 Feb 2022 02:43:10 +0000 (18:43 -0800)]
fixups: fix compute-fixups which was resetting the error value

And then we got wrong stack traces.

2 years agoio.backend.unix.freebsd: fix bootstrap
John Benediktsson [Sat, 12 Feb 2022 02:26:25 +0000 (18:26 -0800)]
io.backend.unix.freebsd: fix bootstrap

2 years agoxml: Changing how we represent contained-tags
John Benediktsson [Sat, 12 Feb 2022 01:08:21 +0000 (17:08 -0800)]
xml: Changing how we represent contained-tags

If a tag is contained (e.g., <foo/>), then children is ``f``, but if a
tag is uncontained (e.g., <foo></foo>) then children is an empty
sequence.

2 years agowebapps.help: onload javascript to check radio
John Benediktsson [Fri, 11 Feb 2022 23:38:23 +0000 (15:38 -0800)]
webapps.help: onload javascript to check radio

2 years agohtml.templates.chloe: use cdata comment trick.
John Benediktsson [Fri, 11 Feb 2022 23:33:33 +0000 (15:33 -0800)]
html.templates.chloe: use cdata comment trick.

2 years agohtml.templates.chloe: need to do cdata differently
John Benediktsson [Fri, 11 Feb 2022 23:26:09 +0000 (15:26 -0800)]
html.templates.chloe: need to do cdata differently

2 years agohtml.templates.chloe: use CDATA for scripts
John Benediktsson [Fri, 11 Feb 2022 23:20:36 +0000 (15:20 -0800)]
html.templates.chloe: use CDATA for scripts

2 years agoxml: better support for CDATA tags
John Benediktsson [Fri, 11 Feb 2022 23:20:23 +0000 (15:20 -0800)]
xml: better support for CDATA tags

2 years agoui.gadgets.glass: constrain popup over viewport
John Benediktsson [Fri, 11 Feb 2022 22:18:29 +0000 (14:18 -0800)]
ui.gadgets.glass: constrain popup over viewport

2 years agovocabs.metadata: sort metadata-files by filename
John Benediktsson [Fri, 11 Feb 2022 21:41:24 +0000 (13:41 -0800)]
vocabs.metadata: sort metadata-files by filename

2 years agoreadline-listener: experiment with has-readline?
John Benediktsson [Fri, 11 Feb 2022 19:53:35 +0000 (11:53 -0800)]
readline-listener: experiment with has-readline?

if we can detect readline is available then we could use this as
a default listener in the future

2 years agolibclang: try to get return type
Doug Coleman [Fri, 11 Feb 2022 02:45:53 +0000 (20:45 -0600)]
libclang: try to get return type

2 years agolibclang: get args and add huge slow enums
Doug Coleman [Fri, 11 Feb 2022 02:24:24 +0000 (20:24 -0600)]
libclang: get args and add huge slow enums

2 years agoRevert "specialized-arrays: removing unnecessary >pprint-sequence"
John Benediktsson [Thu, 10 Feb 2022 22:25:07 +0000 (14:25 -0800)]
Revert "specialized-arrays: removing unnecessary >pprint-sequence"

This reverts commit bd32633c9272a0bd7b6da60a1533cf1d764cc67c.

2 years agocalendar: change the behavior of 1 months time+
John Benediktsson [Thu, 10 Feb 2022 22:11:49 +0000 (14:11 -0800)]
calendar: change the behavior of 1 months time+

Before, it would create an invalid date:

  IN: scratchpad 2021 1 30 <date> 1 months time+ .
  T{ timestamp
      { year 2021 }
      { month 2 }
      { day 30 }
      { gmt-offset T{ duration { hour -6 } } }
  }

After, it sets it to the last day of the month:

  IN: scratchpad 2021 1 30 <date> 1 months time+ .
  T{ timestamp
      { year 2021 }
      { month 2 }
      { day 28 }
      { gmt-offset T{ duration { hour -8 } } }
  }

2 years agodocuments: fix tests for each-doc-line rename
John Benediktsson [Thu, 10 Feb 2022 21:52:14 +0000 (13:52 -0800)]
documents: fix tests for each-doc-line rename

2 years agospecialized-arrays: removing unnecessary >pprint-sequence
John Benediktsson [Thu, 10 Feb 2022 21:49:19 +0000 (13:49 -0800)]
specialized-arrays: removing unnecessary >pprint-sequence

2 years agouuid: adding uuid-urn word
John Benediktsson [Thu, 10 Feb 2022 21:49:09 +0000 (13:49 -0800)]
uuid: adding uuid-urn word

2 years agoio.directories.unix: switch to readdir(3) since readdir_r(3) is deprecated
John Benediktsson [Thu, 10 Feb 2022 21:47:22 +0000 (13:47 -0800)]
io.directories.unix: switch to readdir(3) since readdir_r(3) is deprecated

2 years agoui.tools: setting current directory to "resource:"
John Benediktsson [Thu, 10 Feb 2022 21:46:58 +0000 (13:46 -0800)]
ui.tools: setting current directory to "resource:"

2 years agovm: os-macosx.mm don't changeCurrentDirectoryPath
John Benediktsson [Thu, 10 Feb 2022 21:44:56 +0000 (13:44 -0800)]
vm: os-macosx.mm don't changeCurrentDirectoryPath

2 years agoRefactor VM (untyped) defines into (typed) enum
nomennescio [Thu, 10 Feb 2022 15:50:59 +0000 (15:50 +0000)]
Refactor VM (untyped) defines into (typed) enum

static inline with static local will share static local among instances

2 years agocodebase-analyzer: Add some words to see file extensions, sizes, lines of code
Doug Coleman [Thu, 10 Feb 2022 02:39:36 +0000 (20:39 -0600)]
codebase-analyzer: Add some words to see file extensions, sizes, lines of code

2 years agolibclang: Add a really basic wrapper for libclang
Doug Coleman [Tue, 8 Feb 2022 06:59:32 +0000 (00:59 -0600)]
libclang: Add a really basic wrapper for libclang

We should use this stub to output ffi functions that
Factor can use.

2 years agoFix issue https://github.com/factor/factor/issues/2580
nomennescio [Mon, 7 Feb 2022 12:37:11 +0000 (13:37 +0100)]
Fix issue https://github.com/factor/factor/issues/2580

2 years agomodern.html: Less stack crap
Doug Coleman [Sun, 6 Feb 2022 22:04:07 +0000 (16:04 -0600)]
modern.html: Less stack crap

2 years agomodern.html: support <?xml a="b" ?> processing instructions
Doug Coleman [Sun, 6 Feb 2022 19:51:27 +0000 (13:51 -0600)]
modern.html: support <?xml a="b" ?> processing instructions

2 years agomodern.html: Fix parser for <div><div></div></div>
Doug Coleman [Sun, 6 Feb 2022 18:07:12 +0000 (12:07 -0600)]
modern.html: Fix parser for <div><div></div></div>

It was matching on fully closed tags

2 years agowebsites.factorcode: Add a lang="en" on html
Doug Coleman [Sat, 5 Feb 2022 19:12:17 +0000 (13:12 -0600)]
websites.factorcode: Add a lang="en" on html

2 years agowebsites.factorcode: Add some %20 in links, add closing />, remove Slack link
Doug Coleman [Sat, 5 Feb 2022 19:08:51 +0000 (13:08 -0600)]
websites.factorcode: Add some %20 in links, add closing />, remove Slack link

2 years agolistener: rename (listener) to listener-loop
John Benediktsson [Sat, 5 Feb 2022 05:31:07 +0000 (21:31 -0800)]
listener: rename (listener) to listener-loop

2 years agoeval: fix help-lint
John Benediktsson [Fri, 4 Feb 2022 23:56:51 +0000 (15:56 -0800)]
eval: fix help-lint

2 years agoeval: separate eval-with-stack and eval-with-stack>string
John Benediktsson [Fri, 4 Feb 2022 23:24:19 +0000 (15:24 -0800)]
eval: separate eval-with-stack and eval-with-stack>string

these might need better names?

2 years agolistener: use prettyprint:datastack.
John Benediktsson [Fri, 4 Feb 2022 23:24:05 +0000 (15:24 -0800)]
listener: use prettyprint:datastack.

2 years agoprettyprint: adding a datastack. word
John Benediktsson [Fri, 4 Feb 2022 23:23:30 +0000 (15:23 -0800)]
prettyprint: adding a datastack. word

since we use this in a few places

2 years agosyntax: fix docs for run-script.
John Benediktsson [Fri, 4 Feb 2022 06:13:34 +0000 (22:13 -0800)]
syntax: fix docs for run-script.

2 years agocommand-line: moving run-script to command-line.startup
John Benediktsson [Fri, 4 Feb 2022 06:03:16 +0000 (22:03 -0800)]
command-line: moving run-script to command-line.startup

2 years agocommand-line: print the remaining data stack on run-script
John Benediktsson [Fri, 4 Feb 2022 05:52:49 +0000 (21:52 -0800)]
command-line: print the remaining data stack on run-script

2 years agocommand-line.startup: use eval-with-stack, don't jump to listener
John Benediktsson [Fri, 4 Feb 2022 05:52:27 +0000 (21:52 -0800)]
command-line.startup: use eval-with-stack, don't jump to listener

2 years agoeval: adding eval-with-stack
John Benediktsson [Fri, 4 Feb 2022 05:51:56 +0000 (21:51 -0800)]
eval: adding eval-with-stack

2 years agocommand-line.startup: always eval and run-script with auto-use
John Benediktsson [Fri, 4 Feb 2022 04:29:40 +0000 (20:29 -0800)]
command-line.startup: always eval and run-script with auto-use

drop into a listener if there are restartable errors

2 years agodocuments: rename each-line to each-doc-line and map-lines to map-doc-lines
John Benediktsson [Fri, 4 Feb 2022 04:27:53 +0000 (20:27 -0800)]
documents: rename each-line to each-doc-line and map-lines to map-doc-lines

2 years agovocabs.platforms: Add words to possibly replace `cond require` for platforms
Doug Coleman [Fri, 4 Feb 2022 04:07:50 +0000 (22:07 -0600)]
vocabs.platforms: Add words to possibly replace `cond require` for platforms

2 years agomodels: remove double space in docs
John Benediktsson [Thu, 3 Feb 2022 18:54:34 +0000 (10:54 -0800)]
models: remove double space in docs

2 years agodocuments.elements: adding some documentation.
John Benediktsson [Thu, 3 Feb 2022 18:52:15 +0000 (10:52 -0800)]
documents.elements: adding some documentation.

2 years agoui.tools.button-list: use linked-assocs to keep buttons in order
John Benediktsson [Thu, 3 Feb 2022 18:46:03 +0000 (10:46 -0800)]
ui.tools.button-list: use linked-assocs to keep buttons in order

2 years agoui.gadgets.search-tables: remove delay
John Benediktsson [Thu, 3 Feb 2022 18:44:37 +0000 (10:44 -0800)]
ui.gadgets.search-tables: remove delay

2 years agovocabs.platforms: Add some more experimental USE: style words.
Doug Coleman [Thu, 3 Feb 2022 06:14:54 +0000 (00:14 -0600)]
vocabs.platforms: Add some more experimental USE: style words.

examples:

USE-IF: roman [ os macosx? ]

USE-UNIX: io.unix

USE-WINDOWS: windows

  old:
{
    { [ os windows? ] [ "alien.libraries.windows" ] }
    { [ os unix? ] [ "alien.libraries.unix" ] }
} cond require

  new:
USE-WINDOWS: alien.libraries.windows
USE-UNIX: alien.libraries.unix

2 years agosuccessor: fix typo in docs
Doug Coleman [Thu, 3 Feb 2022 05:55:10 +0000 (23:55 -0600)]
successor: fix typo in docs

2 years agodns: Fix dns query for "." and add more types
Doug Coleman [Thu, 3 Feb 2022 02:40:26 +0000 (20:40 -0600)]
dns: Fix dns query for "." and add more types

2 years agoalien.enums: Add values>enum word
Doug Coleman [Thu, 3 Feb 2022 02:18:52 +0000 (20:18 -0600)]
alien.enums: Add values>enum word

2 years agoui.tools.operations: Don't annotate regular objects, only words.
Doug Coleman [Wed, 2 Feb 2022 06:29:55 +0000 (00:29 -0600)]
ui.tools.operations: Don't annotate regular objects, only words.

2 years agoui.tools.operations: use without-limits for unparse and add copy object
Doug Coleman [Wed, 2 Feb 2022 06:14:04 +0000 (00:14 -0600)]
ui.tools.operations: use without-limits for unparse and add copy object

For large JSON objects, unparsing would show ~2600 more~ instead of all
of the text. Also realized I could add a copy command to unparse into
the clipboard directly

Use ... for prettyprint

2 years agojamshred: Fix specialized-arrays using
Doug Coleman [Wed, 2 Feb 2022 06:01:42 +0000 (00:01 -0600)]
jamshred: Fix specialized-arrays using

2 years agoRevert "classes.struct: Don't depend on smart combinators"
Doug Coleman [Mon, 31 Jan 2022 00:05:35 +0000 (18:05 -0600)]
Revert "classes.struct: Don't depend on smart combinators"

This reverts commit a3b906157a0a90b2cbc52dc74f012e7352226c28.

2 years agoclasses.struct: Don't depend on smart combinators
Doug Coleman [Sun, 30 Jan 2022 23:52:30 +0000 (17:52 -0600)]
classes.struct: Don't depend on smart combinators

2 years agotensors.tensor-slice: move step-slice to sequences.extras
John Benediktsson [Sun, 30 Jan 2022 21:25:12 +0000 (13:25 -0800)]
tensors.tensor-slice: move step-slice to sequences.extras