Repository navigation
Releases
v0.2.224
PB64Basic Enhanced v0.2.224 - batch 443.
See the full changelog in README.md
batch 443 close-out (v0.2.224) - the three batch-10 near pairs are now identical; no sample was replaced. 0867: PB/Win 10 clears the low 4 style bits of a
BUTTONcarryingWS_BORDER, turning0x50800001into0x50800000; PB64Basic now performs the same normalisation. 1108: PB/Win 10 loads the 100x100COWGIRLbitmap natively and resizes it through a 16bpp 565 DIB withBLACKONWHITE; PB64Basic now uses that same path, and the harness captures both sides at timer tick 30. 1221: the raw 34-pixel difference was a DWM-corner capture artefact; both windows are now positioned and activated, animation is phase-aligned by starting both and taking 60 frame pairs, and the OS notification rectangle plus the DWM corner are masked on both sides. 0670: the Scintilla caret is hidden withSCI_SETCARETSTYLE(2);WM_KILLFOCUShad produced a false blank identical.
Full batch-10 rerun: 50/50 compiled by both compilers, 47/50 windows launched, 41 identical / 0 near / 6 diff / 3 run_skipped. The 6 known differences remain: 1012 62.957%, 1104 20.533%, 0435 4.608%, 0668 1.128%, 1215 5.590%, 1238 66.786%. 1221 is identical only under the stated phase and notification/DWM-mask capture; the raw sequential capture still differs (6.617%), and the report records that boundary. The 3 skips are 1128 Set Wallpaper, 0889 Wipe Drive and 1171 Write Directly to Desktop (safety). No replacement sample was used to obtain these results. Self-check:
examples/batch443_test.bas(COLOR assignment, QUAD size, fails=0).
Release assets: the x64 zip plus two comparison videos.
pb64basic-vs-pbwin10-batch10.mp4(61.0 s, 1920x1080, 915 frames, H.264) shows 0867, 1108, 1221, 1051, 0566, 0386 and the remaining 1104 difference, with the 1128 safety skip stated explicitly.pb64basic-vs-pbwin10-batch1-8.mp4(63.0 s, 1920x1080, 945 frames, H.264) is the eight-batch retrospective covering batches 1-8 and 401 selected sources. All comparison videos are indexed in README > Comparison videos.
v0.2.223
PB64Basic Enhanced v0.2.223 - batch 443.
See the full changelog in README.md
batch 443 (v0.2.223) - Gary Beene batch 10: 50 samples never used by batches 1-9 (506 ids excluded). Both compilers compile 50/50; 47/50 run (3 are deliberately compile-only: set wallpaper, wipe drive, paint the desktop). Strict pixel comparison: 38 identical / 3 near / 6 diff / 3 skipped.
Compiler fixes: (1)
Color = expris now parsed as a variable assignment, not the consoleCOLORstatement, so samples such as 0217 compile and run; (2) x64 dynamicDECLARE ... LIBthunks widen every i32 parameter to a 64-bit slot, so 64-bit pointers passed to GLU32 are no longer truncated (1221 sphere); (3)wglCreateContext,wglGetProcAddress,gluNewQuadric,gluNewTessandgluNewNurbsRendererare recognised as pointer-returning calls on x64; (4) ListView is created as a Unicode window (CreateWindowExW) and the parent answersWM_NOTIFYFORMATwithNF_UNICODE, so owner-data notifications arrive asLVN_GETDISPINFOWandRow 0text is no longer cut toR(0566); (5) the preprocessor no longer forces%LVN_GETDISPINFOto the ANSI -150 value.
Sample-side corrections, all recorded in
meta.json:pDocis QUAD for the Scintilla document pointer (0696); tree handles areLong PointerwithBYVAL(0127);%LVS_Iconis explicit where the source relied on a default view (0386); RichEdit samples includerichedit.incand drop the missingxptheme.xmlmanifest (033/0668); Unicode APIs useWSTRINGZinstead ofASCIIZ(1032/0954/0092/1104); a tutorial prefix before the second#Compileris trimmed (0751).
Six pages whose upstream code cannot compile on both compilers (missing bitmap/icon/resource files, AFXWIN include incompatibility, Unicode/ANSI signature clashes) were replaced; the originals are archived in
batch10_replacedand the replacement ids are recorded in the selection and index files, so this is disclosed rather than silently dropped.
Remaining non-identical pairs are sample-owned animation, randomness or font rasterisation: 1012 Fire 62.957%, 1104 screensaver 19.351%, 0435 random-colour icons 4.608%, 1215 Display List 5.046%, 1238 World 17.348%, 0668 Arial Black anti-aliasing 1.128%; near: 0867 MS Sans Serif button metrics 0.336%, 1108 FPS digits 0.592%, 1221 OpenGL rounding 0.009%. Self-check:
examples/batch443_test.bas(Color assignment, QUAD size, fails=0).
v0.2.222
PB64Basic Enhanced v0.2.222 - batch 442.
See the full changelog in README.md
batch 442 (v0.2.222) - closes the six batch 9 non-identical pairs without replacing samples. 0348 ComboBox selection: the modal default-focus path now prefers the source's explicit CONTROL SET FOCUS target instead of the first tab stop, so the first ComboBox keeps its blue selection and the pair is pixel-identical. 1130 1x1 BitBlt: BITMAP.bmBits is LPVOID; WinGDI.inc declares it AS DWORD, so x64 laid the structure out as 24 bytes and GetObjectA returned 0. BMBITS is now a native 8-byte pointer, SizeOf(BITMAP)=32, and the demo reads 11 instead of 00 (identical). 1110 Sprite 04: the compiler now auto-embeds the sample's gbsnippets.pbr when no #RESOURCE PBR is present, and IMAGELIST ADD ICON accepts a run-time icon name (String/IR pointer) through pb_imagelist_add_icon_file instead of treating the pointer as an HICON. The 1000 sprites now draw the real colour icons rather than black squares. 1218 orthographic projection: the harness now detects OpenGL from the source as well as the folder name, so PBWin's blank PrintWindow frame no longer produces a false 81 percent difference; both cubes are captured and the remaining 1.8 percent is rotation phase. 0556 ListView subclass: LV_COLUMNW.pszText is WSTRINGZ PTR, but the win64-native rule only widened LONG/DWORD fields, so x64 LV_COLUMN stayed 48 bytes with pszText at 12 and LVM_InsertColumn crashed with 0xC0000005. PSZ/LP/TEXT-named String/WString fields are now native pointers (size 56, pszText at 16, cchTextMax at 24); the window runs and synchronized scrolling is verified. Its remaining 6.478 percent is the sample's %Unicode=1 plus AsciiZ mix, which PBWin 10 reproduces. 1351 TIX is rdtsc CPU cycles, so its numbers are not reproducible and remain a documented non-defect. Full batch 9 rerun: 50/50 compile, 49/50 run (0770 is a modal folder picker, compile-only), 40 identical / 4 near / 5 diff / 1 skipped under the stricter source-based OpenGL capture; the four near and 1206 are OpenGL animation/dependency boundaries, not compiler regressions. Self-check: examples/batch442_test.bas (BITMAP 32 bytes, LV_COLUMN 56 bytes, GetObjectA width/height 1, fails=0).
The current release is listed here. The complete history (310 releases) is in CHANGELOG.md.
v0.2.221
PB64Basic Enhanced v0.2.221 - batch 441.
See the full changelog in README.md
batch 441 (v0.2.221) - closes the two batch 9 leftovers without replacing samples. 0433 (Toolbar dynamic icons, originally reported as exit 9 with no window) was three stacked defects: the Cvl/CvD/CvCur runtime arguments were emitted as i32 while the runtime declares i64, so under x86 cdecl the stack slots merged (n = 0x0000000100000004) and the byte loop read an unmapped page (0xC0000005); a
Dim ... As Staticarray whose upper bound is not a compile-time constant was baked to length zero, so the firstBit Reset Mask(1)raised Error 9; and all seven toolbarDECLARE LIBentries mixed I64 handles with I32 parameters instead of the Clong longsignature, shifting the x86 arguments by four bytes and turning the button text pointer into garbage. 0556 (ListView subclass) now launches without the COMCTL32 crash, shows both 100-row ListViews, and the synchronized scrolling path is verified with repeated WM_VSCROLL messages. Its mojibake column headers are a sample-side%Unicode+AsciiZissue that PBWin 10 reproduces as well, not a PB64 regression. Verification: 0433 window with three toolbar icon colours and an icon-colour change after the Redraw click; 0452 wide toolbar rebuilt with 16 buttons; 0556 window plus synchronized-scroll screenshot. Self-check: examples/batch441_test.bas (cvl > 0 / mask = 254 / dyn = 7 / fails = 0).
The current release is listed here. The complete history (310 releases) is in CHANGELOG.md.
v0.2.220
PB64Basic Enhanced v0.2.220 - batch 440.
See the full changelog in README.md
batch 440 (v0.2.220) - Gary Beene batch 9: 50 samples never used by batches 1-8. Both compilers compile 50/50 and 49/50 windows launch (0770 is a modal folder picker, compile-only). Pixel comparison: 42 identical, 2 near (0348 0.617%, 1130 0.745%), 2 differing (1110 animated sprites caught on different frames, 24.5%; 1218's two child-label OpenGL surfaces return blank to the grabber while a manual full-screen check shows both cubes), 1 size-mismatch (1351 reports TIX timings, so the digits differ by design) and 2 known failures kept visible rather than replaced: 0433 (Toolbar dynamic icons, exit 9) and 0556 (ListView subclass, 0xC0000005). Fixed: a literal 0 passed to a BYREF numeric parameter of a user Sub/Function was lowered to a null pointer, so OpenGL DrawScene(..., 0) crashed on first dereference; only external Win32 declarations now receive NULL. Self-check: examples/batch440_test.bas.
The current release is listed here. The complete history (310 releases) is in CHANGELOG.md.
v0.2.219
PB64Basic Enhanced v0.2.219 - batch 439.
See the full changelog in README.md
batch 439 (v0.2.219) - the documented default subsystem now matches what the compiler has always emitted and what PB/Win 10 produces: a source with no
#COMPILE/#CONSOLEdirective becomes a Windows GUI EXE (PE subsystem 2), so#CONSOLE ONis this fork's extension - PB/Win 10 rejects it withError 418 Statement expected- and--consolestill overrides the source.
- Docs (
README.md,?shorthand): a bare?maps toMSGBOX(GUI, same as PB/Win 10),#CONSOLE ONmaps toCON.PRINT,#COMPILER PBCCtoCON.PRINTand#COMPILER PBWINtoMSGBOX. The paragraph now states the measured PB/Win 10 subsystem (2), records that#CONSOLE ONfails there withError 418, and removes the old claim thatPRINTis redirected topb_debug.logwhen no console exists - the text is discarded. - Compiler (
pbcompiler/src/codegen.rs):CompilercountsPRINTstatements compiled whileconsole_modeis false (gui_print_count) and, after the per-function warning pass, prints[PB64Basic] WARNING: N PRINT statement(s) compiled into a Windows GUI EXE; there is no console to receive the output. Add "#CONSOLE ON" to the source (or pass --console) to link a console EXE. - Evidence (Windows, clang/MSVC, x86_64-pc-windows-msvc):
plain.bas(no directive, onePRINT) -> warning printed once, PE subsystem 2, runs with exit 0;cons.bas(#CONSOLE ON) -> no warning, subsystem 3;plain.bas --console-> no warning, subsystem 3. PB/Win 10 10.04 on the same no-directive source -> subsystem 2; the same source with#CONSOLE ON->Error 418 Statement expectedon that line. - Test:
examples/batch439_test.basbuilds through#CONSOLE ON, obtainsSTD_OUTPUT_HANDLEand runs thePRINTpath to completion (FAILURES: 0).
v0.2.218
PB64Basic Enhanced v0.2.218 - batch 438.
See the full changelog in README.md
batch 438 (Gary Beene batch 7 close-out) - sample
1595_time_-_create_a_timeris pixel-identical to PBWin10, and the window on screen now matches the capture. The pair had been reported asnear 0.053%in batch 435 and later asdiff 5.153%while the harness activated each window: the only difference was the default button's dotted focus ring, which is drawn at inset 3 by PB64 and inset 4 by PBWin and exists only while the window is active. The harness now parks the foreground on a 1x1 dummy popup and takes an inactive-statePrintWindow, so both sides are captured without that transient artefact.
- Root cause of the remaining on-screen difference: a plain STATIC label answered
WM_CTLCOLORSTATICwithTRANSPARENT+NULL_BRUSH. That is invisible for a label written once, but1595rewrites two labels every 250 ms and nothing erased the old digits, so the strokes accumulated into solid black blobs (the real window showed them; a forcedPrintWindowrepaint looked correct, which is why pixel comparison kept disagreeing with what the screen showed). The answer is now an OPAQUE solid brush in the dialog's face colour -CONTROL SET COLOR hDlg, -1, ...still wins, sunken statics and group boxes keep their existing branches - so a label clears its own cell before drawing and uniform-face dialogs stay pixel-identical. - Evidence:
dual_compare_b7.py --only 1595 --forcerun three times, eachidentical,pct=0, both sides on pair(13,26); the real screen shows a thin3/4instead of a blob after several seconds. The forced batch 7 rerun is 48 identical / 2 near (09150.016% and11610.844%), and the forced batch 8 rerun is 50 identical / 0 near / 0 diff; rows are ingarybeene-corpus/batch7_dual_work/summary.csvandbatch8_dual_work/summary.csv. 1161_painting_and_drawingis a pre-existing, separate difference that the stricter capture surfaced: the sample calls theTextOutAPI from its ownWM_PAINTon aBeginPaintDC. PB64 keeps the white text cell on every repaint, while PBWin shows it only on the first paint and afterwards fills the cell with the dialog face. It is not caused by the label change (that sample has no child controls) and is left documented asnearrather than reported as identical.- Runtime objects
pb_runtime_x64.objandpb_runtime_x86.objwere rebuilt from the updatedpb_runtime.cwith-O2 -ffunction-sections -fdata-sections; all four tracked copies are in sync. Self-check:examples/batch438_test.bas->batch438-fails= 0.
v0.2.217
PB64Basic Enhanced v0.2.217 - batch 437.
See the full changelog in README.md
batch 437 (Gary Beene batch 8 completion) - all seven non-identical pairs reported in v0.2.216 are now pixel-identical. A full forced rerun of the same 50 samples is 50 identical / 0 near / 0 diff, with PB64Basic 50/50 and PBWin10 50/50 compiles and no crash, timeout or missing pair. No sample was replaced to obtain the result.
0109:pb_choose_fontnow always setsCF_INITTOLOGFONTSTRUCT, so the caller'slfHeightis honoured; the sample initialisespoints& = 9. Both compilers start the Size list at 8 and select 9.0143: the sample marks its intended first button with%BS_Default; the runtime no longer promotes the first button, orIDOK, to a default push button. This also keeps1322identical.0941:GRAPHIC RENDERtreats(x1,y1)-(x2,y2)as inclusive when the span equals the control client size minus one, and uses center-sampled nearest-neighbour scaling (sx = (x*2+1)*src_w/(dst_w*2)) instead ofCOLORONCOLORStretchBlt. The 100x100 result is pixel-exact against PBWin.0982: the sample gives the two Graphic controls unique IDs 500 and 501 and renders each one; the previous duplicate IDs were a sample defect, not a compiler defect.0623: initial RichEdit selection now matches PBWin. The runtime selects all only for the legacy"RichEdit"(RichEdit 1.0) class and only when it assigned the initial focus;RICHEDIT50Wis not touched. The sample'sEN_SetFocushandler usesEM_SETSEL 0, -1. Regression samples0611and0614remain identical.1625: the sample limits the desktop capture to a fixed 400x400 region afterDESKTOP GET SIZE, removing timer and cursor residue.0898: dialog geometry usesAdjustWindowRectExwithWS_CAPTION, producing the same 161x89 outer / 145x50 client rectangle as PBWin. The sample sets theCOLOR_BTNFACEbackground andOPAQUEtext mode inWM_PAINT; codegen keeps transparent output for theTEXTOUTstatement only, not forTEXTOUTA/TEXTOUTW.- x86 runtime declarations for
SendMessageA/PostMessageAnow useuintptr_t, sopb_runtime.ccompiles for thei686-pc-windows-msvctarget again. - Runtime objects
pb_runtime_x64.objandpb_runtime_x86.objwere rebuilt from the updatedpb_runtime.c. Evidence:garybeene-corpus/batch8_dual_work/batch8_final_full5.logandsummary.csv(50 rows, allidentical). Self-check:examples/batch436_test.bas->=== FAILURES: 0.
v0.2.216
PB64Basic Enhanced v0.2.216 - batch 436.
See the full changelog in README.md
batch 436 (Gary Beene batch 8) - 50 new samples, none used in batches 1-7. Both compilers build all 50 (PB64Basic 50/50, PBWin10 50/50) and every sample launches and exits without a crash or timeout. The pixel comparison is 43 identical / 2 near / 4 diff / 1 size-mismatch; each non-identical pair is listed below with its measured cause instead of being counted as identical.
ROUND/CINTties-to-even: codegen emittedllvm.roundeven.f64, which clang lowers to an externalroundevenlibcall on the Windows MSVC target and fails at link time. Codegen now calls the runtimepb_roundeven, implemented withmodf; 2.5 -> 2, 3.5 -> 4, -2.5 -> -2, -3.5 -> -4 on x64 and x86 (examples/batch436_test.bas).- Source portability for ANSI APIs under
%Unicode=1:ShellExecuteA,SHGetPathFromIDListA,GetFullPathNameA, andTextOutAreplace the generic spellings in the affected samples;1610now includesRichEdit.incforCHARRANGE. - Harness:
0143captures the largest top-level window instead of a modeless child; focus cues are hidden withWM_UPDATEUISTATEbefore capture so the comparison measures control content rather than focus timing. - Remaining non-identical pairs:
0109near 0.631% (Font dialog Size list scrolled one row: top item 10 vs 9);0143diff 1.163% (button bevel/focus border);0941diff 5.756% (anti-aliased text/bitmap edges);0982diff 21.934% (the sample gives all three buttons and both Graphic controls the same IDs, so PB64 draws into the first control and PBWin into the last);0623diff 7.8% (PBWin RichEdit starts with its text selected, PB64 does not);1625near 0.123% (screen capture timing/cursor);0898size mismatch 42.579% (Dialog New Pixels client area 143x25 vs 145x50 under%WS_ThickFrame Or %DS_Center). - Runtime objects
pb_runtime_x64.objandpb_runtime_x86.objwere rebuilt from the updatedpb_runtime.c. Self-check:examples/batch436_test.bas->=== FAILURES: 0on x64 and x86.
v0.2.215
PB64Basic Enhanced v0.2.215 - batch 435.
See the full changelog in README.md
batch 435 (Gary Beene batch 7) - 50/50 samples compile on both compilers, 50/50 run, and the GUI pixel comparison is 48 identical / 2 near (0.016% and 0.053%). The batch closed the following PBWin differences.
DIR$:DIR$(NEXT, ONLY attr)re-applies the attribute filter on every NEXT call; theDIR$(mask [, ONLY attr] TO DirData)andDIR$(NEXT, TO DirData)forms fill the PBWinDirDatarecord; the%SUBDIRbuilt-in equate (value 16) is now defined; anONLYscan excludes hidden/system entries.- GRAPHIC:
GRAPHIC PIE/GRAPHIC ARCangles are parsed and passed as doubles and converted to the geometric polar angle PBWin uses for elliptic arcs; a supplied fill colour without a fill style defaults to solid; the virtual canvas is rebuilt whenCONTROL SET SIZEchanges a GRAPHIC control; a bordered GRAPHIC that requests the parent client area gets the client size instead of adding border pixels;GRAPHIC CLIENT/GRAPHIC CANVASaccept X/Y offsets. - GRAPHIC scroll bars:
GetScrollInfonow reportsnMaxas the viewport width/height rather than width-1, matching PBWin's thumb range. - ListBox: the control is created with
WS_VSCROLL, so a scroll-bar added by style has a real range immediately;pb_listbox_auto_vscrolladds the style when the content overflows and removes it when it does not. - DIALOG: all
DIALOG NEWarguments are converted to 32-bit values (including units); the first focusable control is chosen by walkingGW_CHILD/GW_HWNDNEXTand skipping plain statics while acceptingSS_OWNERDRAWgraphics. - TreeView: item handles are kept in a 32-bit token table and translated at every entry point;
NM_TREEVIEWnotifications are copied before use; item text is converted UTF-8 to ANSI and back. - Text and colour:
TEXTOUTclears the DC background mode first so text is transparent; edit controls apply PBWin's top margin (5 px for a normal font, 1 px for small fonts);RGB()/BGR()saturate each component to 0..255 instead of wrapping;LO(BYTE, <ByRef param> \ 256)keeps the 16-bit mask PBWin applies;GETCLIPBOARDDATA/SETCLIPBOARDDATAare recognised as pointer-returning APIs. - Parser:
DISPATCHis an 8-byte object pointer;STRINGZ * nis the same fixed NUL-terminated storage asASCIIZ * n;THREAD CREATE fn(...), TO haccepts the optional comma. - Runtime objects
pb_runtime_x64.objandpb_runtime_x86.objwere rebuilt from the updatedpb_runtime.c. - Remaining near pairs, reported as near and not identical:
09153-D pie at 0.016% (14 pixels on two radial boundary lines) and1595timer at 0.053% (8 pixels in a counter digit, a timer-phase artefact). Self-check:examples/batch435_test.bas(batch435-fails= 0).