profile
viewpoint
Parsa Ghadimi qti3e :rainbow: 18 yo, ECMAScript :nerd_face:, I enjoy making things work :smiley:

push eventTruebase-com/TruthStack

push time in a day

push eventTruebase-com/TruthStack

Parsa Ghadimi

commit sha 5fcfc202640abefc3ea7880ebb7481ef09395116

WIP

view details

Parsa Ghadimi

commit sha b1a4e7759a2ff02a269f7be7e282830091a219e3

Merge branch 'master' of https://github.com/Truebase-com/TruthStack

view details

push time in a day

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 02cb14ce15325503031fcec9dde71487c54f04f7

Start working on exec

view details

Parsa Ghadimi

commit sha 5c1613cbd18481b34be263704f47d7aece1dc3de

Implement dump_value

view details

push time in a day

push eventqti3e/waterscript

Parsa Ghadimi

commit sha e1084620e2999f51439527d8e6e4ec3c4c1d76f1

Force little endian for now

view details

push time in 2 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 9c4218445f4b64f9f294cfd4aee1ae07c2a36d44

Add some wval methods

view details

Parsa Ghadimi

commit sha b1ccc32edb25999884ac8a253b6f902d0b1e2c93

Load pre compiled functions

view details

Parsa Ghadimi

commit sha d0598dd60bfa370971854912c5ce1dda749ed2ce

Move bytecodes to c and implement dump_code

view details

push time in 2 days

push eventqti3e/waterscript

push time in 2 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha adf10f62e8d1e5ad7fff90279ed5cec84f4dcc41

Add UTF-8 encoder

view details

Parsa Ghadimi

commit sha 80ffdf64df10d27a10ef895fce68095dc6e4a63a

Fix UTF-8

view details

Parsa Ghadimi

commit sha 506fe42a05b65ba73cd59ac91c232c72e64ac17e

Fix conflicts

view details

push time in 2 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 4335eabd90144a5f7a4ad7ea8f7c9d9b9b1fddba

Implement wval and build the executable

view details

Parsa Ghadimi

commit sha 8dfc0ef2fa679b471c41bf716976c3b0fb316b97

Add UTF-8 encoder

view details

push time in 2 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 63069a89828bcce9e478cf30f79065f2a3d32686

Implement table

view details

push time in 2 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha ce6e97070bccbbe41241feba8f0ca397208c6720

Implement context WIP: table

view details

push time in 2 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha c4dabbef366d590ca55d0279041aa3ae17c6f80c

Remove old codes

view details

Parsa Ghadimi

commit sha e0f8c47f412c9ed15f91aaaf73b2b181190a5519

Start function ids at 1

view details

Parsa Ghadimi

commit sha b161587862f2e73d7f59ae1421d9c2b9cf5d5176

Update CMakeLists.txt

view details

Parsa Ghadimi

commit sha 8aa56b7be81555ba81b6ea960ba676c17459c7fc

Design parts of the vm

view details

push time in 3 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha bff83461a140eae4f49e3a9cf30e8e3db9944719

Make code dump smaller

view details

Parsa Ghadimi

commit sha 26865651d5d2fb25b68cb0e115c02df26f059d51

Fix failed tests

view details

Parsa Ghadimi

commit sha 1de18ee0b1fcb1b9e3ab76d8e6060ac66ae07d40

Improve GC

view details

push time in 4 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha e93c867c6a159070fe8b368f4538067ee59fe78d

Fix dump

view details

Parsa Ghadimi

commit sha 67f854b34ade7ddc160fcb2814da1222ccec2cf1

Add source map support

view details

push time in 4 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 0a003a369543c2b17b05cd8c37006a6c7f7c4127

Fix scope

view details

Parsa Ghadimi

commit sha 61f15c5313f6c96ee0da87338d0bba066c035a8f

Fix constant pool

view details

Parsa Ghadimi

commit sha 5419e5c402b4aa07b9ad2c39d2618c6082a8012f

Add block statement

view details

Parsa Ghadimi

commit sha 269b23863303ad6766a1f071706a7f6534cf2d3c

Try to fix switch

view details

Parsa Ghadimi

commit sha 748975cda3427d42e58930365e3574fefadc25be

VM: Make things async

view details

Parsa Ghadimi

commit sha 1e92b61f455584d36584678031092729fa1fd944

Implement VM dumper

view details

Parsa Ghadimi

commit sha 19a8bc3f909625e11d38471029c0e4c150f33faa

vm dump: add history and scope

view details

Parsa Ghadimi

commit sha 1ccfe4ee0c0ef7c3d74abd198e3fb7c94c70d22a

Add more controllers

view details

push time in 4 days

push eventTruebase-com/TruthStack

Parsa Ghadimi

commit sha 4189f1da64e9afaa0db422a29caa1e46b3824e35

Update

view details

push time in 6 days

push eventTruebase-com/TruthStack

Parsa Ghadimi

commit sha 5aef82dc1c0aac6a1fd3ec3321bc392b1f1df45b

Move IR to its own namespace

view details

push time in 7 days

delete branch Truebase-com/TruthStack

delete branch : q/install

delete time in 8 days

create barnchTruebase-com/TruthStack

branch : q/backer

created branch time in 8 days

issue commentTruebase-com/TruthStack

Backer Update August 14, 2019

Thanks to this proposal things are a lot clearer now, I have some comments that I thought are worth mentioning.

  1. Instead of introducing String, Number and Boolean as some special cases that will only work in JS we can introduce some more strong types like Uint32, Int32, Float64 and ... This way it will be possible in the future to target languages like Rust or Go, of course, all of these types are just number when we translate the code to JavaScript but introducing more types will help portability to other languages.

  2. Personally, I don't like the current API for listening to events as it becomes a bit hard to implement, what is the return type of on(...)? what should the constructor function do with that value? But this is a lot more clear:

Customer
  .on("some-event", () => {...})
  .on("some-other-event", () => {...})
  1. The proposed part for Computed Truth should be some implementation details in the compiler and be hidden inside of Customer's implementation.

  2. Also, Clues are some implementation details as well, I'd use some sort of validation layers, both Clues and Computed Truth can be implemented the same way...

paul-go

comment created time in 9 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha fb69f3691c0f3858221e0c961aab1dc8c35408e1

Add tests

view details

push time in 9 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 2cba4f551f1cb8aa87eb09acdeccbba3a7d5f9d2

Add loop tests

view details

push time in 9 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha fd1057825b549c17eab32b86bc94eb77322ebf18

Add tests for for-loop

view details

push time in 9 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha d6ff26b0336a9cedcb371663dadb37d7a3d796f5

Fix for-continue

view details

push time in 9 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 83f1923681cc14c2503d2ecb628964a9419693ce

vm: Add timeout

view details

Parsa Ghadimi

commit sha c32c6939c84bf8ed598da17369ccff10b9855b16

Add tests

view details

push time in 9 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 96c4d21423a3039948829cc5d52c18edf5eb974a

Change compiler API.

view details

push time in 9 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 2f4bcf5433d375f4d08b43a76123df1ed41e866c

Add let and simple variable bytecodes

view details

Parsa Ghadimi

commit sha f2e813b8498138b3142dcb7d657c1c57b8ec7ce1

Implement ret and Call0

view details

push time in 9 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha ec980f07eede27edacfca4bc120969d61dd81cb4

Move variable less cases to the top

view details

push time in 9 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 0defd57f62292dd676cbd9e56711988ad7774efc

vm: Implement jumps

view details

push time in 9 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 091f64265499384343b6f68ef398befcee62ad9f

Implement computing bytecodes

view details

push time in 9 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 53d5df4ceb19d3868561a91e63c1b17e540ace45

:tada: Run a simple code

view details

push time in 9 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 355b83552156272b32f50226cb4838b8beeafa9b

Fix broken imports

view details

Parsa Ghadimi

commit sha 6c434d9bab37f674e1c031d7788b02ab14ec7e56

Try to run scripts

view details

Parsa Ghadimi

commit sha 289544aeb87cb732bf6a154cdb73a1edd576deea

Implement some ecma operations

view details

push time in 10 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 2475abdf838bf548425c609274075019d3df605e

Implement data types

view details

push time in 10 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha d7ee9a2fdfc5d3698e37257305a49eeb76812a33

Start working on test VM

view details

push time in 10 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha fa1f68c40bcb94f3dbd994204edd6f17ed9a1a0c

Small fixes

view details

Parsa Ghadimi

commit sha b27083d8c99284f5c98dcd6705e1f3a66f7b2656

Remove tests for now

view details

push time in 10 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 56727bb69c475fc1f406b6cc0ad4bebf438f7e13

Refactor dump

view details

push time in 10 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 59a7926d9b434a24709171db85e62e65b19524ef

Load Buffer Polyfill in Node.js

view details

push time in 10 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 19ab979898460ff0ce063f10799c235c2097f415

Add missing headers

view details

push time in 10 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 097429c26e8099a5a96e8c077b15c699b7e4cc57

Add NewExpression

view details

Parsa Ghadimi

commit sha 8c677b96a466d698ae86c926aa7921b22be1d92e

Refactor Buffer

view details

push time in 10 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha de70bb7e1ffcb701dfe8e5bbf6ae07ff925e1d8b

Add object expression

view details

Parsa Ghadimi

commit sha f447c7ff26a75c65b665baf2b02168d8e4935334

Add sequence expression

view details

push time in 11 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 7ae8ff5b08e416c6064c8ae71ff7d9dcc5eefab6

Remove acorn-walk

view details

push time in 11 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 4a6911bf82787cd57e11dd3597c517220911c19a

Remove acorn-walk

view details

push time in 11 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 8eddc87cc56e4cf52b2745d839d4bc09625f7f5e

Fix empty string literals

view details

Parsa Ghadimi

commit sha 174a32770aebe411d448cbf1a1758aa07729ada7

Add ReturnStatement

view details

push time in 11 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 087d2e613df869805be9d794e6793ebe5266d397

Dump: Fix "<" overlap

view details

Parsa Ghadimi

commit sha 4a53af7fffd061caf4948b50aba2149f304a038b

Add position

view details

Parsa Ghadimi

commit sha 0cd3da0c6f78b27a52899064b3e49c9c3cbc1a71

Add a failed code

view details

push time in 11 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 2800dc7e3b5eddfe52d27ace9fe3c51fca213ca6

Add array expression

view details

Parsa Ghadimi

commit sha 56d7a0050dc54583f47464bd3961fd97a7e15eb1

Add RegExp

view details

Parsa Ghadimi

commit sha 9545a0986576909b6975b1070e97da45cc1e0948

Dump: Fix "<" overlap

view details

Parsa Ghadimi

commit sha 2d3249651c0db8d4d993351beeedb0562c532930

Run compiler on itself

view details

push time in 11 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 94a2ce03bfc504b8ac771e0fd12d3a8d2d6b9286

Format VM.md

view details

push time in 11 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha acc7b88bf522bc9cfc9944ea1f74e1306b1cce33

Improve dump

view details

Parsa Ghadimi

commit sha b2f5f2a7f02ca22a8d8540f4b37d324c7ee0e6b6

Add Arrow function and function expressions

view details

Parsa Ghadimi

commit sha 15b7c0aeb5dd5ef0cb611f10377175b4d1470bcf

Implement FunctionCall

view details

push time in 11 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 61bb4c0dae250cf43cf03af832755cadded03263

Add Break, Continue and Labeld Statements

view details

push time in 11 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 488073f9f1ab80c30b33063e88f4b211026c82c8

Add ConditionalExpression

view details

push time in 12 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha a8276a5fb88181590e84002fcb03f2a9b0ad34b2

Add DoWhileStatement

view details

push time in 12 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 4c0c268ee000368e150cc13c420a6d80b7a04862

Add for statement

view details

push time in 12 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 526ec31650bc9f28f90667cd120615c5e3806ba8

renderJumps: Handle overlaps

view details

push time in 12 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha d94ef9c9eeaef98ba7e21dfbc2ad1eb78009e895

Dump: Improve nested jumps

view details

push time in 12 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha d2113cdcc0a80c43a7d385ecdee36da54808d1e8

Add while statement

view details

push time in 12 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 26828b77b19795f5983b46d739c9bec5e7a7815a

Add BlockStatement

view details

push time in 12 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 5ac56e01fbbcbe305f8bdcff709c8be03f86d1f9

Dump: DRY

view details

push time in 12 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha a7570f6c5ef5bb0a10ac3e187860c0bc8ccc5c55

End jumps

view details

push time in 12 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 34950852d6ff33b2b756096a715c340958f64f1d

Dump: Revert removed new line

view details

push time in 12 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha a1b9b78da4da5eb4102073ea90be12c20f29a1cb

Implement if statement

view details

Parsa Ghadimi

commit sha 94e5fc82f3f1a33d39186028164f624487b3a75d

Dump: Render jumps helper

view details

push time in 12 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha c6086c64c83f445ae52b22d6fbe6a17803aefa1a

Add update expressions

view details

push time in 12 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 3f0be4f83b7a7af4742b4b2f49754c2ffa1273ab

basic variable declaration

view details

push time in 12 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 06209b7f5019857f0353cdf5105c71c94d1b67a0

Fix special number literals

view details

push time in 13 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 03848d1101d6ee8c1fa91dbe372e182bd81e0f2a

Support basic assignments

view details

push time in 13 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha e07f1883785011b27715db9b5772d7ed9f2db6a3

Implement Del

view details

Parsa Ghadimi

commit sha 5758d3fdb1dfbebeec211e36076570ff01de32c5

Add member expression

view details

Parsa Ghadimi

commit sha 912f7c53d84afc415fe1e3b7063eae82ebe9d109

Add the missing break

view details

push time in 13 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 2a9a75053c99c007a1b3912bcaa931c9430a1312

Inline binary/unary ops

view details

Parsa Ghadimi

commit sha c7f23095d44ff8501868f171a6a31304e926070f

Visitor: Remove variable declr from fn body.

view details

push time in 13 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha ed63fa4603f74de7a02b44d57b41161c60d9119b

Support numeric literals.

view details

push time in 13 days

create barnchTruebase-com/TruthStack

branch : q/install

created branch time in 13 days

issue commentTruebase-com/TruthStack

Install.sh not working well with Ubuntu

You don't actually need sudo permission to install global packages if you've installed NPM in a right way from the start. If you try to install a package with sudo once you'll need to install everything with sudo ever since.

And putting a sudo in the install.sh breaks things for someone like me who doesn't need sudo to install global packages, but on the other hand, if we don't put the sudo in there, nothing breaks for you, it just does not work.

So by default, it should run without sudo permission and we should add a flag in ./install.sh to run npm install -gs with sudo.

I'll open a PR to address this issue.

kaaninel

comment created time in 14 days

startedAli-Azmoud/flutter_xlider

started time in 14 days

startedSolido/awesome-flutter

started time in 14 days

startedtunitowen/fancy_bottom_navigation

started time in 14 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha a7add15d89f5684cb08cc3435403165cb750ba74

Add headers

view details

Parsa Ghadimi

commit sha 00ba16d15bf93dc272365a324bdfef7b3e384b85

buffer: Implement writeNet16/32

view details

Parsa Ghadimi

commit sha f2ae932b5b871685500df6cbbf75c8897802b30d

Use the new writeNetString api

view details

push time in 15 days

startedzloirock/core-js

started time in 16 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha cd1f2dca96684219adfe8c369cb634cfb43c80df

Function declr and dump

view details

push time in 19 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha fbdac4c6c2601faa37e18c3aca4eb3752661c85b

Add LdScope

view details

push time in 19 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 1ebb71534517bfab74140e829c3bb8d945684922

Scopes...

view details

push time in 19 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha a21d438cedb33db68521db9a487d3d8305862bb0

Compile unary

view details

push time in 20 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 3fd4e15f5de94eb5698e747ed87ad101d38607c1

pattern: Add extractNames

view details

push time in 21 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 0618dd671a08fb12de785cd8e6ed7b8e0ac606eb

Improve ByteCodes

view details

push time in 21 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 4aa525b85ef05efca05207765ae3a10deea84126

basic hoisting

view details

push time in 21 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha c65f1279cb92b7ecda6c2924b27e58f28b99f61d

Add acorn-walk

view details

push time in 22 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 727ee1584530c6270ef70c07ef366489d341e8b5

Fix a typo in docs

view details

push time in 22 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 850779a2f94db77ea5e74f7d1d1a87b2e75200dd

s/context/compiler/

view details

push time in 22 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha fd6658442384d6f4e7e8468e7a47a4952cf31443

Compile functions

view details

push time in 22 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha db11373f8cac87c5ebd6b4c70ad0f30579e8e775

Improve dump

view details

push time in 22 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 1d1be723b0908c7749053bcba5c164942577b262

Identifier

view details

push time in 22 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 3e5245a51bf068bbc569bb505cccfb6c14644187

Compile string literals

view details

push time in 22 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 6e6f3e87993fac451debdc7266676f0ed06a1e8b

Add writeString

view details

Parsa Ghadimi

commit sha d0c6905229c5db23c31edb3a67b36d35b86e6097

Add constant pool

view details

push time in 22 days

push eventqti3e/TFP

Parsa Ghadimi

commit sha df52a1136356c92577456e7c64cd24aea9a38121

Create README.md

view details

push time in 22 days

PublicEvent

push eventqti3e/waterscript

Parsa Ghadimi

commit sha c5aa961f303080831950b77ff8a65c13b93ee04a

buffer: Test skip and cursor

view details

push time in 23 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 517abbbf6f9b9b9c627f70c85a4ea6eeaa53f7a9

Make everything work again but using buffers

view details

push time in 23 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 9196f9694eb8ce612d9eb8227b298064f012c43e

Test buffer

view details

push time in 23 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha ddd98a1fdbbaeb93b0267b6265d236be975ee791

Implement Buffer Context and more

view details

push time in 23 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 887c7722798b183ae76bb7df32b8cad9e105979d

Cleanup

view details

push time in 23 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha b5677c50ff5ecb0e426fdaab83f0088dbd4413ea

Add scoping bytecodes

view details

push time in 23 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha a304f29e2b56466d0fbe5033ab083bf0083d1ece

Some build setup

view details

push time in 24 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 6b270170e67f8b4aa0275b1a05fab1a09a1b8281

Some build setup

view details

push time in 24 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha b5157112792b061a1b9a532e840e66e20d8fe2f5

Compile logical expressions

view details

push time in 24 days

push eventqti3e/waterscript

Parsa Ghadimi

commit sha 17b724a253970b4c327ef377c35d961ece27e8aa

Improve jumps

view details

push time in 24 days

more