Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
epage
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
63 ms
·
601.
▲
by
epage
8y ago
> 1. The Rust community is biased against the usage of "unwrap". It was supposed to make prototyping easier. It should not have been there and should not be used. I'm a little confused on this point you are making. You sa
602.
▲
by
epage
8y ago
> `?` isn't really that great - for all but toy cases you have to jump through hoops - especially if you are trying to handle different error types from separate in a unified way. To be clear, that isn't the fault of `?` but th
603.
▲
by
epage
8y ago
As a user, I don't think in terms of applications, I can think in terms of workflow which spans applications. I might be switching between certain browser windows, a terminal etc and I shouldn't be having to think "wait, thi
604.
▲
by
epage
8y ago
Looks like thats a site for notifying you of new dependencies? I think I'd prefer PRs like https://dependabot.com/
605.
▲
by
epage
8y ago
The Playground [0] and cargo-script [1] are the best options atm. In some respects, I think I prefer these. The only downside is the lack of introspection which is diminished by the use of static typing. [0] https://play.rust-l
606.
▲
by
epage
8y ago
Does build-plan help with the case of including an artifact from another build system (e.g. data file for code-generation like SVD or libs to link against)? What about someone not using build-plan but publishing crates, whether external or
607.
▲
by
epage
8y ago
Bah, my brain auto-completed.
608.
▲
by
epage
8y ago
I wholeheartedly agree with K&R. A lot of the hard problems I've debugged have been the interaction of multiple state machines. In these cases I needed to see the forest of interactions rather than the trees of instructions. On t
609.
▲
by
epage
8y ago
No, I have not written a GUI in Rust yet. I've been doing libraries and CLIs so far. But I find the standard approaches to GUI broken: inheritance and shared mutable state. i think Rust does a service by highlighting the brittleness
610.
▲
by
epage
8y ago
> As the author points out, if you’re used to writing C or C++, it’s going to take a while before responding to the borrow checker is second nature I see these comments and it feels so foreign to my experience. The borrow checker was sec
611.
▲
by
epage
8y ago
History is pretty broken. Some other problems to address - You can either search or browse by time, but not search within a time frame (as far as I know) - Pages are listed by when you opened a tab, not when you closed it. I might have a t
612.
▲
by
epage
8y ago
> 1. I find it odd that some things like slice reads can still panic by default. Yes, I can use `foo.get(1)` to avoid panics, but still - it's a bit odd to me. I wonder if this is similar to C++'s `[]` vs `at`. `at` does impli
613.
▲
by
epage
8y ago
iirc the graphics proposal has gone through several iterations, including a std::web_view [0]. Yes, putting a web browser in the stdlib. I think I saw passing reference in a recent trip report that for now they are only focusing on math pri
614.
▲
by
epage
8y ago
The concern over fragmentation is why believe conan's approach is the best: decouple dependency management from build rather than forcing everyon to align on build. Still has its hurdles but it is a step in the right direction for tryi
615.
▲
by
epage
8y ago
To add a quick summary to the given acronym expansion, I think of Entity-Components as a native , in-memory database where Entities are your Primary Keys and Components are your Tables. Systems are a way of organizing and running operation
616.
▲
by
epage
8y ago
Since using Rust, I've longed for this in Python but - imo it effectively requires using type checking (mypy) - Too out of place with the rest of the python ecosystem (even if I like something, I'd rather not force non-standard pr
617.
▲
by
epage
8y ago
This looks really nice. I'll have to give this a try at some point to see how I feel about it vs Azure Pipelines. From my quick look, this looks more general purpose at the cost of more verbosity.
618.
▲
by
epage
8y ago
There have been times I've wanted to templatize my configuration but I don't want to do it with text-based templates but templates within the configuration files syntax (be it yaml, toml, or something else). Not sure what this is
619.
▲
by
epage
8y ago
I wonder if this is due to not using the native compositor which they are looking at fixing this year. See "Adding support for native OS compositors to WebRender" at https://pcwalton.github.io/2018/12/07&
620.
▲
by
epage
8y ago
I've only seen people complain about WebRender on Mac. Looks like the cause is known and looking to be fixed this year [1]. [1] See "Adding support for native OS compositors to WebRender" on https://pcwalton.githu
621.
▲
by
epage
8y ago
While yes, there is a negotiation between two perspectives going on, imo the fault for the shutdown is independent and wholly owned by Trump and McConnell with the republican senators as accessories for not ousting McConnell. The House and
622.
▲
by
epage
8y ago
> I hear Appveyor and Azure Pipelines are the two most usable Windows build systems; I'm quite happy on Appveyor. Doing better than me. Only inertia keeps me on Appveyor. Once I have time to look into Azure Pipelines, I'm off
623.
▲
by
epage
8y ago
I feel dirty for saying this but Azure Pipelines is the service that is tempting to me because of the power of its file format (variable substitution, conditionals, template tasks and steps).
624.
▲
by
epage
8y ago
> So the way I would teach Git is to honestly start with the graph. Show it in action with pictures. Show how to always keep references to commits around to ensure work sticks around. Show how branching and stashing work, let them be con
625.
▲
by
epage
8y ago
> Some basic requirements are: - searchable - code snippets - hyperlinking I think another requirement to add is diagramming. I think wiki-style diagramming would be a big help for programmers to better communicate ideas. I've used
626.
▲
by
epage
8y ago
I agree about the need for an Idioms Cookbook or something to show different practices. We have one for how libraries can help you solve problems but not code patterns..
627.
▲
by
epage
8y ago
> - Rust comes with a default unit test framework but it pretty bare bones. I havent seen examples of test fixture, setup/teardown support and loading test configs etc. There is an eRFC for better integration of custom test framewor
628.
▲
by
epage
8y ago
> Your clients don't though, you can have multiple versions of a crate in your build tree Yes, but you can only directly depend on one version of failure. What happens if you directly depend on two libraries with different versions
629.
▲
by
epage
8y ago
> Anything that would break failure in libraries written now would break all libraries because it would mean the fundamental Error trait has changed. Since failure is Error compatible you don't lose anything using it. Its only ~2500
630.
▲
by
epage
8y ago
`failure` captures common error patterns in Rust and provided a test bed for experimenting on them while working to improve `trait Error`. There is an RFC for pulling some of the trait improvements into the language. After that, I believe
More ›