Skip to content

Standalone contexts#3

Closed
aleksisch wants to merge 206 commits into
masterfrom
standalone-contexts
Closed

Standalone contexts#3
aleksisch wants to merge 206 commits into
masterfrom
standalone-contexts

Conversation

@aleksisch
Copy link
Copy Markdown
Owner

No description provided.

borisbat and others added 30 commits January 29, 2025 08:51
…export_variables

support for global variable export annotation
…for_dims

anonymous invoke with no extra arguments retains very fast call path
…for_dims

missing table access for dim tables
…hash-const

uniform way to declare hash constants
…comment-readers-always-global

comment readers are always global (and local)
update access parameter in match_as_variant and add support for match_tuple
…comment-readers-always-global

better parser
…comment-readers-always-global

named tuple syntax shortcut
…fields

Why: we want to disable/enable show arguments and local variables in stack trace in runtime
Replace hardcoded SHOW_ARGUMENTS and SHOW_LOCAL_VARIABLES to context …
Apparently use of `v_ldu_p3` (which in the end is expanded in
simple `_mm_loadu_ps`) causing some compilers (*) to mis-optimize subj
code (I guessing b/c of load past vector instance?) so use safe version
which works reliably.

(*) e.g. clang18

Somewhat related to
GaijinEntertainment#1457
borisbat and others added 27 commits March 8, 2025 09:54
…do-not-clear-type

syntax cleanup, hash clean vs swap to nada
…fragile-mem-use

Custom unique hashes for functionsByName and function argument lookups
…minor-cleanup

minor cleanup in alias resolution
1. Now ADD_FUN/METHOD_BIND will automatically select appropriate simulation node: SimNode_ExtFuncCallRef if result is a reference, SimNode_ExtFuncCall otherwise (In case of returning by value it is still up to the user, attempt to determine this automatically too by using has_cast has shown that it is not viable)
2. DAS_MODULE_DECL_EX can now accept several include paths, each of them can contain quotes (either " or <) or not (" used by default)
3. Rework asserting stub, it will now not link copy constructor, and will always crash after assert by calling nullptr instead of returning garbage and possibly continue execution
4. Fixed DAS_ADD_USING_BIND

Change-Id: I0eeac047b60d72f03ebe9009ae0dd8b9782f0419
…ixes-on-formatter

Fix/tiny fixes on formatter
ensure proper uninstallation of threadlocal debug agents & enhance condition for 'gen2' detection
Another pack of improvements to daScript/daScriptBind.h
…default-ctor-tricks

report to private structure or class access
…default-ctor-tricks

visibility check on make-struct can be ignored unsafe
Add working example in tutorial02_standalone
@aleksisch aleksisch closed this Mar 17, 2025
@aleksisch aleksisch deleted the standalone-contexts branch November 12, 2025 07:53
aleksisch pushed a commit that referenced this pull request Apr 29, 2026
Fixes 7 review comments in one push:

* MCP stdio safety (#1, #5): read_import and compile_and_collect both
  print warnings/failures to stdout, which corrupts the JSON-RPC
  protocol stream when called from the MCP server. Add `quiet : bool
  = false` to both helpers (default preserves CLI behavior); MCP
  find_duplicates passes true and surfaces failure counts via the
  returned envelope.

* Test portability (#2, #3): replace hard-coded /tmp/... corpus path in
  test_find_duplicates_corpus_not_found with create_temp_file_result +
  immediate remove() — guaranteed-nonexistent path that works on
  Windows runners.

* Newline-delimited paths (#4): MCP do_find_duplicates now normalizes
  \n to , before parse_file_list, matching the README's
  documented "git diff --name-only | …" pipeline use case.

* Project (.das_project) plumbing (#6): add `project` to the
  find_duplicates schema, dispatch, and handler signature; thread
  through to compile_and_collect, which now takes
  `project : string = ""` and uses make_file_access(project) instead of
  the previous hardcoded "" — matching the convention used by
  compile_check / lint / find_symbol.

* Deterministic compile order (#7): both the MCP tool and CLI main.das
  build a sorted array<string> from `keys(against_files)` and iterate
  that, instead of the unspecified-order table-key iteration. Makes
  per-candidate report ordering and --check exit behavior reproducible
  across runs.

Drive-by: PERF006 fix in resolve_against_files (reserve before push
loop).

All test suites still green: 6987 in tests/, 54 find_dupes, 181 MCP
(includes 5 updated find_duplicates tests for new signature). MCP
end-to-end smoke confirms newline-delimited paths and project
parameter both reach the handler.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants