]> gitweb.factorcode.org Git - factor.git/log
factor.git
4 years agowindows.kernel32: add GetLogicalDriveStrings
Alexander Iljin [Fri, 9 Aug 2019 06:16:39 +0000 (08:16 +0200)]
windows.kernel32: add GetLogicalDriveStrings

4 years agowindows.version: new vocab
Alexander Iljin [Sat, 12 Oct 2019 11:44:11 +0000 (13:44 +0200)]
windows.version: new vocab

4 years agoalien.data-docs: fix a typo
Alexander Iljin [Fri, 29 Mar 2019 23:54:38 +0000 (00:54 +0100)]
alien.data-docs: fix a typo

4 years agoio.files.windows: rename a stack effect to make it more readable
Alexander Iljin [Mon, 10 Dec 2018 15:03:13 +0000 (16:03 +0100)]
io.files.windows: rename a stack effect to make it more readable

4 years agosodium: fix help-lint warnings.
John Benediktsson [Mon, 13 Apr 2020 18:16:18 +0000 (11:16 -0700)]
sodium: fix help-lint warnings.

4 years agosodium.secure-memory: fix return type of secure-memory=.
John Benediktsson [Mon, 13 Apr 2020 18:13:20 +0000 (11:13 -0700)]
sodium.secure-memory: fix return type of secure-memory=.

4 years agomirrors: make failures check error type.
John Benediktsson [Mon, 13 Apr 2020 17:53:22 +0000 (10:53 -0700)]
mirrors: make failures check error type.

4 years agomirrors: useless using
Cat Stevens [Thu, 12 Mar 2020 00:34:49 +0000 (20:34 -0400)]
mirrors: useless using

4 years agomirrors: delete-at and clear-assoc are an error, fix #1757
Cat Stevens [Thu, 12 Mar 2020 00:28:02 +0000 (20:28 -0400)]
mirrors: delete-at and clear-assoc are an error, fix #1757

M\ mirror delete-at and M\ mirror clear-assoc
have been made to throw a new
mirror-slot-removal error, because
it doesn't make sense to remove a
tuple slot, and this behaviour should
not have been relied on.

4 years agoio.directories: use factor for touch-file.
John Benediktsson [Mon, 13 Apr 2020 17:28:16 +0000 (10:28 -0700)]
io.directories: use factor for touch-file.

4 years agosodium.secure-memory: apply @AlexIljin patch for secure-memory=.
John Benediktsson [Mon, 13 Apr 2020 16:53:39 +0000 (09:53 -0700)]
sodium.secure-memory: apply @AlexIljin patch for secure-memory=.

4 years agosodium.secure-memory: new vocab
Alexander Iljin [Sun, 12 Apr 2020 02:14:22 +0000 (04:14 +0200)]
sodium.secure-memory: new vocab

4 years agosodium.ffi: add 2020 to the copyright years
Alexander Iljin [Mon, 23 Mar 2020 00:05:45 +0000 (01:05 +0100)]
sodium.ffi: add 2020 to the copyright years

4 years agosodium.ffi: fix the pointer declaration syntax
Alexander Iljin [Mon, 23 Mar 2020 00:02:39 +0000 (01:02 +0100)]
sodium.ffi: fix the pointer declaration syntax

4 years agosodium.ffi: add the Argon2i header definitions
Alexander Iljin [Sun, 22 Mar 2020 23:59:33 +0000 (00:59 +0100)]
sodium.ffi: add the Argon2i header definitions

4 years agosodium.ffi: fix the array parameters in the function declarations
Alexander Iljin [Sun, 22 Mar 2020 16:37:07 +0000 (17:37 +0100)]
sodium.ffi: fix the array parameters in the function declarations

Add a couple of necessary constants.

4 years agosodium.ffi: add some SHA hash and HMAC headers
Alexander Iljin [Sun, 22 Mar 2020 01:24:37 +0000 (02:24 +0100)]
sodium.ffi: add some SHA hash and HMAC headers

4 years agoio.directories: The only truly cross-platform binary is Factor.
Doug Coleman [Sun, 12 Apr 2020 18:13:45 +0000 (13:13 -0500)]
io.directories: The only truly cross-platform binary is Factor.

4 years agobenchmark.regex-dna: We have to read the input and output files with \n
Doug Coleman [Sun, 12 Apr 2020 18:23:38 +0000 (11:23 -0700)]
benchmark.regex-dna: We have to read the input and output files with \n
line endings.

4 years agoio: Really fix the tests.
Doug Coleman [Sun, 12 Apr 2020 16:04:50 +0000 (11:04 -0500)]
io: Really fix the tests.

4 years agoWindows: Handle three places where Windows line endings break the tests.
Doug Coleman [Sun, 12 Apr 2020 04:57:49 +0000 (23:57 -0500)]
Windows: Handle three places where Windows line endings break the tests.

Usually we check out with Unix line endings, but if you don't set this
option, then get adds extra newlines to text files. Since there are
only three places, let's just fix them.

Fixes #2276

4 years agoio.directories: Maybe echo is a good cross-platform test?
Doug Coleman [Sat, 11 Apr 2020 17:48:08 +0000 (12:48 -0500)]
io.directories: Maybe echo is a good cross-platform test?

https://github.com/factor/factor/commit/4a6bd579775023d01ddf978d8a2c016d24b9686e#commitcomment-38433000

4 years agoRevert "io.directories: Don't use ``touch`` because it's not default on Windows."
Doug Coleman [Sat, 11 Apr 2020 17:39:22 +0000 (12:39 -0500)]
Revert "io.directories: Don't use ``touch`` because it's not default on Windows."

This reverts commit 4a6bd579775023d01ddf978d8a2c016d24b9686e.

We don't test anything without try-process.

4 years agoio.directories: Don't use ``touch`` because it's not default on Windows.
Doug Coleman [Sat, 11 Apr 2020 04:44:38 +0000 (21:44 -0700)]
io.directories: Don't use ``touch`` because it's not default on Windows.

4 years agomason.child: Up the codeheap size on Windows mason tests.
Doug Coleman [Sat, 11 Apr 2020 04:31:56 +0000 (21:31 -0700)]
mason.child: Up the codeheap size on Windows mason tests.

4 years agowebbrowser: disable some tests that open windows.
John Benediktsson [Thu, 9 Apr 2020 20:34:57 +0000 (13:34 -0700)]
webbrowser: disable some tests that open windows.

4 years agoopenssl.libssl: Add functions to set options on SSL_CTX.
Doug Coleman [Tue, 7 Apr 2020 22:29:08 +0000 (22:29 +0000)]
openssl.libssl: Add functions to set options on SSL_CTX.

With these functions we can disable TLS1.0 and TLS1.1 someday.

Related to #2273.

4 years agovm: lost a character somehow.
John Benediktsson [Tue, 7 Apr 2020 18:40:04 +0000 (11:40 -0700)]
vm: lost a character somehow.

4 years agovm: quick fix for compilation warning.
John Benediktsson [Tue, 7 Apr 2020 18:38:48 +0000 (11:38 -0700)]
vm: quick fix for compilation warning.

4 years agosodium: Less stack shuffling in test.
Doug Coleman [Tue, 7 Apr 2020 05:52:29 +0000 (00:52 -0500)]
sodium: Less stack shuffling in test.

4 years agomason.test: change mason to load roots in order.
John Benediktsson [Fri, 3 Apr 2020 16:44:45 +0000 (09:44 -0700)]
mason.test: change mason to load roots in order.

This will allow us to know when core depends on basis, or basis on
extra, because they should get load errors.

4 years agofurnace.actions: better using.
John Benediktsson [Fri, 3 Apr 2020 03:00:56 +0000 (20:00 -0700)]
furnace.actions: better using.

4 years agofurnace.actions: cleanup using.
John Benediktsson [Fri, 3 Apr 2020 00:31:41 +0000 (17:31 -0700)]
furnace.actions: cleanup using.

4 years agowindows.iphlpapi: use follow, it's simpler.
John Benediktsson [Fri, 3 Apr 2020 00:30:13 +0000 (17:30 -0700)]
windows.iphlpapi: use follow, it's simpler.

4 years agobasis/extra: move tools.
John Benediktsson [Fri, 3 Apr 2020 00:06:50 +0000 (17:06 -0700)]
basis/extra: move tools.

4 years agoio.encodings.utf7: skip over first char when searching.
John Benediktsson [Thu, 2 Apr 2020 19:32:05 +0000 (12:32 -0700)]
io.encodings.utf7: skip over first char when searching.

4 years agoio.encodings.utf7: revert last patch, fixed and faster.
John Benediktsson [Thu, 2 Apr 2020 17:54:51 +0000 (10:54 -0700)]
io.encodings.utf7: revert last patch, fixed and faster.

4 years agocli.git: revert process-contents patch.
John Benediktsson [Thu, 2 Apr 2020 16:53:56 +0000 (09:53 -0700)]
cli.git: revert process-contents patch.

4 years agobasis/extra: move fewer things.
John Benediktsson [Thu, 2 Apr 2020 04:36:41 +0000 (21:36 -0700)]
basis/extra: move fewer things.

4 years agoRevert "basis: Move any vocabularies required by basis into basis."
John Benediktsson [Wed, 1 Apr 2020 18:11:51 +0000 (11:11 -0700)]
Revert "basis: Move any vocabularies required by basis into basis."

This reverts commit 59c2956570d9cd634dd218c1cfb0b82c72dace02.

4 years agoRevert "basis: Move more extra to basis."
John Benediktsson [Wed, 1 Apr 2020 18:11:36 +0000 (11:11 -0700)]
Revert "basis: Move more extra to basis."

This reverts commit 2d85dafa9872fa34b463f6473e61a1ed71c17788.

4 years agorosetta-code.multisplit: reduce memory usage
Alexander Iljin [Thu, 2 Apr 2020 01:15:26 +0000 (03:15 +0200)]
rosetta-code.multisplit: reduce memory usage

Avoid creating a filtered sequence when all we need is its first element.

4 years agorosetta-code.multisplit: new vocab
Alexander Iljin [Wed, 1 Apr 2020 20:48:50 +0000 (22:48 +0200)]
rosetta-code.multisplit: new vocab

4 years agobuild.sh: Only find the mingw compiler on Windows.
Doug Coleman [Tue, 31 Mar 2020 01:37:38 +0000 (20:37 -0500)]
build.sh: Only find the mingw compiler on Windows.

Fixes #2269

4 years agobuild.sh: Support MINGW64 as 64bit Windows.
Doug Coleman [Mon, 30 Mar 2020 22:31:35 +0000 (17:31 -0500)]
build.sh: Support MINGW64 as 64bit Windows.

This is for msys2 64bit mode.

4 years agobuild.sh: Only support 32/64bit word sizes.
Doug Coleman [Mon, 30 Mar 2020 22:28:02 +0000 (17:28 -0500)]
build.sh: Only support 32/64bit word sizes.

4 years agobasis: Move more extra to basis.
Doug Coleman [Sat, 28 Mar 2020 15:39:06 +0000 (10:39 -0500)]
basis: Move more extra to basis.

I missed these because they were already loaded in my saved image.

4 years agobasis: Move any vocabularies required by basis into basis.
Doug Coleman [Sat, 28 Mar 2020 14:30:37 +0000 (09:30 -0500)]
basis: Move any vocabularies required by basis into basis.

4 years agoformatting: simplify using assoc>map instead of unzip map map zip.
John Benediktsson [Tue, 24 Mar 2020 18:13:55 +0000 (11:13 -0700)]
formatting: simplify using assoc>map instead of unzip map map zip.

4 years agoformatting: support other sequences in printf.
John Benediktsson [Tue, 24 Mar 2020 18:11:15 +0000 (11:11 -0700)]
formatting: support other sequences in printf.

4 years agounix.process: Add posix_spawn stub.
Doug Coleman [Sun, 15 Mar 2020 22:18:37 +0000 (17:18 -0500)]
unix.process: Add posix_spawn stub.

I couldn't get this to work in all cases to replace spawn-process yet.

```
! works
{ "/bin/ls" "-al" } posix-spawn-args-with-path

! Broken on Linux64 for some reason
{
    "/usr/bin/code"
    "-g"
    "-r"
    "/home/erg/factor-master/basis/io/launcher/launcher.factor"
} posix-spawn-args-with-path
```

4 years agobuild.sh: Tab snuck into my commit...
Doug Coleman [Sun, 15 Mar 2020 18:46:42 +0000 (13:46 -0500)]
build.sh: Tab snuck into my commit...

4 years agowindows: Move types to ole32
Doug Coleman [Sun, 15 Mar 2020 18:31:46 +0000 (13:31 -0500)]
windows: Move types to ole32

4 years agowindows: Move IStream to windows.com to fix bootstrap.
Doug Coleman [Sun, 15 Mar 2020 18:21:24 +0000 (13:21 -0500)]
windows: Move IStream to windows.com to fix bootstrap.

4 years agofactor: Update all repos to point to github.com.
Doug Coleman [Sun, 15 Mar 2020 17:22:15 +0000 (12:22 -0500)]
factor: Update all repos to point to github.com.

factorcode.org repo can get behind the github one due to #1862 and low RAM on the new factorcode.org server

Change strategy for calling git fetch to not include the branch name if we are on a detached HEAD

4 years agofix various typos; cleanup and fully document boyer-moore
Cat Stevens [Sun, 15 Mar 2020 14:39:47 +0000 (10:39 -0400)]
fix various typos; cleanup and fully document boyer-moore

4 years agoReduced stack waste, added LOGIC-RED: and LOGIC-VAR:, a little speed up.
kusumotonorio [Sun, 15 Mar 2020 01:24:36 +0000 (10:24 +0900)]
Reduced stack waste, added LOGIC-RED: and LOGIC-VAR:,  a little speed up.

4 years agoui.text.core-text: apply @kusumotonorio patch.
John Benediktsson [Thu, 12 Mar 2020 03:58:27 +0000 (20:58 -0700)]
ui.text.core-text: apply @kusumotonorio patch.

4 years agowindows: Add more COM code.
Doug Coleman [Tue, 10 Mar 2020 22:22:12 +0000 (17:22 -0500)]
windows: Add more COM code.

4 years agoimages.loader: fix tests.
John Benediktsson [Tue, 10 Mar 2020 17:20:21 +0000 (10:20 -0700)]
images.loader: fix tests.

4 years agoimages.loader: fix using and kick the tires
Doug Coleman [Tue, 10 Mar 2020 14:57:47 +0000 (09:57 -0500)]
images.loader: fix using and kick the tires

4 years agoimages.loader: Disable saving a bmp on win32.
Doug Coleman [Tue, 10 Mar 2020 08:53:14 +0000 (03:53 -0500)]
images.loader: Disable saving a bmp on win32.

This is probably fixable with enough auditing of the gdiplus flat
interface.

4 years agovm/allot.hpp: Print more room info when allot() fails.
Doug Coleman [Tue, 10 Mar 2020 08:31:23 +0000 (03:31 -0500)]
vm/allot.hpp: Print more room info when allot() fails.

This is to help debug win64.

Some interesting observations:

fails without any error:
factor.com -codeheap=74000

fails with VirtualAlloc error:
factor.com -codeheap=80000

4 years agowindows: Fix user32/shcore DPI functions.
Doug Coleman [Tue, 10 Mar 2020 00:39:32 +0000 (19:39 -0500)]
windows: Fix user32/shcore DPI functions.

4 years agonmake: Fix caching on Windows when compiling without a manifest.
Doug Coleman [Mon, 9 Mar 2020 22:26:11 +0000 (17:26 -0500)]
nmake: Fix caching on Windows when compiling without a manifest.

4 years agowindows: Add a bunch of HighDPI functions.
Doug Coleman [Sat, 7 Mar 2020 19:26:25 +0000 (13:26 -0600)]
windows: Add a bunch of HighDPI functions.

4 years agovm: Add AS_UTF and use it to print wchar_t in Windows terminal.
Doug Coleman [Sat, 7 Mar 2020 05:57:57 +0000 (23:57 -0600)]
vm: Add AS_UTF and use it to print wchar_t in Windows terminal.

There may be more places to add AS_UTF8 calls--anywhere that prints a
wchar_t string in the Windows vm.

Fixes #992.

4 years agoNmakefile: Add default flags and add command to add the manifest to .exe
Doug Coleman [Sat, 7 Mar 2020 05:33:26 +0000 (23:33 -0600)]
Nmakefile: Add default flags and add command to add the manifest to .exe

The manifest is disabled for now, but once we fix the resolution we
should enable it.

to test:
nmake /f Nmakefile factor.exe.manifest

Right now the UI looks tiny if you compile for the factor.exe and
include the manifest.

Lastly, sorry for the WIP but it seems pretty harmless and has been
sitting in a branch for almost three years.

4 years agowindows; add functions to determine DPI scaling
Benjamin Pollack [Sun, 8 Jan 2017 01:52:01 +0000 (20:52 -0500)]
windows; add functions to determine DPI scaling

4 years agocache: Don't use in-place filter
Niklas Larsson [Thu, 31 Oct 2019 12:34:42 +0000 (13:34 +0100)]
cache: Don't use in-place filter

This solves a UI corruption problem by not reusing the hashtable when
purging the cache. The root cause of why the hashtable gets corrupted
when filtering in place hasn't been found.

Fixes #1978.

4 years agoAdded instructions on fetching replace objects for source history
nomennescio [Mon, 21 Oct 2019 13:53:16 +0000 (15:53 +0200)]
Added instructions on fetching replace objects for source history

4 years agoimages.loader: Windows can save bmp files.
Doug Coleman [Sat, 7 Mar 2020 04:59:30 +0000 (22:59 -0600)]
images.loader: Windows can save bmp files.

If there is a crasher, we can debug it.

4 years agoui.render.test: Replace reference image with an uncorrupted one.
Doug Coleman [Sat, 7 Mar 2020 01:35:24 +0000 (19:35 -0600)]
ui.render.test: Replace reference image with an uncorrupted one.

To generate a rendering image:

USE: ui.render.test
"ui-render-test" run
render-output get-global "resource:reference.bmp" save-graphic-image

Fixes #2210.

4 years agoimages.loader.gdiplus: Allow writing .bmp and do a better lookup.
Doug Coleman [Sat, 7 Mar 2020 01:34:41 +0000 (19:34 -0600)]
images.loader.gdiplus: Allow writing .bmp and do a better lookup.

4 years agoui.gadgets: Stale gestures can lose the associated gadget.
Doug Coleman [Sat, 7 Mar 2020 01:05:27 +0000 (19:05 -0600)]
ui.gadgets: Stale gestures can lose the associated gadget.

The gesture queue can send messages where the
focusable-child has disappeared.

Handle ``M: f focusable-child*`` by doing nothing.

Fixes #2117.

4 years agowindows.ole32: Add more LONG: constants.
Doug Coleman [Sat, 7 Mar 2020 01:05:07 +0000 (19:05 -0600)]
windows.ole32: Add more LONG: constants.

4 years agowindows.ole32: Add more error constants as long.
Doug Coleman [Fri, 6 Mar 2020 23:23:39 +0000 (17:23 -0600)]
windows.ole32: Add more error constants as long.

These are -2B..2B instead of positive integers because long is s32 on
Windows.

4 years agovocabs.metadata: cleanup a couple uses of metadata paths.
John Benediktsson [Thu, 5 Mar 2020 17:33:41 +0000 (09:33 -0800)]
vocabs.metadata: cleanup a couple uses of metadata paths.

4 years agovocabs.metadata: cleanup paths to be fully specified.
John Benediktsson [Thu, 5 Mar 2020 16:59:36 +0000 (08:59 -0800)]
vocabs.metadata: cleanup paths to be fully specified.

4 years agoui.gadgets.panes: fix tests under dark-theme.
John Benediktsson [Tue, 3 Mar 2020 23:23:18 +0000 (15:23 -0800)]
ui.gadgets.panes: fix tests under dark-theme.

4 years agopdf: heuristic for dealing with table wrapping.
John Benediktsson [Tue, 3 Mar 2020 19:31:00 +0000 (11:31 -0800)]
pdf: heuristic for dealing with table wrapping.

4 years agopdf.values: fix names for some fonts.
John Benediktsson [Tue, 3 Mar 2020 19:09:11 +0000 (11:09 -0800)]
pdf.values: fix names for some fonts.

4 years agohelp.pdf: use 1.25 line-height on pdf.
John Benediktsson [Tue, 3 Mar 2020 17:46:45 +0000 (09:46 -0800)]
help.pdf: use 1.25 line-height on pdf.

4 years agopdf.canvas: add concept of line-height multiplier.
John Benediktsson [Tue, 3 Mar 2020 17:46:32 +0000 (09:46 -0800)]
pdf.canvas: add concept of line-height multiplier.

4 years agologic.examples: cleanup, make hanoi tests assert output.
John Benediktsson [Tue, 3 Mar 2020 16:09:52 +0000 (08:09 -0800)]
logic.examples: cleanup, make hanoi tests assert output.

4 years agologic.factor: [ quot call( -- ) ] --> quot
kusumotonorio [Tue, 3 Mar 2020 12:16:52 +0000 (21:16 +0900)]
logic.factor: [ quot call( -- ) ] --> quot

4 years agofactlog vocab ==> logic vocab
kusumotonorio [Tue, 3 Mar 2020 12:04:46 +0000 (21:04 +0900)]
factlog vocab ==> logic vocab

4 years agoRename directory, files.
kusumotonorio [Tue, 3 Mar 2020 12:03:14 +0000 (21:03 +0900)]
Rename directory, files.

4 years agocatb0t's PR: add a Prolog-like %! ... multiline comment #6
kusumotonorio [Mon, 2 Mar 2020 11:21:17 +0000 (20:21 +0900)]
catb0t's PR: add a Prolog-like %! ...  multiline comment #6

4 years agofactlog
kusumotonorio [Sun, 1 Mar 2020 09:19:07 +0000 (18:19 +0900)]
factlog

4 years agohtml.templates.chloe: adding missing tests.
John Benediktsson [Tue, 3 Mar 2020 03:01:01 +0000 (19:01 -0800)]
html.templates.chloe: adding missing tests.

4 years agowebapps.planet: use factor color.
John Benediktsson [Tue, 3 Mar 2020 01:07:30 +0000 (17:07 -0800)]
webapps.planet: use factor color.

4 years agowebapps.wiki: remove footer border-top.
John Benediktsson [Tue, 3 Mar 2020 01:03:25 +0000 (17:03 -0800)]
webapps.wiki: remove footer border-top.

4 years agowebsites.concatenative: navbar background.
John Benediktsson [Tue, 3 Mar 2020 01:01:01 +0000 (17:01 -0800)]
websites.concatenative: navbar background.

4 years agowebapps.wiki: better spacing on article list.
John Benediktsson [Tue, 3 Mar 2020 00:07:09 +0000 (16:07 -0800)]
webapps.wiki: better spacing on article list.

4 years agohtml.templates: adding meta tag and some chloe tests.
John Benediktsson [Mon, 2 Mar 2020 23:57:19 +0000 (15:57 -0800)]
html.templates: adding meta tag and some chloe tests.

4 years agotools.errors: fix to match current behavior: "show".
John Benediktsson [Mon, 2 Mar 2020 23:40:37 +0000 (15:40 -0800)]
tools.errors: fix to match current behavior: "show".

4 years agobootstrap.image: add make-my-image to docs.
John Benediktsson [Mon, 2 Mar 2020 23:40:22 +0000 (15:40 -0800)]
bootstrap.image: add make-my-image to docs.

4 years agowebapps: remove floating factorcode.org links.
John Benediktsson [Mon, 2 Mar 2020 23:39:53 +0000 (15:39 -0800)]
webapps: remove floating factorcode.org links.

4 years agowebapps.help: matching style for navbar.
John Benediktsson [Mon, 2 Mar 2020 16:48:25 +0000 (08:48 -0800)]
webapps.help: matching style for navbar.