Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ogoffart
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
181.
▲
Cargo-UI: A GUI for Cargo
(github.com)
5 points
by
ogoffart
5y ago
|
0 comments
182.
▲
by
ogoffart
5y ago
While it is true that some shell scripts need to be portable, many don't. Many shell scripts are written just to run in one single machine. Or they run in a controlled environment. Maybe even a docker container that provide anyway a se
183.
▲
by
ogoffart
5y ago
Why's that? The logic might be easy to do in shell. And if there is an easy way to give a good presentation from your shell script, then let's just use that.
184.
▲
by
ogoffart
5y ago
thank you :-)
185.
▲
by
ogoffart
5y ago
We plan to add bindings to more languages such as Python, Go, and others
186.
▲
by
ogoffart
5y ago
YAD is, in fact, the source of inspiration for this blog post. I seen YAD mentioning and that you can do pretty advanced stuff with it. Since we're developing a GUI framework I thought we could do the same with our viewer utility, and
187.
▲
by
ogoffart
5y ago
That works for simple text input stuff, but not when you want a more complex or custom GUI like the second example.
188.
▲
by
ogoffart
5y ago
Imtui is not the same things as it is a C++ library, so you don't write shell code anymore, you write C++ dialog is an option but is quite limited in what you can do. There are many alternatives, and this is just another one to choose
189.
▲
Showing GUIs from Shell Scripts
(sixtyfps.io)
166 points
by
ogoffart
5y ago
|
55 comments
190.
▲
SixtyFPS 0.1
(sixtyfps.io)
3 points
by
ogoffart
5y ago
|
0 comments
191.
▲
by
ogoffart
5y ago
From Qt 5.7, C++11 is mandatory. Anyway, why would one want to use an outdated Qt version? I don't think LGPL3 is a problem at all for SerenityOS ports anyway.
192.
▲
by
ogoffart
5y ago
Shameless plug to the Rust GUI framework I'm working on: SixtyFPS https://sixtyfps.io https://github.com/sixtyfpsui/sixtyfps
193.
▲
by
ogoffart
5y ago
Why do namespaces require name mangling? One could imagine just using :: in the symbol name. Anyway, even C has name mangling: For example, on Windows, all C symbols gets prefixed by an underscore https://docs.microsoft.com/
194.
▲
by
ogoffart
5y ago
> you find a simple line of C++ that says "y=f(x);", and it can do anything In practice you know what it does because of the context. Devs don't usually override operator to mean the opposite of their meaning. And in case
195.
▲
by
ogoffart
5y ago
The problem with defer is that it is a macro with all its problem. Imagine such code for (int i = 0; i < files_count; ++i) { file_handle_t handle = open_file(files[i]); defer(close_file(handle)) { /
196.
▲
by
ogoffart
5y ago
Relying to myself to mention another thing: https://github.com/rust-lang/rust/issues/64796 is adding support for a #[cfg(version(x.y))] tag that will allow crates to more easily provide additional feature whe
197.
▲
by
ogoffart
5y ago
Yeah, this is a problem that the distribution packaged rust compiler is quickly out of date compared to what most of the ecosystem expect. However there is hope for a better future: https://github.com/rust-lang/rust&#x
198.
▲
by
ogoffart
5y ago
Yes, we use static typing and everything is statically known within a single file. This allows to preview each control on its own since they don't depends on their parents.
199.
▲
by
ogoffart
5y ago
The use of the Qt backend is only temporary to get native style quickly on every platform. In the future, we would use a native windows and mac bckend.
200.
▲
by
ogoffart
6y ago
Yes: https://doc.rust-lang.org/stable/std/primitive.slice.html#me...
201.
▲
by
ogoffart
6y ago
Another create which i've been contributing to and maintaining is the cpp crate, which can also be useful for interoperability with C++, as it allows to embed C++ code snippets directly within rust functions: https://github.
202.
▲
by
ogoffart
6y ago
Reqwest lets you choose between async or not. It has a "blocking" module with a similar API, but no async functions. https://docs.rs/reqwest/0.11.2/reqwest/blocking/index.html (Maybe this uses
203.
▲
by
ogoffart
6y ago
From what I understand, this is not about mixing uses of different libraries. This is about a program that works fine with libstdc++, but crashes with libc++ because of a different behavior between the two: the order in which the destructo
204.
▲
by
ogoffart
6y ago
Trying to make a new GUI toolkit for embedded and desktop https://sixtyfps.io/ https://github.com/sixtyfpsui/sixtyfps/
205.
▲
Expose a Rust Library to Other Languages (Esp. C++)
(sixtyfps.io)
8 points
by
ogoffart
6y ago
|
0 comments
206.
▲
SixtyFPS
(sixtyfps.io)
3 points
by
ogoffart
6y ago
|
0 comments
207.
▲
by
ogoffart
6y ago
In the following example, the text is bound to the text of a line edit: https://www.sixtyfps.io/editor/?snippet=import+%7B+LineEdit+... Is that the kind of example you were looking for?
208.
▲
by
ogoffart
6y ago
Yes, we have plans for charts. We are still very early in the development so this kind of feature will definitively come later as there will be need for them.
209.
▲
by
ogoffart
6y ago
We have instruction on how to build for arvV7: https://github.com/sixtyfpsui/sixtyfps/blob/master/docs/buil... As for Remarkable, I don't know enough about their platform to know if they are op
210.
▲
by
ogoffart
6y ago
If you mean the native browser widget, this is currently not planed. The browser view is just a way to preview the result, but the real product is meant to be used natively without a browser. On the desktop platform, we can make use of a na
More ›