Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ogoffart
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
151.
▲
by
ogoffart
4y ago
> I suppose the key reason is ABI is not defined by the language standard? It is hard to define ABI in the language standard, since ABI heavily depends on the architecture. (The ABI specify, for example, the calling conventions and in wh
152.
▲
by
ogoffart
4y ago
> Many existing projects used lower level libraries such as Python Imaging Library, but I opted for HTML and CSS. The development is fast when you can edit the HTML and immediately see the result without rendering a raster image after ea
153.
▲
Rust and C++ Interoperability
(slint-ui.com)
235 points
by
ogoffart
4y ago
|
93 comments
154.
▲
by
ogoffart
4y ago
Yeah, but that's platform-specific. It's not part of the C or the C++ standard library.
155.
▲
Slint on Microcontrollers
(docs.rs)
1 points
by
ogoffart
4y ago
|
0 comments
156.
▲
Slint 0.3 Released, with a platform API for Microcontrollers
(slint-ui.com)
8 points
by
ogoffart
4y ago
|
0 comments
157.
▲
by
ogoffart
4y ago
Exactly. A rust panic will call the panic_handler, implemented there: https://github.com/Rust-for-Linux/linux/blob/459035ab65c0ebb... So accessing an array out of bound will have a runtime check that will cal
158.
▲
by
ogoffart
4y ago
Demo works for me. What exactly is down? A github issues with details would be appreciated.
159.
▲
by
ogoffart
4y ago
you can get screens for under 10$ eg https://www.waveshare.com/pico-lcd-1.3.htm or https://www.waveshare.com/pico-lcd-0.96.htm
160.
▲
by
ogoffart
4y ago
I've been using the Pico to drive a screen successfully: https://slint-ui.com/blog/porting-slint-to-microcontrollers....
161.
▲
Slint Funding and Hiring
(slint-ui.com)
2 points
by
ogoffart
4y ago
|
0 comments
162.
▲
by
ogoffart
4y ago
> 1. Why should it need to do this? I vaguely remember from the time (~10 years ago) is that this was a requirement for phones (eg, when Qt is used on a Nokia phone) that the network request go to the interface preferred by the user (so
163.
▲
by
ogoffart
4y ago
Rust -> Slint? https://github.com/slint-ui/slint/
164.
▲
by
ogoffart
4y ago
> The problem is that it requires shared mutable access to that state, which is clunky at best in Rust (it requires interior mutability). I don't see the problem with using interior mutability (Rc<RefCell<T>> or Arc<M
165.
▲
by
ogoffart
4y ago
Yes, the .slint file without a .rs file is a complete example. They can be viewed with the online editor. For example, the cells: https://slint-ui.com/releases/0.2.2/editor/?load_url=https:/... The cell
166.
▲
by
ogoffart
4y ago
Implementation in Slint: https://github.com/slint-ui/slint/tree/master/examples/7guis
167.
▲
by
ogoffart
4y ago
I've used KDevelop and QtCreator to write C++, and they had pretty good auto-completion and semantic information way before clang came along. Example, these blog posts from 2009 showing that KDevelop already had semantic highlighting,
168.
▲
Porting the Slint UI Toolkit to a Microcontroller with 264K RAM
(slint-ui.com)
8 points
by
ogoffart
5y ago
|
0 comments
169.
▲
by
ogoffart
5y ago
The actual license text for the ambassador license is linked from the ambassador page: https://slint-ui.com/licenses/slint_license_agreement_ambass... , see Exhibit E Basically you must agree to tell users and people t
170.
▲
by
ogoffart
5y ago
The goal is to support more higher level languages such as Python and Go in the future. The reason to start with these languages is that: Rust is the implementation language. C++ is another compiled language which is much used in the indust
171.
▲
by
ogoffart
5y ago
There is also a free (as in beer) license: https://slint-ui.com/ambassador-program.html That should cover your need for your hobby project. For your OSS work, you can license your code in MIT, BSD, Apache, or any license co
172.
▲
by
ogoffart
5y ago
Cargo links all the rust code together in a static binary, but the C/C++ libraries can be linked dynamically, and in the case of something like Qt, most certainly are. Since most important part of Qt are LGPL, you can use this crate an
173.
▲
by
ogoffart
5y ago
I think you can go quite far with Qt/QML and the qmetaobject crate. For example https://github.com/gyroflow/gyroflow
174.
▲
by
ogoffart
5y ago
The thing is that Qt is a C++ toolkit written in C++ and meant to be used from C++ with its C++ API. Especially if we want to use QtWidgets, the API surface is huge . There are a bunch of bindings with different language, but even the ones
175.
▲
by
ogoffart
5y ago
"containers" was not in the list. There sure is some overlap with what Qt offers that most language offers (Containers, Networking, Database, threading, ...). But purely in the context of making a UI library, there is still a hug
176.
▲
by
ogoffart
5y ago
Well, that's the thing. In my (biased) opinion, that crates doesn't have any of the problem mentioned. - The qmetaobject crate tries to be idiomatic rust and to be used without any C++ - As far as the user is concerned, there shou
177.
▲
by
ogoffart
5y ago
I wonder what problems from the list apply to another existing and more mature solution: https://github.com/woboq/qmetaobject-rs/
178.
▲
SixtyFPS Becomes Slint
(slint-ui.com)
3 points
by
ogoffart
5y ago
|
0 comments
179.
▲
by
ogoffart
5y ago
Sorry, I did not mean to say that this was representative of the overall experience. On the contrary, I'm usually quite satisfied with the compiler messages. Thanks for your work!
180.
▲
by
ogoffart
5y ago
The worst error message was basically no error message. After I made some big refactoring to my project, cargo would just exit with: error: could not compile `the_project`. And nothing else. No hint of what the problem is. It then t
More ›