Commit Graph

31992 Commits (modern-harvey4)

Author SHA1 Message Date
Doug Coleman ee67a4d8d2 factor: update for load-all 2020-04-03 09:15:25 -05:00
Doug Coleman 3a430c4dae escape-strings: fix using 2020-04-02 20:31:53 -05:00
Doug Coleman b644ec6818 Merge remote-tracking branch 'origin/master' into modern-harvey4 2020-04-02 20:24:16 -05:00
John Benediktsson c4d179643b furnace.actions: cleanup using. 2020-04-02 17:31:41 -07:00
John Benediktsson a785e279d5 windows.iphlpapi: use follow, it's simpler. 2020-04-02 17:30:13 -07:00
John Benediktsson 94d97a20f5 basis/extra: move tools. 2020-04-02 17:06:50 -07:00
John Benediktsson 7deab681c6 io.encodings.utf7: skip over first char when searching. 2020-04-02 12:32:05 -07:00
John Benediktsson 605dad2406 io.encodings.utf7: revert last patch, fixed and faster. 2020-04-02 10:54:51 -07:00
John Benediktsson 3b1464630c cli.git: revert process-contents patch. 2020-04-02 09:53:56 -07:00
John Benediktsson de3b74d1c6 basis/extra: move fewer things. 2020-04-01 21:37:28 -07:00
John Benediktsson 42cf41e616 Revert "basis: Move any vocabularies required by basis into basis."
This reverts commit 59c2956570.
2020-04-01 21:37:28 -07:00
John Benediktsson 33eb8a7837 Revert "basis: Move more extra to basis."
This reverts commit 2d85dafa98.
2020-04-01 21:37:28 -07:00
Alexander Iljin 7e4c854714 rosetta-code.multisplit: reduce memory usage
Avoid creating a filtered sequence when all we need is its first element.
2020-04-02 01:50:01 +00:00
Alexander Iljin 9b143a826d rosetta-code.multisplit: new vocab 2020-04-01 23:21:52 +00:00
Doug Coleman 0f9959a15b build.sh: Only find the mingw compiler on Windows.
Fixes #2269
2020-03-30 20:37:38 -05:00
Doug Coleman 905e2cfb6b build.sh: Support MINGW64 as 64bit Windows.
This is for msys2 64bit mode.
2020-03-30 17:31:35 -05:00
Doug Coleman 45d090738d build.sh: Only support 32/64bit word sizes. 2020-03-30 17:28:02 -05:00
Doug Coleman 2d85dafa98 basis: Move more extra to basis.
I missed these because they were already loaded in my saved image.
2020-03-28 10:39:06 -05:00
Doug Coleman 59c2956570 basis: Move any vocabularies required by basis into basis. 2020-03-28 09:30:37 -05:00
Doug Coleman 2321fe8c9a windows.errors: fix merge 2020-03-25 19:13:07 -05:00
Doug Coleman 94a1a8a2af Merge branch 'master' into modern-harvey4 2020-03-25 18:22:03 -05:00
John Benediktsson 497d6491e6 formatting: simplify using assoc>map instead of unzip map map zip. 2020-03-24 11:13:55 -07:00
John Benediktsson 5525313757 formatting: support other sequences in printf. 2020-03-24 11:11:15 -07:00
Doug Coleman 5cc97a4d1b 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
```
2020-03-15 17:23:21 -05:00
Doug Coleman 8c97ea20de build.sh: Tab snuck into my commit... 2020-03-15 13:46:42 -05:00
Doug Coleman c14ffd4d0f Merge remote-tracking branch 'origin/master' into modern-harvey4 2020-03-15 13:38:10 -05:00
Doug Coleman c23230ed82 windows: Move types to ole32 2020-03-15 13:31:46 -05:00
Doug Coleman 1abde46c79 windows: Move IStream to windows.com to fix bootstrap. 2020-03-15 13:21:38 -05:00
Doug Coleman dfb3ebf509 Merge remote-tracking branch 'origin/master' into modern-harvey4 2020-03-15 13:09:22 -05:00
Doug Coleman 172649f667 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
2020-03-15 13:06:02 -05:00
Doug Coleman 516a5d9004 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
2020-03-15 12:22:15 -05:00
Cat Stevens 426d8f09b2 fix various typos; cleanup and fully document boyer-moore 2020-03-15 14:58:43 +00:00
kusumotonorio d8f813a531 Reduced stack waste, added LOGIC-RED: and LOGIC-VAR:, a little speed up. 2020-03-15 03:22:57 +00:00
Doug Coleman 7838405c1b parser: Disable single-quote parser. 2020-03-12 17:54:02 -05:00
Doug Coleman 9c7c8cd9dd core: working on fry/locals 2020-03-12 17:13:36 -05:00
Doug Coleman f5c75922ec core: fryable work. 2020-03-12 17:11:51 -05:00
Doug Coleman 05b48364c6 factor: Working on making locals-everywhere, array literals constructed
by ``output>array``, and fry with arrays.

We need to expand macros before doing the locals transform ``rewrite-closures`` and fry needs to happen in the locals pass because the locals pass touches the retainstack as part of the transform and we only want to do this once. We defer fry by making a <fryable> which rewrite-closures transforms.

Fixes things like the following that used to break because the locals
transform happened before fry.

::: bar ( a b -- a ) '[ |[ a | a _ + ] call ] call ;

Also we can use fry in case/cond now since macro-expansion happens
first.

Things like this work:
::: foo ( a b c -- a ) :> ( a b c ) c q{{ a b c a b + c _ }} ;
1 2 4 foo ...
{ 1 2 4 3 4 4 }

Triple colon will become colon soon.

Finally, there is a potential issue with macros changing the order of
fry underscore expansion since fry happens later. We need to rewrite fry
internally as 0_ 1_ 2_ so order is preserved everywhere in the expanded
macro.
2020-03-12 17:06:15 -05:00
Doug Coleman d3d9c1ffcf Merge remote-tracking branch 'origin/master' into modern-harvey3 2020-03-12 17:01:05 -05:00
John Benediktsson ee4e977fbb ui.text.core-text: apply @kusumotonorio patch. 2020-03-11 20:59:20 -07:00
Doug Coleman 85d15e865a windows: Add more COM code. 2020-03-10 18:34:24 -05:00
John Benediktsson 717dce055a images.loader: fix tests. 2020-03-10 10:20:21 -07:00
Doug Coleman d98f0134ab images.loader: fix using and kick the tires 2020-03-10 09:57:47 -05:00
Doug Coleman 39f8abc764 images.loader: Disable saving a bmp on win32.
This is probably fixable with enough auditing of the gdiplus flat
interface.
2020-03-10 03:53:14 -05:00
Doug Coleman fcc225466f 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
2020-03-10 03:33:20 -05:00
Doug Coleman 96d3482475 windows: Fix user32/shcore DPI functions. 2020-03-09 21:59:10 -05:00
Doug Coleman 67d5e633f1 nmake: Fix caching on Windows when compiling without a manifest. 2020-03-09 17:30:24 -05:00
Doug Coleman 37871d87f4 windows: Add a bunch of HighDPI functions. 2020-03-07 13:26:25 -06:00
Doug Coleman fe83a4a164 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.
2020-03-06 23:57:57 -06:00
Doug Coleman 34029cf1e4 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.
2020-03-06 23:33:26 -06:00
Benjamin Pollack bafb101b7a windows; add functions to determine DPI scaling 2020-03-06 23:21:02 -06:00