Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
e54deaa
Merge branch 'main' of github.com:lbastigk/Nebulite
lbastigk Oct 31, 2026
058cfac
Add array manipulation functions for rapidjson values
lbastigk Oct 31, 2026
b8c7caf
Add insertArray and appendArray methods for range-based array manipul…
lbastigk Oct 31, 2026
1990319
Refactor insertArray and appendArray methods to accept const referenc…
lbastigk Oct 31, 2026
10c436a
Simplify listMembers method by replacing manual member listing with i…
lbastigk Oct 31, 2026
374cdc3
Add support for boolean and integral types in rapidjson value insertion
lbastigk Oct 31, 2026
730ee4d
Add support for complex number representation in rapidjson values
lbastigk Oct 31, 2026
120b1a1
Add support for complex number retrieval and insertion in JSON
lbastigk Oct 31, 2026
9bbac35
Refactor complex number handling in JsonScope for improved clarity an…
lbastigk Oct 31, 2026
7e09c2f
Replace setArray with insertArray for FFT results to streamline JSON …
lbastigk Oct 31, 2026
8d2fb0f
Use insertArray for Array::iota generation
lbastigk Oct 31, 2026
6b95a16
Add TODOs for scientific notation support and large number formatting…
lbastigk Oct 31, 2026
abafc60
Add benchmarks for FFT implementation using feature-test and transfor…
lbastigk Oct 31, 2026
202a09f
Add ensureArray method to Json and JsonScope for array key management
lbastigk Oct 31, 2026
d42464a
Refactor array handling in Array class to use jsonDoc.ensureArray for…
lbastigk Oct 31, 2026
3070b47
Update documentation
lbastigk Oct 31, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions Languages/nebs/nebulite-script-vscode/syntaxes/keywords.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
"batch",
"batchPadded",
"beep",
"benchmark",
"bind",
"booleanToSigned",
"broadcast",
"bundle",
"cam",
Expand All @@ -33,6 +35,7 @@
"clear",
"close",
"collision-detect",
"compare",
"complexAbs",
"complexArg",
"complexToString",
Expand All @@ -41,9 +44,11 @@
"contains",
"context-evaluation",
"copy",
"copyMember",
"crash",
"custom",
"debug",
"dedupe",
"default",
"delete",
"deload",
Expand Down Expand Up @@ -92,6 +97,7 @@
"formatComplexNumberString",
"formatNumber",
"forward",
"framebuffer-scale",
"function",
"functree",
"geq",
Expand All @@ -100,10 +106,12 @@
"grid",
"gt",
"halt-once",
"head",
"help",
"if",
"ifft",
"imgui-view",
"imguidb",
"injectScript",
"input-mapping",
"input-wait",
Expand Down Expand Up @@ -135,13 +143,17 @@
"master-unlock",
"match",
"max",
"mean",
"median",
"member",
"members",
"min",
"mirror",
"mod",
"mode",
"mouse-scale",
"move",
"moveMember",
"mul",
"must-throw",
"nand",
Expand Down Expand Up @@ -179,12 +191,16 @@
"rPadNonNumeric",
"rPadNumeric",
"rStrip",
"range",
"recombine",
"recombineLines",
"recursive",
"regex",
"reload",
"remove",
"removeMember",
"render-object",
"render-scale",
"reparse",
"replace",
"require",
Expand All @@ -202,6 +218,8 @@
"ruleset",
"save",
"save-standards",
"scale",
"segmented-string-view",
"selected-object",
"serialize",
"set",
Expand All @@ -222,6 +240,7 @@
"sort",
"spawn",
"split",
"splitNewlines",
"sqrt",
"square",
"standard-file",
Expand All @@ -239,6 +258,7 @@
"subspan",
"substring",
"sum",
"tail",
"task",
"task-exec",
"throw",
Expand Down
20 changes: 20 additions & 0 deletions Languages/nebs/nebulite-script-vscode/syntaxes/keywords.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ basicValue
batch
batchPadded
beep
benchmark
bind
booleanToSigned
broadcast
bundle
cam
Expand All @@ -32,6 +34,7 @@ ceiling
clear
close
collision-detect
compare
complexAbs
complexArg
complexToString
Expand All @@ -40,9 +43,11 @@ constrain
contains
context-evaluation
copy
copyMember
crash
custom
debug
dedupe
default
delete
deload
Expand Down Expand Up @@ -91,6 +96,7 @@ for-progress
formatComplexNumberString
formatNumber
forward
framebuffer-scale
function
functree
geq
Expand All @@ -99,10 +105,12 @@ global
grid
gt
halt-once
head
help
if
ifft
imgui-view
imguidb
injectScript
input-mapping
input-wait
Expand Down Expand Up @@ -134,13 +142,17 @@ map
master-unlock
match
max
mean
median
member
members
min
mirror
mod
mode
mouse-scale
move
moveMember
mul
must-throw
nand
Expand Down Expand Up @@ -178,12 +190,16 @@ rPad
rPadNonNumeric
rPadNumeric
rStrip
range
recombine
recombineLines
recursive
regex
reload
remove
removeMember
render-object
render-scale
reparse
replace
require
Expand All @@ -201,6 +217,8 @@ roundUp
ruleset
save
save-standards
scale
segmented-string-view
selected-object
serialize
set
Expand All @@ -221,6 +239,7 @@ snapshot
sort
spawn
split
splitNewlines
sqrt
square
standard-file
Expand All @@ -238,6 +257,7 @@ sub
subspan
substring
sum
tail
task
task-exec
throw
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
{
"name": "keyword.control.nebs",
"match": "\\b(formatComplexNumberString|numericOrNumericString|listMembersAndValues|context-evaluation|strCountAppearance|typeAsSimpleString|case-insensitive|collision-detect|filterRegexValue|complexToString|enumerateInline|expression-help|fetch-container|filterGlobValue|find-parent-key|key-combination|numberToComplex|selected-object|applyTfDomainF|case-sensitive|categoryLevel1|categoryLevel2|lPadNonNumeric|rPadNonNumeric|save-standards|input-mapping|master-unlock|render-object|standard-file|always-clear|ensure-array|feature-test|filterCustom|for-progress|formatNumber|injectScript|removeMember|rng2ArgInt16|rng3ArgInt16|set-fixed-dt|toBoolString|typeAsNumber|typeAsString|batchPadded|deserialize|ensureArray|filterNulls|filterRegex|lPadNumeric|listMembers|numerically|rPadNumeric|set-integer|unreachable|--headless|basicValue|capitalize|complexAbs|complexArg|fetch-name|filterGlob|imgui-view|input-wait|must-throw|play-sound|push-front|pushNumber|set-string|startsWith|strCompare|--recover|add-clock|broadcast|constrain|dump-view|enumerate|error-log|halt-once|keyDelete|large-fft|pop-front|push-back|recursive|roundDown|serialize|setDouble|setString|substring|task-exec|tile-info|toBipolar|category|contains|document|drawcall|endsWith|evaluate|fetch-id|function|functree|nonEmpty|pop-back|print-id|settings|show-fps|snapshot|toDouble|toString|triangle|variable|average|capture|ceiling|console|default|flatten|forward|members|numeric|product|reparse|replace|require|reverse|rng2Arg|rng3Arg|roundUp|ruleset|set-fps|set-res|setBool|subspan|toLower|toUpper|always|assert|assign|bundle|custom|delete|deload|equals|exists|global|invoke|lStrip|length|listen|median|member|mirror|object|rStrip|reload|remove|setInt|square|stddev|strLen|stride|string|toBool|unlock|update|array|batch|clear|close|crash|debug|draft|empty|error|false|fetch|first|floor|match|other|parse|print|query|regex|rmlui|round|slide|spawn|split|state|store|strip|throw|toInt|beep|bind|copy|echo|eval|exit|grid|help|ifft|iota|json|lPad|last|list|load|lock|move|nand|once|open|push|rPad|root|save|sort|sqrt|task|time|true|type|view|wait|warn|xnor|add|all|and|cam|cat|div|env|fft|for|geq|get|int|key|leq|log|map|max|min|mod|mul|neq|nop|nor|not|off|pad|pow|rng|set|sgn|sub|sum|xor|at|eq|gt|if|ls|lt|on|or)\\b"
"match": "\\b(formatComplexNumberString|numericOrNumericString|segmented-string-view|listMembersAndValues|context-evaluation|strCountAppearance|typeAsSimpleString|framebuffer-scale|case-insensitive|collision-detect|filterRegexValue|booleanToSigned|complexToString|enumerateInline|expression-help|fetch-container|filterGlobValue|find-parent-key|key-combination|numberToComplex|selected-object|applyTfDomainF|case-sensitive|categoryLevel1|categoryLevel2|lPadNonNumeric|rPadNonNumeric|recombineLines|save-standards|input-mapping|master-unlock|render-object|splitNewlines|standard-file|always-clear|ensure-array|feature-test|filterCustom|for-progress|formatNumber|injectScript|removeMember|render-scale|rng2ArgInt16|rng3ArgInt16|set-fixed-dt|toBoolString|typeAsNumber|typeAsString|batchPadded|deserialize|ensureArray|filterNulls|filterRegex|lPadNumeric|listMembers|mouse-scale|numerically|rPadNumeric|set-integer|unreachable|--headless|basicValue|capitalize|complexAbs|complexArg|copyMember|fetch-name|filterGlob|imgui-view|input-wait|moveMember|must-throw|play-sound|push-front|pushNumber|set-string|startsWith|strCompare|--recover|add-clock|benchmark|broadcast|constrain|dump-view|enumerate|error-log|halt-once|keyDelete|large-fft|pop-front|push-back|recombine|recursive|roundDown|serialize|setDouble|setString|substring|task-exec|tile-info|toBipolar|category|contains|document|drawcall|endsWith|evaluate|fetch-id|function|functree|nonEmpty|pop-back|print-id|settings|show-fps|snapshot|toDouble|toString|triangle|variable|average|capture|ceiling|compare|console|default|flatten|forward|imguidb|members|numeric|product|reparse|replace|require|reverse|rng2Arg|rng3Arg|roundUp|ruleset|set-fps|set-res|setBool|subspan|toLower|toUpper|always|assert|assign|bundle|custom|dedupe|delete|deload|equals|exists|global|invoke|lStrip|length|listen|median|member|mirror|object|rStrip|reload|remove|setInt|square|stddev|strLen|stride|string|toBool|unlock|update|array|batch|clear|close|crash|debug|draft|empty|error|false|fetch|first|floor|match|other|parse|print|query|range|regex|rmlui|round|scale|slide|spawn|split|state|store|strip|throw|toInt|beep|bind|copy|echo|eval|exit|grid|head|help|ifft|iota|json|lPad|last|list|load|lock|mean|mode|move|nand|once|open|push|rPad|root|save|sort|sqrt|tail|task|time|true|type|view|wait|warn|xnor|add|all|and|cam|cat|div|env|fft|for|geq|get|int|key|leq|log|map|max|min|mod|mul|neq|nop|nor|not|off|pad|pow|rng|set|sgn|sub|sum|xor|at|eq|gt|if|ls|lt|on|or)\\b"
},
{
"name": "markup.underline.link",
Expand Down
25 changes: 24 additions & 1 deletion TaskFiles/Benchmarks/fft.nebs
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# Testing benchmark for FFT (Fast Fourier Transform) implementation
# Using the featuretest module so we don' have to benchmark with the slower transformation fft.

# Setup
set-fps 5000
wait 1

# Normal FFT benchmark using the optimized feature-test implementation.
echo ""
echo ""
echo "------------------------------------"
feature-test large-fft 10000000
feature-test large-fft 10000

# FFT benchmark using the transformation pipeline. The input is generated with
# iota and transformed element-by-element before running the FFT transformation.
echo ""
echo ""
echo "------------------------------------"
wait 1
eval set pipeline.start {global:time.runtime.t}
assign global:result = {|iota 0 10000|map mod 100|fft}
wait 1
eval set pipeline.end {global:time.runtime.t}
eval echo "Pipeline FFT took $6.4f({global:pipeline.end} - {global:pipeline.start}) seconds for N=10000."
eval echo "First 10 results of {global:result|length} total:"
eval echo {global:result|head 10|map complexToString 10.2f|serialize}

exit
Loading
Loading