-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit f7c5e19
Showing
4 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// To test: make && ./out/render test_input.js | ||
package main | ||
|
||
//go:generate go-bindata -pkg $GOPACKAGE -o assets.go dist/ | ||
|
||
import ( | ||
"github.com/ry/v8worker2" | ||
) | ||
|
||
func recv(msg []byte) []byte { | ||
println("recv cb", string(msg)) | ||
return nil | ||
} | ||
|
||
func main() { | ||
indexFn := "dist/main.js" | ||
data, err := Asset(indexFn) | ||
if err != nil { | ||
panic("asset not found") | ||
} | ||
code := string(data) | ||
|
||
worker := v8worker2.New(recv) | ||
|
||
// Load up index.js code. | ||
err = worker.Load(indexFn, code) | ||
if err != nil { | ||
println("Problem executing Javascript.") | ||
panic(err) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import * as ts from "typescript"; | ||
|
||
|
||
V8Worker2.print("Hello World", ts.createProgram); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"name": "deno", | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"parcel-bundler": "^1.8.1", | ||
"typescript": "^2.8.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"compilerOptions": { | ||
"module": "commonjs", | ||
"noImplicitAny": true, | ||
"sourceMap": true, | ||
"removeComments": true, | ||
"preserveConstEnums": true, | ||
"declaration": true, | ||
"target": "es5", | ||
"lib": ["es2015", "dom"], | ||
"noEmit": true, | ||
"noUnusedLocals": true, | ||
"noImplicitReturns": true, | ||
"noImplicitThis": true, | ||
"alwaysStrict": true, | ||
"noUnusedParameters": false, | ||
"pretty": true, | ||
"noFallthroughCasesInSwitch": true, | ||
"allowUnreachableCode": false, | ||
"experimentalDecorators": true | ||
}, | ||
"include": ["*.ts"] | ||
} |
f7c5e19
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
f7c5e19
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ry, I just watched your talk. It was fantastic. I'm really curious what is going to happen here. This is very exciting!
f7c5e19
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
beyler geçmişten geliyorum node böyle öldürüldü
f7c5e19
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥺
f7c5e19
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Congratulations on the release of v1.0.0🎉🎉🎉
f7c5e19
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ry Congrats on releasing v1.0.0 2 years to the day after this commit.
f7c5e19
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gelecekten geliyorum diyecektin heralde?
f7c5e19
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<3
f7c5e19
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️ 🦕
f7c5e19
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Node daha yaşar, merak etmeyin 😉
f7c5e19
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deno is born <3
f7c5e19
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where it all started...
f7c5e19
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Congrats 🦕 ! You made it here 4️⃣ ! 🎉
f7c5e19
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks