Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mondrian
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
91.
▲
by
mondrian
3y ago
I don’t have experience with Django but this sounds interesting, I’ll do some research. In general, being able to integrate Hyperdiv selectively into existing stacks would be cool. Currently you could probably do it with an iframe, which wo
92.
▲
by
mondrian
3y ago
It seems in nicegui you build the initial UI, and then mutate various parts of it in event callbacks. It seems similar to traditional dom programming. Hyperdiv expresses UI declaratively based on state. As state changes, the app re-runs, pr
93.
▲
by
mondrian
3y ago
Thanks! What do you mean by async? At one point Hyperdiv’s frontend was using Svelte and Svelte Material UI components. I explored other options before settling on shoelace. Shoelace stuck primarily because it’s very solid and uniform. Ran
94.
▲
by
mondrian
3y ago
Thanks! Everything happens on the server. The client is a dumb client that just applies incoming patches to the browser dom.
95.
▲
by
mondrian
3y ago
Thanks! I like your project! Similar idea, indeed.
96.
▲
by
mondrian
3y ago
Hyperdiv uses one thread per connection and it’s true that a Python process may not be great at running a very large number of threads. Currently you can scale a Hyperdiv app horizontally by running it in multiple processes (on multiple mac
97.
▲
by
mondrian
3y ago
Thanks! I need to do more research on the available HTML over the wire protocols. In principle Hyperdiv can easily send HTML strings instead of its custom JSON format.
98.
▲
by
mondrian
3y ago
Thanks! I will do that.
99.
▲
by
mondrian
3y ago
As far as comparing to Reflex: In a nutshell, Reflex statically compiles the app to Javascript, which then runs in the browser. Event handlers and state changes happen in Python, and UI logic happens in the browser. By contrast, Hyperdiv ru
100.
▲
by
mondrian
3y ago
Thanks! Currently you can’t create a new “base” component with custom html/javascript, short of adding it to the hyperdiv source code. I’m working on adding third party component support.
101.
▲
by
mondrian
3y ago
Thanks! There’s no file upload component currently but I plan to add it soon.
102.
▲
by
mondrian
3y ago
I plan on putting those online. I haven't yet set up the hosting infrastructure to serve Hyperdiv apps off my linodes. That and some of the demo apps are currently designed as local apps that edit local files on disk, and/or not y
103.
▲
by
mondrian
3y ago
Thanks! Pue looks cool, thanks for sharing. I see some similarities to https://reflex.dev in terms of providing a declarative dom expression language with built-in conditionals and loop primitives.
104.
▲
by
mondrian
3y ago
Ahh thank you! I fixed it.
105.
▲
by
mondrian
3y ago
Thanks! I appreciate the feedback and plan to host the docs app on the website in the future.
106.
▲
by
mondrian
3y ago
Thanks! > htmx being involved I think it's possible. Hyperdiv uses a custom DOM patching system but I could imagine it being swapped for an existing HTML over the wire tech.
107.
▲
by
mondrian
3y ago
Yikes, what browser/os? Had a hard time repro-ing.
108.
▲
by
mondrian
3y ago
Thanks! I am really interested in this topic, and I think it's really promising. I've experimented with showing GPT-4 how Hyperdiv works via examples and was impressed by how well it was able to produce new apps, and even infer pa
109.
▲
by
mondrian
3y ago
Thanks! I plan on putting the demo apps and docs app online.
110.
▲
by
mondrian
3y ago
Thanks! Streamlit is really cool and is obviously mature and successful. It seems to be influenced by Jupyter notebooks and data science practice. It aims to be like Jupyter notebooks but in code? Correct me if I'm wrong. Hyperdiv is a
111.
▲
by
mondrian
3y ago
The task system uses a thread pool as well as an ioloop. So tasks can be normal functions as well as `async def` functions/coroutines. You can also pass in a custom executor and use processes instead of threads. Thanks for the feedback
112.
▲
Show HN: Hyperdiv – Reactive, immediate-mode web UI framework for Python
(github.com)
170 points
by
mondrian
3y ago
|
83 comments
113.
▲
by
mondrian
3y ago
Yeah that's true. You need the data from both the ISP and reddit, and correlate using timestamps from both sides. That's true of VPNs, too. If multiple people with the same external IP were browsing reddit around the same time, th
114.
▲
by
mondrian
3y ago
Btw doesn't increasing adoption of CGNAT [1] render useless these types of attempts to identify people based on IP address? A CGNAT IP address identifies multiple households. [1] https://en.wikipedia.org/wiki/Carri
115.
▲
by
mondrian
3y ago
Does copyright law say you can ingest copyrighted work at very large scale and sell derivates of those works to gain massive profit / massive market capitalizations? Honestly wondering. This seems to be the crux issue here.
116.
▲
by
mondrian
3y ago
Immediate mode is a fuzzy concept, as witnessed by this writeup: https://github.com/ocornut/imgui/wiki/About-the-IMGUI-paradi...
117.
▲
by
mondrian
3y ago
Users can have an app in multiple tabs though, and apps can read/write local storage in the background.
118.
▲
by
mondrian
3y ago
Looks cool. This is kind of like streamlit, which (I think) tried to escape the limitations of notebooks by giving you an API to quickly make a shareable app with sliders/charts etc. (Yet it retains some notebook concepts like 'ce
119.
▲
by
mondrian
3y ago
Yeah, sorry, it's using CSS parts for customization. So if a component is made up of multiple nested containers, you can target the inner containers with ::part(name).
120.
▲
by
mondrian
3y ago
I guess the advantage is that you can drop them into any HTML page and they look and work correctly. And you can control them with plain JS, like `document.getElementByID(dialogId).open = false;`
More ›