Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
constexpr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
61.
▲
by
constexpr
10y ago
This is a very good talk but I wonder if this alternate compiler design has actually made the TypeScript compiler slower in normal compilation mode. If you really do "helicopter in" to every point in the syntax tree and run IDE qu
62.
▲
by
constexpr
10y ago
I'm the cofounder of Figma (www.figma.com), a startup in San Francisco building a browser-based collaborative design tool to improve the way designers and engineers work together. We're a small team of 14, and we're looking f
63.
▲
Float Toy: Play with floating-point bit patterns
(evanw.github.io)
1 points
by
constexpr
10y ago
|
0 comments
64.
▲
by
constexpr
10y ago
This approach uses much less memory, gives a render that is exact instead of approximate (it doesn't suffer from corner clipping or grid resolution issues as you zoom in), and is quicker to do an initial render because there's no
65.
▲
by
constexpr
11y ago
San Francisco; Full Time; Onsite I'm the cofounder of Figma (www.figma.com), a startup in San Francisco building a browser-based collaborative design tool to improve the way designers and engineers work together. We're a small tea
66.
▲
by
constexpr
11y ago
Right now the only implicit conversions are null to nullable types and smaller integers to larger ones. There is no "===" right now and "==" requires equal types. I may consider aligning this more with JavaScript in the
67.
▲
by
constexpr
11y ago
There is no "any" type since ThinScript is an ahead-of-time compiled language and emulating dynamic types is a non-goal. Types are required and omitting them is a syntax error. Right now "let" is an alias for "var&q
68.
▲
by
constexpr
11y ago
Yes. As the parent comment said, you could try to to choose a subset of TypeScript that's relatively efficient to help avoid some of the issues with JavaScript. The problem is that the TypeScript language itself lacks certain primitive
69.
▲
by
constexpr
11y ago
I don't consider the design of TypeScript a weakness at all. TypeScript is really well designed and is great at what it does. The type system they came up with is pretty optimal for modeling real-world JavaScript code. But the tuning t
70.
▲
by
constexpr
11y ago
I'm not planning on supporting return type inference since I actually don't like that feature of TypeScript, but I could be convinced otherwise. It really harmed API readability for me when I tried to use it. All declarations in T
71.
▲
by
constexpr
11y ago
I considered that but I'm worried that won't work with WebAssembly because it's a more memory-constrained environment. Your app may generate a ton of data in a frame and run off the end of the address space. I guess I'm
72.
▲
by
constexpr
11y ago
I'm planning on experimenting with either pure reference counting (Swift), reference counting + cycle collection (Python), or garbage collection. I'd love to hear about what people are doing for emscripten actually. I've read
73.
▲
by
constexpr
11y ago
I plan to do it eventually. I've implemented generics before so that's not the issue. It's just hard to get the design of generics right when the compiler has multiple targets. You want to emit compact JavaScript code and at
74.
▲
by
constexpr
11y ago
Yes. TypeScript doesn't have a sound type system and it comes with a lot of baggage: * Using hashtables in TypeScript relies on the representation of JavaScript objects with strings as properties. Emulating JavaScript's in-memory
75.
▲
by
constexpr
11y ago
Yes! I considered this and it's an interesting idea. ThinScript may end up being pretty opinionated about memory allocation though (I'm not sure yet if I'm doing pure reference counting, pure garbage collection, or some combi
76.
▲
by
constexpr
11y ago
Oh wow I did not expect this to be up here this soon. Warning: two-week-old project. I've got a lot of plans for this but it'll take at least a few months for this to be anywhere near useful. Right now it's just an experiment
77.
▲
by
constexpr
11y ago
> Displaying a JavaScript dialog—alert, confirm, or prompt—no longer activates the calling tab. This seems like a regression to me. If some page is bugging me then I'd like to know which one it is so I can close it.
78.
▲
by
constexpr
11y ago
I currently write compilers that target JavaScript and have looked a TypeScript a lot for something like this. In practice, TypeScript isn't actually strictly typed. There is a ton of TypeScript code out there that does stuff like run-
79.
▲
by
constexpr
11y ago
San Francisco; Full Time; Onsite I'm the cofounder of Figma (www.figma.com), a startup in San Francisco building a browser-based collaborative design tool to improve the way designers and engineers work together. We're a small tea
80.
▲
by
constexpr
11y ago
I don't know much about the project but I have a lot of experience with asm.js. Using asm.js has many drawbacks and should only be used if the tradeoffs are acceptable. Some of the large issues: - A bad debugging experience (no segfaul
81.
▲
by
constexpr
11y ago
Meshes are closer but vector networks also attach specific attributes to edges which is not usually the case with meshes. Examples: control handles (for curves), stroke weight, dash pattern.
82.
▲
by
constexpr
11y ago
Figma is not just a UI mocking tool. It's a full general-purpose vector graphics editor. Vector networks work similar to meshes in 3D.
83.
▲
by
constexpr
11y ago
Figma is not just a UI mocking tool. It's a general-purpose drawing tool and is feature-equivalent with Sketch.
84.
▲
by
constexpr
11y ago
Graphs have a set of vertices and a set of edges, but vector networks also have a set of faces.
85.
▲
Introducing Vector Networks
(medium.com)
4 points
by
constexpr
11y ago
|
0 comments
86.
▲
by
constexpr
11y ago
San Francisco; Full Time; Onsite I'm the cofounder of Figma (www.figma.com), a startup in San Francisco building a browser-based collaborative design tool to improve the way designers and engineers work together. We're a small tea
87.
▲
by
constexpr
11y ago
> Threads won't be able to share FBO's or VBO's, but we're working on SharredArrayBuffer, which will allow multiple threads to share data (more like C style arrays than JS style lists, they still would have to be glBu
88.
▲
by
constexpr
11y ago
This sounds pretty great. This technique would be really powerful if the worker thread could pass a buffer of the rendered results off to the main thread efficiently for use by the main thread. For example, a game has a worker thread to ref
89.
▲
by
constexpr
11y ago
We're using Xcode instead of Visual Studio but that's essentially our process. Right now we're focusing our effort on getting the product right on the web first so native is currently on the back burner. A native version will
90.
▲
by
constexpr
11y ago
People normally associate WebGL with 3D game content, but it's for 2D too! I decided to build our own GPU rendering pipeline for the performance and document size benefits you mentioned and also so we can guarantee top-quality, consist
More ›