prepack
realworld
prepack | realworld | |
---|---|---|
8 | 27 | |
14,385 | 2,218 | |
- | 0.6% | |
0.0 | 5.7 | |
over 2 years ago | 2 months ago | |
JavaScript | Svelte | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
prepack
-
Ask HN: Interest in a Rust-Inspired Language Compiling to JavaScript?
Hello HN,
I'm considering the development of a new programming language, drawing inspiration from Rust's strengths, with a focus on compiling to JavaScript. Here what I'm considering are some key features:
Strict Type System
Algebraic Data Types
*Unsafe Mode for JS/TS Interaction*: Facilitate direct interaction with existing JavaScript and TypeScript code.
No Null Usage: Option/Result patterns to avoid null.
Trait Implementation
Backend Development Priority: Initially targeting server-side applications.
Efficient Compiler Design: Including features like dead-code elimination and partial evaluation, similar to the approach of Prepack[0] (by Facebook).
I believe this approach could bring significant benefits, especially with recent advancements like Uint8Array and worker threads.
Would this be of interest to the community? Looking forward to your insights and discussion.
[0] https://github.com/facebookarchive/prepack
-
Do any engines or optimizers product TS-specific performance gains?
You can still do optimisations based purely on Javascript semantics. This is similar to the first example you give with dead function elimination, and many minifiers do some amount of this already, but you can take it to some extremes. One example of this is the (no longer maintained) Prepack project from Facebook. The core idea is to evaluate as much Javascript as possible at compile time, with the expectation that the result will probably be smaller (albeit less human readable) than the initial code.
-
[AskJS] Are there JS minifiers that can compress the code by storing and reusing repeating property/method names and strings?
It's no longer maintained, but I think prepack is roughly what you're looking for.
- Can something like typescript or elm be AOT-compiled efficiently?
-
React I Love You, But You're Bringing Me Down
i've had code where it intentionally relied on the wrong behavior (missing hook dependencies) and when I fixed it it caused an unintentional bug (hook fired too often or sometimes infinite rerendering). Yes it is more of a bug in the code rather than React hooks issue but it is also really hard to fix/rewrite. while i'd love to jump on the hype train projects like https://github.com/facebookarchive/prepack and how concurrent mode is still experimental after five+ years doesn't give me a lot of confidence.
-
Memoirs of a lone JavaScript developer PART 2 : Svelte. An awful implementation of an old idea.
Some real examples in JavaScript can be seen on Prepack[2]. Consequently it is natural to wonder whether we can AOT compile components of client side frameworks, to achieve a reduction in the final bundle size, but also to increase application execution speed.
-
React 18 is now in beta
Less or more it’s likely to happen, and could have been expected 2-3 years ago.
Especially with https://github.com/facebook/prepack. They want to eventually ship pre-compiled components rather than React.createElement() to end user
-
Vercel Welcomes Rich Harris, Creator of Svelte
https://github.com/facebook/react/issues/7324
I also think this is why facebook had been investing in `prepack` - https://github.com/facebook/prepack
realworld
-
SvelteKit is awful for building PWAs
To illustrate my concerns, let's take the "Real World Example" that was made by the official Svelte Team in the official repository (https://github.com/sveltejs/realworld).
-
Top repos to study when learning SvelteKit?
I often end up looking at https://github.com/sveltejs/realworld when I want to check how SvelteKit apps are "supposed" to be built. It's maintained by the Svelte team so you can learn good practices there.
-
How do I know which is better for data fetching? (server / client side) supabase
I was looking at this a couple of hours ago and took a look at the realworld app app. I found all the fetch is done through the api, which is always called from server side. Even for user interaction, they always use forms to send the requests through the server.
- What should be improved about learning SvelteKit?
- Sveltekit with Python backend
-
Why use server routes in the realworld example
I was looking at the realworld example and noticed that to login, they send a POST request to auth/login. auth/login then puts the data in an user object and sends it to an external API.
-
fetch failed in endpoint - Svelte Kit
I'm pretty sure fetch is available for endpoints in latest version of svelte kit (older versions of svelte kit need to use node-fetch, updated svelte real world app has removed it as a dependency) but it's not working for me. Overview of my project files is below:
-
Good examples of svelte code
I’d recommend to take example from real world Svelte https://github.com/sveltejs/realworld
- Is there a tutorial for making a login page with SvelteKit ssr?
- Authentication using cookies+jwt?
What are some alternatives?
react-18 - Workgroup for React 18 release.
svelte-kit - Sveltekit Starter Boiler Plate with full user creation/authentication using JWT token
next-runtime - The Next.js Runtime allows Next.js to run on Netlify with zero configuration
api.svelte.dev - The API worker source for https://api.svelte.dev
SvelteKit - web development, streamlined
svelte-float-window - A Svelte Floating Window component.
denoflare - Develop, test, and deploy Cloudflare Workers with Deno.
svelte-kit-cookie-session - ⚒️ Encrypted "stateless" cookie sessions for SvelteKit
jsx - The JSX specification is a XML-like syntax extension to ECMAScript.
vue-svelte-size-analysis - Comparing generated code size of Vue and Svelte components
rfcs - RFCs for changes to Ember
sites - Monorepo for the sites in the Svelte ecosystem