Skip to content

Releases

v0.2.224

Choose a tag to compare

@hanlokesu hanlokesu released this 06 Dec 07:27

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 BUTTON carrying WS_BORDER, turning 0x50800001 into 0x50800000; PB64Basic now performs the same normalisation. 1108: PB/Win 10 loads the 100x100 COWGIRL bitmap natively and resizes it through a 16bpp 565 DIB with BLACKONWHITE; 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 with SCI_SETCARETSTYLE(2); WM_KILLFOCUS had 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

Choose a tag to compare

@hanlokesu hanlokesu released this 06 Dec 05:02

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 = expr is now parsed as a variable assignment, not the console COLOR statement, so samples such as 0217 compile and run; (2) x64 dynamic DECLARE ... LIB thunks 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, gluNewTess and gluNewNurbsRenderer are recognised as pointer-returning calls on x64; (4) ListView is created as a Unicode window (CreateWindowExW) and the parent answers WM_NOTIFYFORMAT with NF_UNICODE, so owner-data notifications arrive as LVN_GETDISPINFOW and Row 0 text is no longer cut to R (0566); (5) the preprocessor no longer forces %LVN_GETDISPINFO to the ANSI -150 value.

Sample-side corrections, all recorded in meta.json: pDoc is QUAD for the Scintilla document pointer (0696); tree handles are Long Pointer with BYVAL (0127); %LVS_Icon is explicit where the source relied on a default view (0386); RichEdit samples include richedit.inc and drop the missing xptheme.xml manifest (033/0668); Unicode APIs use WSTRINGZ instead of ASCIIZ (1032/0954/0092/1104); a tutorial prefix before the second #Compiler is 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_replaced and 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

Choose a tag to compare

@hanlokesu hanlokesu released this 06 Dec 00:47

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

Choose a tag to compare

@hanlokesu hanlokesu released this 05 Dec 22:54

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 Static array whose upper bound is not a compile-time constant was baked to length zero, so the first Bit Reset Mask(1) raised Error 9; and all seven toolbar DECLARE LIB entries mixed I64 handles with I32 parameters instead of the C long long signature, 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 + AsciiZ issue 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

Choose a tag to compare

@hanlokesu hanlokesu released this 05 Dec 16:09

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

Choose a tag to compare

@hanlokesu hanlokesu released this 05 Dec 13:11

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 / #CONSOLE directive becomes a Windows GUI EXE (PE subsystem 2), so PRINT has no console to write to. The README had claimed "default console" since the early fork. A GUI compile that contains PRINT now emits a build-time warning with the statement count and the two fixes, so the output loss is no longer silent. #CONSOLE ON is this fork's extension - PB/Win 10 rejects it with Error 418 Statement expected - and --console still overrides the source.

  • Docs (README.md, ? shorthand): a bare ? maps to MSGBOX (GUI, same as PB/Win 10), #CONSOLE ON maps to CON.PRINT, #COMPILER PBCC to CON.PRINT and #COMPILER PBWIN to MSGBOX. The paragraph now states the measured PB/Win 10 subsystem (2), records that #CONSOLE ON fails there with Error 418, and removes the old claim that PRINT is redirected to pb_debug.log when no console exists - the text is discarded.
  • Compiler (pbcompiler/src/codegen.rs): Compiler counts PRINT statements compiled while console_mode is 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, one PRINT) -> 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 expected on that line.
  • Test: examples/batch439_test.bas builds through #CONSOLE ON, obtains STD_OUTPUT_HANDLE and runs the PRINT path to completion (FAILURES: 0).

v0.2.218

Choose a tag to compare

@hanlokesu hanlokesu released this 04 Dec 21:28

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_timer is pixel-identical to PBWin10, and the window on screen now matches the capture. The pair had been reported as near 0.053% in batch 435 and later as diff 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-state PrintWindow, so both sides are captured without that transient artefact.

  • Root cause of the remaining on-screen difference: a plain STATIC label answered WM_CTLCOLORSTATIC with TRANSPARENT + NULL_BRUSH. That is invisible for a label written once, but 1595 rewrites 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 forced PrintWindow repaint 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 --force run three times, each identical, pct=0, both sides on pair (13,26); the real screen shows a thin 3/4 instead of a blob after several seconds. The forced batch 7 rerun is 48 identical / 2 near (0915 0.016% and 1161 0.844%), and the forced batch 8 rerun is 50 identical / 0 near / 0 diff; rows are in garybeene-corpus/batch7_dual_work/summary.csv and batch8_dual_work/summary.csv.
  • 1161_painting_and_drawing is a pre-existing, separate difference that the stricter capture surfaced: the sample calls the TextOut API from its own WM_PAINT on a BeginPaint DC. 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 as near rather than reported as identical.
  • Runtime objects pb_runtime_x64.obj and pb_runtime_x86.obj were rebuilt from the updated pb_runtime.c with -O2 -ffunction-sections -fdata-sections; all four tracked copies are in sync. Self-check: examples/batch438_test.bas -> batch438-fails= 0.

v0.2.217

Choose a tag to compare

@hanlokesu hanlokesu released this 04 Dec 16:40

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_font now always sets CF_INITTOLOGFONTSTRUCT, so the caller's lfHeight is honoured; the sample initialises points& = 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, or IDOK, to a default push button. This also keeps 1322 identical.
  • 0941: GRAPHIC RENDER treats (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 of COLORONCOLOR StretchBlt. 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; RICHEDIT50W is not touched. The sample's EN_SetFocus handler uses EM_SETSEL 0, -1. Regression samples 0611 and 0614 remain identical.
  • 1625: the sample limits the desktop capture to a fixed 400x400 region after DESKTOP GET SIZE, removing timer and cursor residue.
  • 0898: dialog geometry uses AdjustWindowRectEx with WS_CAPTION, producing the same 161x89 outer / 145x50 client rectangle as PBWin. The sample sets the COLOR_BTNFACE background and OPAQUE text mode in WM_PAINT; codegen keeps transparent output for the TEXTOUT statement only, not for TEXTOUTA / TEXTOUTW.
  • x86 runtime declarations for SendMessageA / PostMessageA now use uintptr_t, so pb_runtime.c compiles for the i686-pc-windows-msvc target again.
  • Runtime objects pb_runtime_x64.obj and pb_runtime_x86.obj were rebuilt from the updated pb_runtime.c. Evidence: garybeene-corpus/batch8_dual_work/batch8_final_full5.log and summary.csv (50 rows, all identical). Self-check: examples/batch436_test.bas -> === FAILURES: 0.

v0.2.216

Choose a tag to compare

@hanlokesu hanlokesu released this 04 Dec 13:22

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 / CINT ties-to-even: codegen emitted llvm.roundeven.f64, which clang lowers to an external roundeven libcall on the Windows MSVC target and fails at link time. Codegen now calls the runtime pb_roundeven, implemented with modf; 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, and TextOutA replace the generic spellings in the affected samples; 1610 now includes RichEdit.inc for CHARRANGE.
  • Harness: 0143 captures the largest top-level window instead of a modeless child; focus cues are hidden with WM_UPDATEUISTATE before capture so the comparison measures control content rather than focus timing.
  • Remaining non-identical pairs: 0109 near 0.631% (Font dialog Size list scrolled one row: top item 10 vs 9); 0143 diff 1.163% (button bevel/focus border); 0941 diff 5.756% (anti-aliased text/bitmap edges); 0982 diff 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); 0623 diff 7.8% (PBWin RichEdit starts with its text selected, PB64 does not); 1625 near 0.123% (screen capture timing/cursor); 0898 size mismatch 42.579% (Dialog New Pixels client area 143x25 vs 145x50 under %WS_ThickFrame Or %DS_Center).
  • Runtime objects pb_runtime_x64.obj and pb_runtime_x86.obj were rebuilt from the updated pb_runtime.c. Self-check: examples/batch436_test.bas -> === FAILURES: 0 on x64 and x86.

v0.2.215

Choose a tag to compare

@hanlokesu hanlokesu released this 04 Dec 00:03

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; the DIR$(mask [, ONLY attr] TO DirData) and DIR$(NEXT, TO DirData) forms fill the PBWin DirData record; the %SUBDIR built-in equate (value 16) is now defined; an ONLY scan excludes hidden/system entries.
  • GRAPHIC: GRAPHIC PIE / GRAPHIC ARC angles 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 when CONTROL SET SIZE changes a GRAPHIC control; a bordered GRAPHIC that requests the parent client area gets the client size instead of adding border pixels; GRAPHIC CLIENT / GRAPHIC CANVAS accept X/Y offsets.
  • GRAPHIC scroll bars: GetScrollInfo now reports nMax as 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_vscroll adds the style when the content overflows and removes it when it does not.
  • DIALOG: all DIALOG NEW arguments are converted to 32-bit values (including units); the first focusable control is chosen by walking GW_CHILD / GW_HWNDNEXT and skipping plain statics while accepting SS_OWNERDRAW graphics.
  • TreeView: item handles are kept in a 32-bit token table and translated at every entry point; NM_TREEVIEW notifications are copied before use; item text is converted UTF-8 to ANSI and back.
  • Text and colour: TEXTOUT clears 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 / SETCLIPBOARDDATA are recognised as pointer-returning APIs.
  • Parser: DISPATCH is an 8-byte object pointer; STRINGZ * n is the same fixed NUL-terminated storage as ASCIIZ * n; THREAD CREATE fn(...), TO h accepts the optional comma.
  • Runtime objects pb_runtime_x64.obj and pb_runtime_x86.obj were rebuilt from the updated pb_runtime.c.
  • Remaining near pairs, reported as near and not identical: 0915 3-D pie at 0.016% (14 pixels on two radial boundary lines) and 1595 timer at 0.053% (8 pixels in a counter digit, a timer-phase artefact). Self-check: examples/batch435_test.bas (batch435-fails= 0).