Windows Slate build in Visual Studio; simple text editor?
Shaping
shaping1 at bellsouth.net
Sun Jan 9 07:58:17 PST 2005
Todd, I got an unhandled exception is Slate.exe when I tried the DLL exercise
below. The XML report is below. Otherwise, all works as you describe.
I don't know what editing features the windows-console (smart console) offers,
but, perhaps, to move a little faster toward a fully graphical system, we might
create a simple native text editor app (as a temporary solution) with a popup
menu allowing you to select and evaluate text by passing the selected text to
the REPL. Has this been considered?
Shaping
<?xml version="1.0" encoding="UTF-16"?>
<DATABASE>
<EXE NAME="Slate.exe" FILTER="GRABMI_FILTER_PRIVACY">
<MATCHING_FILE NAME="Slate.exe" SIZE="274432" CHECKSUM="0x1E63B502"
MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="01/09/2005
04:42:28" UPTO_LINK_DATE="01/09/2005 04:42:28" />
</EXE>
<EXE NAME="kernel32.dll" FILTER="GRABMI_FILTER_THISFILEONLY">
<MATCHING_FILE NAME="kernel32.dll" SIZE="983552" CHECKSUM="0x4CE79457"
BIN_FILE_VERSION="5.1.2600.2180" BIN_PRODUCT_VERSION="5.1.2600.2180"
PRODUCT_VERSION="5.1.2600.2180" FILE_DESCRIPTION="Windows NT BASE API Client
DLL" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="Microsoft® Windows®
Operating System" FILE_VERSION="5.1.2600.2180 (xpsp_sp2_rtm.040803-2158)"
ORIGINAL_FILENAME="kernel32" INTERNAL_NAME="kernel32" LEGAL_COPYRIGHT="©
Microsoft Corporation. All rights reserved." VERFILEDATEHI="0x0"
VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32"
PE_CHECKSUM="0xFF848" LINKER_VERSION="0x50001"
UPTO_BIN_FILE_VERSION="5.1.2600.2180" UPTO_BIN_PRODUCT_VERSION="5.1.2600.2180"
LINK_DATE="08/04/2004 07:56:36" UPTO_LINK_DATE="08/04/2004 07:56:36"
VER_LANGUAGE="English (United States) [0x409]" />
</EXE>
</DATABASE>
----- Original Message -----
From: "Todd Fleming" <todd at flemingcnc.com>
To: "Slate project discussion" <slate at tunes.org>
Sent: Saturday, January 08, 2005 21:48
Subject: Re: Windows Slate build in Visual Studio
> Here's how I prepare Slate after generating a fresh VM and image:
> C:\slate>slate little.image
> Bootstrapping libraries...
> Slate: Growing heap to 4818864 bytes.
> Hi, there!
> Slate 1> saveImageNamed: 'work.image'.
> False
> Slate 2> quit.
>
> After that is finished, the following brings up a REPL:
> C:\slate>slate work.image
> Slate: Growing heap to 5863104 bytes.
> True
> Slate 2>
>
> To make sure DLL support working, try this at the REPL:
> [| l f |
> l: (ExternalLibrary newNamed: 'User32').
> f: (l functionNamed: 'MessageBoxA').
> f argumentsFormat:
> {
> ExternalMethod ArgumentFormat Int.
> ExternalMethod ArgumentFormat Bytes.
> ExternalMethod ArgumentFormat Bytes.
> ExternalMethod ArgumentFormat Int.
> }.
> f callFormat: ExternalMethod CallFormat Std.
> (f applyTo: {0 'Hello from Slate!\0' 'My Dialog\0' 0}).
> ] do.
>
>
> I haven't looked closely at smart-console, so I don't know what it adds, other
> than command history. Fortunately the Windows console already provides that to
> Slate.
>
> Todd
>
>
> Shaping wrote:
>
>>
>> ----- Original Message ----- From: "Todd Fleming" <todd at flemingcnc.com>
>> To: "Slate project discussion" <slate at tunes.org>
>> Sent: Saturday, January 08, 2005 13:29
>> Subject: Re: Windows Slate build in Visual Studio
>>
>> Thanks, Todd, but how then do I talk to the REPL? Is the wvm.exe sufficient?
>> What does the smart-console add? It is a .dll, correct? I'm assuming this
>> extends the functionality of the VM (wvm.exe) somehow.
>>
>> Shaping
>
>
>
More information about the Slate
mailing list