Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
oever
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
24 ms
·
361.
▲
by
oever
8y ago
RQBG does not generate bindings for that, but you could derive from QOpenGLWidget and write FFI to call into Rust for painting and resizing. Then you'd use Glium to do the painting. You can still use RQBG for the application logic. ht
362.
▲
by
oever
8y ago
By default Qt renders with OpenGL. You can talk to OpenGL via the Qt APIs. You can provide application logic in Rust, but the actual GUI is still written en C++ or QML. You can use Qt 3D for a UI with Rust logic. Writing a 3d scene with the
363.
▲
by
oever
8y ago
The C++/Qt/QML code calls into Rust. The Rust parts are only calling to C++ with callbacks passed into Rust. Those callbacks are small and typical Qt. They do construction, destruction and (thread-safe) signaling. So as per custom
364.
▲
by
oever
8y ago
> The API changes quite a bit unfortunately, and is no longer so nice to use. The object property could be changed to use QSharedPointer<X> when it is writable instead of a raw pointer (const X*). The setter could be done completel
365.
▲
by
oever
8y ago
On Windows and macOS, by default Qt will use the native file dialog.
366.
▲
by
oever
8y ago
Your notquick [0], "a nice workflow for emails that works for me", is similar to a topic I've thought about a lot and which was one of the reasons to start RQBG. (I'd like to tie my mail more to my projects and tasks via
367.
▲
by
oever
8y ago
I'm the author of the generator. There's a presentation on the project here: https://fosdem.org/2018/schedule/event/rust_qt_binding_gener... Happy to answer questions.
368.
▲
by
oever
8y ago
Article is from 2008.
369.
▲
by
oever
8y ago
The cuckoo hashing was new to me.
370.
▲
by
oever
9y ago
This is a small script to create a PocketMod from a pdf. #!/usr/bin/env bash INPUT="$1" OUTPUT="$2" PAPERSIZE=a4 pdftk "$INPUT" cat 2 3 4 5 1down 6-8down output "$OUTPU
371.
▲
by
oever
9y ago
PocketMod looks convenient. There's a LaTeX template to create them. https://www.overleaf.com/latex/examples/creating-pocketmods-...
372.
▲
by
oever
9y ago
Here's a site with more information on wooden skyscrapers. It has a design for a wooden empire state building. https://www.metsawood.com/global/Campaigns/planb/cases/woode...
373.
▲
by
oever
9y ago
That's a tenth of all USA mortgages. https://www.federalreserve.gov/data/mortoutstand/current.htm
374.
▲
by
oever
9y ago
Rust and C++, esp how Qt uses it do not mix very well in my opinion. For that reason I created tool to create bindings rom a JSON model to both Qt and Rust. You write the application logic in Rust and the UI in Qt. A talk at FOSDEM 2018 abo
375.
▲
by
oever
9y ago
Fellow musician here can confirm that two step page turns is very nice and easy to implement feature to have. The device seems great for adding notes to sheet music.
376.
▲
by
oever
9y ago
Rust has benefits over C++. But you cannot just port a project from C++ to Rust, especially if you use a Qt GUI. To combine Rust with Qt you could use a language binding that wraps Qt in a Rust API. This is a very big undertaking and will r
377.
▲
by
oever
9y ago
The project has no assumption of the platform that is used. It works with vanilla Qt projects regardless of IDE or build tool. Call rust_qt_binding_generator from your build tool to generate the binding files. This project is different from
378.
▲
by
oever
9y ago
Of course.
379.
▲
by
oever
9y ago
Most time on the project is spent on making a sensible binding at all. The ergonomics could definitely be improved. Rust has powerful macros that could make it simpler to use these bindings. My development time is finite.
380.
▲
by
oever
9y ago
The binding generator generates a binding from a JSON file. That gives C++ and Rust code. Additionally, a default Rust implementation is generated for convenience where the programmer fills in the application logic. At no point is there a n
381.
▲
by
oever
9y ago
C++ and Rust are very different. A direct binding is near impossible. This project takes a pragmatic approach: the GUI part is QML/Qt and the logic part is Rust. The separation is quite strict. The demo application showcases more of th
382.
▲
by
oever
9y ago
What's an electric sousaphone?
383.
▲
by
oever
9y ago
Here's a collage of protein crystals grown in space in 2000. https://en.wikipedia.org/wiki/File:Protein_crystals_grown_in...
384.
▲
by
oever
9y ago
My experience with Haskell for a webserver is that, yes, it's finnicky to get going. However, type checking from URL router to database [0], with esqueleto, is wonderful. With stack and docker the setup has gotten better. [0] https:&#
385.
▲
by
oever
9y ago
If you talk on the mobile phone constantly, it looks like you have a brick earring.
386.
▲
by
oever
9y ago
I thought this story would be about mobile phones.
387.
▲
by
oever
9y ago
[1] has this quote "Net neutrality serves all Internet users – rich as poor – by providing equal access to diverse content online. We support net neutrality, and believe it is crucial for a healthy, free, and open Internet." and &
388.
▲
Signing HTTP Messages
(web-payments.org)
2 points
by
oever
9y ago
|
0 comments
389.
▲
by
oever
9y ago
Is there an incentive to store the blockchain itself? A proof of space might be derived from the blockchain history. The would create an incentive to store the blockchain. That way the proof of space is a useful use of space.
390.
▲
by
oever
9y ago
Indeed. To indent properly you need to know the schema. The schema tells you to which element you may add or remove white-space.
More ›