]>
gitweb.factorcode.org Git - factor.git/log
John Benediktsson [Fri, 1 Jul 2016 14:55:50 +0000 (07:55 -0700)]
windows.ole32: use sets in tests.
John Benediktsson [Thu, 30 Jun 2016 21:50:47 +0000 (14:50 -0700)]
hashcash: quick fix for string argument to checksum-bytes.
John Benediktsson [Thu, 30 Jun 2016 21:47:18 +0000 (14:47 -0700)]
checksums: fix test using.
John Benediktsson [Thu, 30 Jun 2016 21:11:24 +0000 (14:11 -0700)]
io.backend: remove unused normalize-directory word.
John Benediktsson [Thu, 30 Jun 2016 19:34:36 +0000 (12:34 -0700)]
checksums: remove doc for stream-checksum.
John Benediktsson [Thu, 30 Jun 2016 18:41:27 +0000 (11:41 -0700)]
checksums: some cleanup.
- define checksum-bytes and checksum-stream in terms of each other
- delete stream-checksum now that it's no longer needed
- move checksum-state stuff into checksums.common
- add a block-checksum that uses the checksum-state stuff
- change checksums.openssl to not use the checksum-state
John Benediktsson [Thu, 30 Jun 2016 18:36:08 +0000 (11:36 -0700)]
io.encodings.binary: move to core.
John Benediktsson [Thu, 30 Jun 2016 18:13:51 +0000 (11:13 -0700)]
checksums.common: some cleanup, remove unused stuff.
Björn Lindqvist [Thu, 30 Jun 2016 00:42:23 +0000 (02:42 +0200)]
FUEL: makes accessors and tuple slots with backslashes highlight correctly
Björn Lindqvist [Wed, 29 Jun 2016 23:00:42 +0000 (01:00 +0200)]
FUEL: fix highlighting of strings escaping quote characters
(modify-syntax-entry ?\\ "_" table) was wrong, instead a bigger regexp
is needed.
John Benediktsson [Wed, 29 Jun 2016 21:31:32 +0000 (14:31 -0700)]
checksums.openssl: make evp-md-context private.
John Benediktsson [Wed, 29 Jun 2016 21:30:24 +0000 (14:30 -0700)]
checksums.stream: article title must begin with a capital letter.
Alexander Iljin [Tue, 28 Jun 2016 06:13:16 +0000 (09:13 +0300)]
db.errors: update ignore-error parameter list to be more self-documented
Alexander Iljin [Tue, 28 Jun 2016 06:11:56 +0000 (09:11 +0300)]
checksums.openssl: refactor checksum-stream and checksum-bytes
Alexander Iljin [Thu, 23 Jun 2016 07:10:57 +0000 (10:10 +0300)]
checksums.openssl: implement common checksum interface
Alexander Iljin [Tue, 21 Jun 2016 12:21:17 +0000 (15:21 +0300)]
checksums: make add-checksum-bytes a generic word
Alexander Iljin [Sat, 20 Feb 2016 18:14:02 +0000 (22:14 +0400)]
db.queries: add ensure-index
Alexander Iljin [Sat, 20 Feb 2016 18:00:50 +0000 (22:00 +0400)]
db.(sqlite.)errors: add sql-index-exists error
Alexander Iljin [Sat, 20 Feb 2016 17:07:42 +0000 (21:07 +0400)]
db.sqlite.errors: simplify implementation
Alexander Iljin [Mon, 27 Jun 2016 16:07:40 +0000 (19:07 +0300)]
windows.ole32: add create-guid
Alexander Iljin [Sun, 26 Jun 2016 12:08:48 +0000 (15:08 +0300)]
checksums-docs: add note on using checksums.stream
Alexander Iljin [Sun, 26 Jun 2016 12:07:32 +0000 (15:07 +0300)]
checksums-docs: fix heading in checksum-file
Alexander Iljin [Sun, 26 Jun 2016 12:04:22 +0000 (15:04 +0300)]
checksums.stream-docs: initial commit
Alexander Iljin [Sat, 25 Jun 2016 20:13:36 +0000 (23:13 +0300)]
tools.scaffold: fix scaffold-docs generating $var-decsription for classes
Alexander Iljin [Sun, 19 Jun 2016 09:12:20 +0000 (12:12 +0300)]
io.directories.windows: remove synchronous copy-file implementation
Björn Lindqvist [Wed, 29 Jun 2016 00:31:52 +0000 (02:31 +0200)]
VM: removes the signal_handler_impl methods from factor_vm
Instead the code is in the functions with the same name. That way, they
don't need to exist both as functions and methods.
John Benediktsson [Wed, 29 Jun 2016 16:08:20 +0000 (09:08 -0700)]
cocoa.views: more constants.
Doug Coleman [Wed, 29 Jun 2016 05:47:11 +0000 (22:47 -0700)]
cocoa.views: add some constants for opengl.
Björn Lindqvist [Mon, 27 Jun 2016 14:27:56 +0000 (16:27 +0200)]
VM: set_border_locked is the same on windows and unix
Björn Lindqvist [Mon, 27 Jun 2016 14:08:58 +0000 (16:08 +0200)]
VM: factor_vm::set_callstack and set_retainstack is not needed
Björn Lindqvist [Sun, 26 Jun 2016 11:36:03 +0000 (13:36 +0200)]
FUEL: simplifying
Björn Lindqvist [Thu, 23 Jun 2016 00:14:37 +0000 (02:14 +0200)]
youtube: throw an error if the given youtube video isn't downloadable
well it is, but you have to go through lots of hops to download "secure"
videos
John Benediktsson [Wed, 22 Jun 2016 23:20:11 +0000 (16:20 -0700)]
system-info.macosx: macOS Sierra.
Alexander Iljin [Fri, 17 Jun 2016 11:43:07 +0000 (14:43 +0300)]
*-docs: remove extra spaces from the end of various topics
Alexander Iljin [Fri, 17 Jun 2016 11:10:04 +0000 (14:10 +0300)]
help.tips: use $code snippet in a TIP: for user to run
Alexander Iljin [Thu, 16 Jun 2016 23:35:25 +0000 (02:35 +0300)]
io.files.info.windows: suppress ERROR_FILE_NOT_FOUND in volume>paths
Alexander Iljin [Thu, 16 Jun 2016 22:53:49 +0000 (01:53 +0300)]
windows.shell32: remove extra declaration of ERROR_FILE_NOT_FOUND
We already have one in windows.errors.
Alexander Iljin [Thu, 16 Jun 2016 22:50:54 +0000 (01:50 +0300)]
io.sockets.secure-docs: update and add some documentation
Alexander Iljin [Wed, 15 Jun 2016 20:35:32 +0000 (23:35 +0300)]
delegate-docs: fix a copy-paste error
Alexander Iljin [Tue, 14 Jun 2016 07:47:42 +0000 (10:47 +0300)]
delegate-docs: add missing spaces
Alexander Iljin [Sat, 11 Jun 2016 16:19:20 +0000 (19:19 +0300)]
concurrency.mailboxes-docs: add some missing commas
Alexander Iljin [Sat, 11 Jun 2016 16:13:15 +0000 (19:13 +0300)]
concurrency.messaging-docs: add a missing parenthesis
Alexander Iljin [Wed, 25 May 2016 07:46:30 +0000 (10:46 +0300)]
io.files.windows: use open-file to implement maybe-create-file
This fixes error throwing in case of CreateFile failure, and calls
add-completion for the file handle on success.
Alexander Iljin [Wed, 25 May 2016 07:25:53 +0000 (10:25 +0300)]
io.files.windows: replace open-existing with open-r/w
This fixes error throwing in case of CreateFile failure, and calls
add-completion for the file handle on success.
Alexander Iljin [Wed, 25 May 2016 07:18:28 +0000 (10:18 +0300)]
io.files.windows: use CreateFileW in open-file for consistency
Alexander Iljin [Thu, 2 Jun 2016 20:38:08 +0000 (23:38 +0300)]
VM: fix the sampler_thread handle leak
Alexander Iljin [Sat, 28 May 2016 14:06:24 +0000 (17:06 +0300)]
Nmakefile: remove duplicate code
Alexander Iljin [Tue, 31 May 2016 10:08:31 +0000 (13:08 +0300)]
alien.data: fix a typo
Alexander Iljin [Tue, 31 May 2016 10:07:20 +0000 (13:07 +0300)]
tools.memory: move invariant code to cleanup-always quot of the cleanup
Jon Harper [Wed, 22 Jun 2016 18:11:29 +0000 (20:11 +0200)]
io.files.info docs, sync link-info and file-info docs
Björn Lindqvist [Tue, 21 Jun 2016 21:37:20 +0000 (23:37 +0200)]
ui.gestures: fix the cocoa ui backend which i broke by moving the modifier word
Björn Lindqvist [Tue, 21 Jun 2016 21:15:20 +0000 (23:15 +0200)]
compiler.*: a bunch of random doc additions
Björn Lindqvist [Mon, 20 Jun 2016 11:13:20 +0000 (13:13 +0200)]
ui.backend.*: new vocab for keysym handling which is the same on x11 and gtk
Björn Lindqvist [Mon, 20 Jun 2016 00:18:18 +0000 (02:18 +0200)]
x11.keysymdef, ui.backend.x11: vocab for all of x11's keycodes
using them in u1.backend.x11 instead of hardcoding numbers
Björn Lindqvist [Mon, 20 Jun 2016 00:02:23 +0000 (02:02 +0200)]
x11.*: cosmetic fixes, breaking long lines, indenting struct slots..
Björn Lindqvist [Sun, 19 Jun 2016 01:23:35 +0000 (03:23 +0200)]
FUEL: factor-previous-non-blank unused and adding doc
Björn Lindqvist [Sat, 18 Jun 2016 23:33:59 +0000 (01:33 +0200)]
ui.backend.gtk.io: refactoring which removes ui.backend.gtk.io.unix
ui.backend.gtk is unix-specific so there is no need to have different
implementations for different os:es.
Björn Lindqvist [Sat, 18 Jun 2016 18:39:57 +0000 (20:39 +0200)]
ui.backend.gtk: add handling of insert key (#1656)
Björn Lindqvist [Fri, 17 Jun 2016 14:35:15 +0000 (16:35 +0200)]
ui.backend.gtk: use a global variable to store the icon data
It's easier than the previous code that replaced the get-icon-data word
during deployment. Also GTK support for icon.ico icons.
Björn Lindqvist [Thu, 16 Jun 2016 23:10:21 +0000 (01:10 +0200)]
ui.backend.gtk: hi-res icon awesomeness
Björn Lindqvist [Thu, 16 Jun 2016 22:31:47 +0000 (00:31 +0200)]
space-invaders: calling exit-openal otherwise sound can get stuck when quitting the game
Björn Lindqvist [Thu, 16 Jun 2016 21:41:17 +0000 (23:41 +0200)]
24-game: fixing invalid operator input handling in get-operator
Björn Lindqvist [Thu, 16 Jun 2016 21:28:02 +0000 (23:28 +0200)]
24-game: fixing game to use formatting vocab
Björn Lindqvist [Tue, 14 Jun 2016 23:25:53 +0000 (01:25 +0200)]
io.directories.unix: normalize-path doesn't need to be called
It is already called by the words copy-file delegates to.
Björn Lindqvist [Tue, 14 Jun 2016 22:33:44 +0000 (00:33 +0200)]
io.directories: new utility word make-parent-directories, for making sure directories exists
Björn Lindqvist [Tue, 7 Jun 2016 19:44:56 +0000 (21:44 +0200)]
VM: a little faster definition of contains_p()
John Benediktsson [Sun, 12 Jun 2016 13:52:23 +0000 (06:52 -0700)]
peg.javascript.tokenizer: rename escape rules slightly.
John Benediktsson [Sun, 12 Jun 2016 13:41:59 +0000 (06:41 -0700)]
peg.javascript.tokenizer: support hex and unicode escapes.
John Benediktsson [Sat, 11 Jun 2016 22:22:20 +0000 (15:22 -0700)]
peg.javascript: add some other escapes since we're doing this. :-)
catb0t [Sat, 11 Jun 2016 21:36:14 +0000 (17:36 -0400)]
peg.javascript.tokenizer: allow escaped quotes in strings
Previously, the tokenizer didn't understand
escaped quotes in string literals. Also added was
a test to ensure the escaping works.
Björn Lindqvist [Tue, 7 Jun 2016 12:54:23 +0000 (14:54 +0200)]
VM: rename of JIT_PUSH_IMMEDIATE to JIT_PUSH_LITERAL
The code template pushes both immediates and references so the name was
wrong.
Björn Lindqvist [Tue, 7 Jun 2016 12:42:06 +0000 (14:42 +0200)]
VM: refactor the immediate_p check out of visit_pointer()
This avoids reassigning to slots that are never changed. It makes the minor-gc pass 2% faster.
Björn Lindqvist [Tue, 7 Jun 2016 12:04:28 +0000 (14:04 +0200)]
VM: refactor a struct into a c++11 lambda
Jon Harper [Sat, 4 Jun 2016 14:12:34 +0000 (16:12 +0200)]
rosetta-code.image-noise, use status bar for FPS
Jon Harper [Sat, 4 Jun 2016 13:43:32 +0000 (15:43 +0200)]
rosetta-code.image-noise, bring back fps after
c7ca226
Doug Coleman [Thu, 2 Jun 2016 18:07:19 +0000 (11:07 -0700)]
io.sockets.secure.windows: Windows sockets are a bit confused. Make a word
to get the handle out of two different paths. Probably needs more
refactoring but this makes it work.
Doug Coleman [Thu, 2 Jun 2016 17:56:50 +0000 (10:56 -0700)]
io.sockets.secure.windows: No need to call file>> because we have a
win32-socket on the stack already.
Doug Coleman [Thu, 2 Jun 2016 17:25:11 +0000 (10:25 -0700)]
io.sockets.secure: (server) needs a method on secure for Windows too. Move the method to a vocab that both platforms load.
Doug Coleman [Wed, 1 Jun 2016 18:59:57 +0000 (11:59 -0700)]
http.server.static: sort files for static html directory listing. seems to be sorted on mac already, but not on linux. consider allowing a sort order parameter in the future.
Björn Lindqvist [Tue, 31 May 2016 20:14:18 +0000 (22:14 +0200)]
tools.profiler.sampling.tests: attempt to fix the unit test that fails on x86.32 sometimes
Björn Lindqvist [Tue, 31 May 2016 15:04:34 +0000 (17:04 +0200)]
io.files.windows: make CreateFile-flags a normal word (fixes the recent test failures)
Björn Lindqvist [Mon, 30 May 2016 23:55:35 +0000 (01:55 +0200)]
VM: rename compile_inline_cache and refactor the loop body into emit_check_and_jump
Björn Lindqvist [Mon, 30 May 2016 21:54:26 +0000 (23:54 +0200)]
VM: omit the type check if checking for fixnum and it's the first check
Previously: and ecx, 0xf ; cmp ecx, 0 ; jz <address> was generated. Now
instead: and ecx, 0xf ; jz <address> because the cmp, ecx, 0 instruction
is redundant.
Björn Lindqvist [Mon, 30 May 2016 17:32:03 +0000 (19:32 +0200)]
VM: new method quotation_jit:nth
It's less tedious than writing array_nth(elements.untagged(), i + N) everywhere
Björn Lindqvist [Mon, 30 May 2016 16:40:09 +0000 (18:40 +0200)]
style thing: indenting tuple slots
Alexander Iljin [Thu, 26 May 2016 07:31:51 +0000 (10:31 +0300)]
io.files.info.windows: add a comment to open-read-handle
Alexander Iljin [Wed, 25 May 2016 14:51:47 +0000 (17:51 +0300)]
io.files.info.windows: fix flags in open-read-handle
Add FILE_SHARE_WRITE and FILE_SHARE_DELETE flags and calls CreateFile-flags
hook. This fixes file-readable? so that it uses the same flags as open-read
(issue #1470).
Alexander Iljin [Wed, 25 May 2016 07:22:55 +0000 (10:22 +0300)]
io.files.windows: add FILE_FLAG_BACKUP_SEMANTICS to CreateFile-flags
This provides additional access rights if the process has SE_BACKUP_NAME
or SE_RESTORE_NAME privileges. Does nothing otherwise.
Alexander Iljin [Tue, 24 May 2016 14:06:31 +0000 (17:06 +0300)]
io.files.info.windows: fix file-readable?
This fixes issue #1470. Now the method tries to open the file handle for
reading and returns t on success. This approach makes Windows check the
current user's permissions.
Alexander Iljin [Tue, 24 May 2016 14:03:17 +0000 (17:03 +0300)]
io.files.info.windows: add open-read-handle to reuse later
Alexander Iljin [Tue, 24 May 2016 13:52:56 +0000 (16:52 +0300)]
io.files.info.windows: fix parameter name for get-file-information-stat
Doug Coleman [Mon, 30 May 2016 19:24:17 +0000 (12:24 -0700)]
io.files.windows: Add a unit test to make sure shared flags stay on.
Alexander Iljin [Sat, 28 May 2016 13:09:49 +0000 (16:09 +0300)]
vm: fix a typo in a comment
Alexander Iljin [Fri, 27 May 2016 19:37:44 +0000 (22:37 +0300)]
vm: fix warning C4800: forcing value to bool
The warning is issued by the Visual Studio 2015, treated as error.
Alexander Iljin [Thu, 26 May 2016 19:55:02 +0000 (22:55 +0300)]
vm: give windows_stat fewer reasons to fail
More sharing flags mean that the file opening attempts will succeed even
if the file is already open by another process for writing or deleting.
Björn Lindqvist [Mon, 30 May 2016 06:23:18 +0000 (08:23 +0200)]
VM: make it so compiling mega cache lookups doesn't generate stack frames (#651)
Björn Lindqvist [Mon, 30 May 2016 03:19:32 +0000 (05:19 +0200)]
VM: a bunch of more methods on the factor_vm class that can be made into funtions
Björn Lindqvist [Mon, 30 May 2016 02:57:14 +0000 (04:57 +0200)]
VM: name change no_non_safepoint_words_p -> stack_frame_p
It returns true if the quotation should be wrapped in a stack frame.
Björn Lindqvist [Mon, 30 May 2016 01:03:10 +0000 (03:03 +0200)]
VM: moving a few methods arounds
word_call, word_jump and emit_mega_cache_lookup are only used in quotations.cpp so they should be defined there too.
Björn Lindqvist [Mon, 30 May 2016 00:39:06 +0000 (02:39 +0200)]
bootstrap.x86: using 32 bit regs as operands when it's safe to do so
It shaves off a few bytes as e.g and eax, 0xf is one byte shorter than and rax, 0xf