News for hackers. Stuff that matters.
Re:Bayard: a full-text search and indexing server written in... by mmoez on Friday November 01, 2019 @08:44AM (#21418102)
"X written in Rust" is becoming a tiring clickbait pattern on tech boards.

Why not simply announcing "X" in the title?

Re:Bayard: a full-text search and indexing server written in... by reacharavindh on Friday November 01, 2019 @10:43AM (#21419345)
It’s not useless. I for one associate language with their run time properties..

Written in Python - easy to understand, but lacks performance. Probably cant use more than 1 CPU core. Needs a lot of memory.

Written in Go - fast enough for most cases, all CPU cores, but possibly high mem usage becUse of GC. I need to plan for it.

Written in Rust - possibly new and maturing, uses memory effectively, likely to use all cores. Easy to deploy (single binary)

Written in JS - probably not for me - personal taste and hate of npm ecosystem.

Written in C - probably the best performing, but less robust, no memory safety.

So, “written in” helps in judging whether to care for that project or not to some extent.

Re:Bayard: a full-text search and indexing server written in... by michaelcampbell on Friday November 01, 2019 @12:11PM (#21420357)
At least it's not Rust-this or that-4-Rust. The bundling of the language in the title of the app is a fad I hope I see the end of.

Yes, Python, we get that you wrote WhateverPy in Python.

Re:Bayard: a full-text search and indexing server written in... by staticassertion on Friday November 01, 2019 @12:53PM (#21420961)
This, for me, is due to lack of package namespacing in these languages. Someone took 'xyz' ? Well I guess I'm going to be 'xyz-rs'
Re:Bayard: a full-text search and indexing server written in... by weberc2 on Friday November 01, 2019 @10:16PM (#21425487)
Rust has its own -rs thing going on.
Re:Bayard: a full-text search and indexing server written in... by CameronNemo on Saturday November 02, 2019 @11:39AM (#21428261)
Mostly for bindings though.
Re:Bayard: a full-text search and indexing server written in... by weberc2 on Saturday November 02, 2019 @01:41PM (#21428935)
Ah, that would make sense. I’ll have to take your word for it.
Re:Bayard: a full-text search and indexing server written in... by brobinson on Friday November 01, 2019 @03:36PM (#21422854)
For me, I primarily think about stability:

Python/Go/JS/C -> runtime crashes due to type errors and/or data races

Rust -> no runtime crashes due to type errors/data races

Re:Bayard: a full-text search and indexing server written in... by makapuf on Friday November 01, 2019 @05:40PM (#21423986)
Why would go and c which have static typing suffer from type errors ? Why would go that has a data race checker and quite good concurrency primitives be more prone that rust ?

Rust seems to have its merits but I find the parent post more level headed in that it tries to characterize language runtime, admittedly subjectively but not in a rust==good, rest==bad way.

Re:Bayard: a full-text search and indexing server written in... by brobinson on Friday November 01, 2019 @06:04PM (#21424169)
You can easily cause a C/Go program to crash/abort due to runtime type errors. If you've written C, you've miscast something at some point. Go in particular relies extremely heavily on runtime reflection. Both languages have poor type systems.

Go's race detector is useful and we've caught bugs using it, but it's nicer when the compiler prevents you from having those bugs in the first place.

>quite good concurrency primitives

That's gonna be a "yikes" from me, dog: https://www.jtolio.com/2016/03/go-channels-are-bad-and-you-s...

I'm not a Rust fanboy, I simply like languages where it's more difficult to represent invalid state (Haskell, Ocaml, Rust, etc.) than in the mainstream languages I suffer with in my job on a daily basis. Rust happens to have great tooling and is the most likely to make inroads on these issues I care about (runtime stability + code correctness via good type system).

Re:Bayard: a full-text search and indexing server written in... by weberc2 on Friday November 01, 2019 @10:19PM (#21425497)
Go doesn’t rely heavily on runtime reflection. Putting it in the same category as C or JS is disingenuous. Rust has a great static type system, but I’ve never seen a Go program fail on a runtime/reflection type error before.
Re:Bayard: a full-text search and indexing server written in... by brobinson on Saturday November 02, 2019 @05:55PM (#21430386)
I'm not sure what to say. Go code (stdlib, popular libraries, etc.) uses runtime reflection _everywhere_. I've been using Go since 1.2 and I've seen too many runtime crashes due to type errors to count.
Re:Bayard: a full-text search and indexing server written in... by weberc2 on Sunday November 03, 2019 @08:20AM (#21433701)
It is used for things like printf and JSON marshaling. I’ve been using Go regularly since 2012 and this isn’t a real problem. The reflection in the standard lib and popular third party libs (and most unpopular third party libs for that matter) is rock solid. Moreover, reflection probably accounts for less than 1% of Go code—not sure where you’re getting “everywhere” from. So I guess I’m calling your bluff.
Re:Bayard: a full-text search and indexing server written in... by brobinson on Sunday November 03, 2019 @01:10PM (#21435496)
Even if your claim of "probably ... less than 1% of Go code" is accurate, appearing somewhat less often than 1 out of every 100 lines of code is _everywhere_ to me...
Re:Bayard: a full-text search and indexing server written in... by weberc2 on Sunday November 03, 2019 @04:04PM (#21436575)
To be clear, I didn't say "less than 1 out of every 100 lines", but in any case I don't consider yours to be a reasonable definition of "everywhere". Especially since such a low frequency doesn't support your claim that "you see runtime type errors too many times to count". Perhaps you're using libraries that are far, far below the ecosystem's average quality?
Re:Bayard: a full-text search and indexing server written in... by h91wka on Sunday November 03, 2019 @08:36AM (#21433781)
Gosh, Rust evangelists did a really good job brainwashing the community. Take a look at big Rust projects that do anything useful, like Tokyo. You'll find dozens of unsafe blocks everywhere, so much for static analysis. True, in the most simple cases linear types will slap you on the wrist, but most bugs happen in the complex parts of code anyways.
Re:Bayard: a full-text search and indexing server written in... by iopq on Tuesday November 05, 2019 @04:14PM (#21456771)
You're talking about a library that is forming the base of multithreaded applications. 99% of other libraries don't have nearly as much unsafe
Re:Bayard: a full-text search and indexing server written in... by brobinson on Sunday November 03, 2019 @01:08PM (#21435475)
I'm not part of the Rust "community" and don't participate in any of its fora, I just like a lot of the ideas it's pushing forward (see sibling comment). "unsafe" doesn't dIsAbLe AlL pRoTeCtIoNs like the anti-Rust crowd likes to say. I've written a few small (5,000+ LOC) programs in Rust over the last five years or so and I've only personally had to dip into unsafe once in my own code. I didn't claim that Rust prevents all bugs, I pointed out that Rust programs are more stable in the case of _runtime type errors and data races_ (which they are).
Re:Bayard: a full-text search and indexing server written in... by ludjer on Friday November 01, 2019 @03:27PM (#21422762)
where is Java in the list :D
Re:Bayard: a full-text search and indexing server written in... by h91wka on Friday November 01, 2019 @12:08PM (#21420301)
Sorry, but by and large that's "red goes faster" type of reasoning.
Re:Bayard: a full-text search and indexing server written in... by jaxwerk on Friday November 01, 2019 @12:47PM (#21420873)
Red is a property of a car totally unrelated to its performance characteristics. The language software is implemented in absolutely has an impact on the performance and behavior of the software.

This is more like "Carbon is faster than aluminum." Yeah, it's a generalization, but it's a useful one.

Re:Bayard: a full-text search and indexing server written in... by cgag on Friday November 01, 2019 @12:52PM (#21420931)
I don't know what you people get out of pretending you can't derive much from being told what language something is written in.
Re:Bayard: a full-text search and indexing server written in... by codetrotter on Friday November 01, 2019 @08:53AM (#21418168)
As someone writing software in Rust myself I am always interested in knowing about projects using Rust for multiple reasons.

1) In the case of libraries (crates), it might be something I can make use of in the future.

2) I can look at how they solved the problem they are solving and compare that with how I'd do it and maybe learn something new that can be useful to me in my future projects.

3) I want Rust to thrive and I want people to be aware of projects using Rust because the more people that are aware of Rust the bigger is the probability that I can work for more companies in the future writing software for them in Rust.

Re:Bayard: a full-text search and indexing server written in... by KenanSulayman on Friday November 01, 2019 @09:10AM (#21418298)
Your 2) is by far the most important to me. Not only does it allow to learn about solutions I could repurpose and their used patterns; it can also give me that last missing piece I was looking for that blocked me from building something.

That said, I'm especially looking for software "written in Rust" because I know the build process is standardized. I may need some dependencies, but I know how the build will work (cargo build -> if at all, all build instructions are in build.rs). I compile all rust-based open projects myself, and I have yet to stumble over a non-binding-specific package that won't compile.

Re:Bayard: a full-text search and indexing server written in... by mmoez on Friday November 01, 2019 @09:00AM (#21418220)
Fast rewind/forward n years, and you could replace "Rust" in your post with the name of the language /du jour/.

My original comment was because as an old guy who saw hype around so many languages come and go, I am getting tired of those projects who try to sell themselves only because they are written in Rust.

Re:Bayard: a full-text search and indexing server written in... by smolder on Friday November 01, 2019 @11:25AM (#21419793)
I've seen many languages with mix and match syntax differences and feature sets that didn't bring anything significant to the table. Rust is not that. It has memory safety while having memory efficiency, high performance, good package management, easy interface with C FFI, and excellent support for parallelism. The list of things it gets "right" from my point of view dwarfs other languages-du-jour.

The biggest downside IMO is you have to get people past some conceptual hurdles before they can be productive with it. (e.g. the borrow checker) Despite how often you see it come up on HN, it doesn't have a powerful marketing force behind it. It also doesn't fit the trend of turning developers into commodities by being as easy as possible.

Re:Bayard: a full-text search and indexing server written in... by whatshisface on Friday November 01, 2019 @09:58AM (#21418835)
The excitement around Java existed for two reasons: many people were new to the ideas in Java, and many people were learning it for the first time. Now, every programmer knows about Java's ideas (with the possible exception of interfaces which aren't in Python) and the number of people learning Java is capped at the number of kids being born. If Rust is successful then eventually every programmer who wants to learn it will already know it, and every programmer will know how to use a borrow checker. The nobody will post "made in rust" stuff on HN, but that will be an indication of Rust's victory.
Re:Bayard: a full-text search and indexing server written in... by DennisP on Friday November 01, 2019 @10:50AM (#21419420)
And those projects and posts will also be interesting, for people building their own projects with similar needs in that language du jour.

If you're just an end user, or the project isn't open source, then sure, language might not matter so much.

Re:Bayard: a full-text search and indexing server written in... by snagglegaggle on Friday November 01, 2019 @09:40AM (#21418631)
Rust is probably here to stay seeing as it was picked up by Firefox. I still think it could have been done better, but perfect is the enemy of good enough.
Re:Bayard: a full-text search and indexing server written in... by zozbot234 on Friday November 01, 2019 @10:00AM (#21418861)
Rust wasn't just "picked up" by Firefox - it was developed by Mozilla for the very purpose of using it in the "next generation" of Firefox technologies.

(The original Rust project as designed by Graydon Hoare was even quite different from the Rust of today, e.g. the C/C++-like focus, with little ot no runtime, is something that only came about around the Rust 1.0 release.)

Re:Bayard: a full-text search and indexing server written in... by vertex-four on Friday November 01, 2019 @11:48AM (#21420054)
Note that Rust intentionally lacks some features that would be useful for Firefox development (e.g. developing for the DOM involves object inheritance which isn’t present in Rust), so it’s not like it’s designed to solve exactly their problems and nobody else’s.
Re:Bayard: a full-text search and indexing server written in... by heavenlyblue on Friday November 01, 2019 @12:21PM (#21420517)
Rust has inheritance and polymorphism.
Re:Bayard: a full-text search and indexing server written in... by vertex-four on Friday November 01, 2019 @12:25PM (#21420586)
Rust has trait inheritance, but not object inheritance. Servo uses code generation and macros to get around this. (I’m literally writing an operating system in Rust, I know what I’m talking about.)
Re:Bayard: a full-text search and indexing server written in... by heavenlyblue on Friday November 01, 2019 @04:41PM (#21423477)
Could you elaborate on how trait inheritance is different from object inheritance?
Re:Bayard: a full-text search and indexing server written in... by zozbot234 on Friday November 01, 2019 @09:01PM (#21425197)
"Trait" inheritance is just interface inheritance, which is indistinguishable from composition+delegation. It doesn't have the pitfalls of actual implementation inheritance, which essentially involves an extra "trick" of dispatching on the actual type of your object even when calling base-class methods. It's not that Rust cannot do this - heck, people do it all the time in C. But it has to be done by writing things out explicitly, it's not automatic in any sense. And for good reason - letting base-class code access methods that have been redefined in a derived class can create all sorts of pitfalls when you're not very careful about what that implies.
Re:Bayard: a full-text search and indexing server written in... by mmoez on Friday November 01, 2019 @09:53AM (#21418764)
So was said about Java 20 years ago... Yet no one dares today post a "X in Java" anymore on HN.
Re:Bayard: a full-text search and indexing server written in... by smolder on Friday November 01, 2019 @11:30AM (#21419846)
And was probably said about Fortran and C. Our tools are getting better. I can only hope Rust becomes so widely used that I can recommend big companies use it since they'll have a trillion developer hiring pool.
Re:Bayard: a full-text search and indexing server written in... by staticassertion on Friday November 01, 2019 @12:52PM (#21420946)
"In Rust" signals something very important to me, especially with the context of "full text search".

ES is the current free text search engine out there, and it's famously painful to manage. Resource consumption and GC pain can be really significant.

I see 'rust' and I know immediately that at least some pains I've experienced will be eliminated.

Re:Bayard: a full-text search and indexing server written in... by giancarlostoro on Friday November 01, 2019 @08:47AM (#21418129)
I like knowing what language something is coded in. It makes me more likely to look into the project. If it's written in something I'm not interested in I may click through, but not be as thorough, and some languages I save the link for later because I have no interest in them professionally or on my time off. I like looking at all projects eventually because some people come up with amazing pieces of software in all types of languages, but others might not care to look at a Ruby, PHP, NodeJS, Python, C, C++, Rust etc project.
Re:Bayard: a full-text search and indexing server written in... by mmoez on Friday November 01, 2019 @08:57AM (#21418182)
So per your rationale, why not listing in the title other pertinent information about the project?

I am saying that because the programming language is not what defines a project. It could be a pile of junk even if it written in the greatest language ever made.

Re:Bayard: a full-text search and indexing server written in... by giancarlostoro on Friday November 01, 2019 @09:33AM (#21418557)
Sometimes people do, they say "Django" instead of "in Python using Django" which I think is fine. People who know Python will take the hint.
Re:Bayard: a full-text search and indexing server written in... by rapsey on Friday November 01, 2019 @08:59AM (#21418209)
It can be a pile of junk because of the language it is written in.
Re:Bayard: a full-text search and indexing server written in... by mmoez on Friday November 01, 2019 @09:03AM (#21418243)
> It can be a pile of junk because of the language it is written in.

So many wonderful things were written in assembly or PHP (assuming you rate PHP and assembly on the other end of the spectrum of awesomeness.)

Re:Bayard: a full-text search and indexing server written in... by rapsey on Friday November 01, 2019 @09:13AM (#21418335)
The ratio of garbage to awesome is relevant not individual examples
Re:Bayard: a full-text search and indexing server written in... by Hendrikto on Friday November 01, 2019 @08:58AM (#21418201)
I see this just as often for Python, C, JavaScript, etc.

The patters is more like "X written in Y", which is totally fine imo.

Re:Bayard: a full-text search and indexing server written in... by acdha on Friday November 01, 2019 @10:48AM (#21419385)
Rust is an interesting language both for its technical characteristics, which is a direct appeal as other commenters have noted, but it can also be worth noting because Rust interoperates almost as well as C. If I announce a cool Python module, someone who primarily uses Ruby is probably going to ignore it because the level of effort to use it would be more than it's worth. If I announce a cool Rust module, they might think “you know, it's pretty easy to build a wrapper…”.
Re:Bayard: a full-text search and indexing server written in... by gpm on Friday November 01, 2019 @09:52AM (#21418750)
What codetrotter and ccccc0 said, also Rust as a language and a community has a strong focus on correctness, which makes me more interested in actually using the project.

In general I think the title of a project on a news aggregator should basically be a 80 character sales pitch, " in rust" is 8 characters that signal a lot more than most 8 characters could (to me).

Re:Bayard: a full-text search and indexing server written in... by ccccc0 on Friday November 01, 2019 @09:14AM (#21418356)
Rust is young enough that you can read this as an ad for the language, not the project. "Rust is a language in which people write full-text search and indexing"
Re:Bayard: a full-text search and indexing server written in... by opencl on Friday November 01, 2019 @09:12AM (#21418320)
I think it's relevant for open source projects because people might want to contribute to them or just read through the code to see how things work. And of course people will be more interested in doing those things with languages they have experience using.

The same developer also happens to have written a similar server in Python a while back: https://github.com/mosuka/cockatrice

Re:Bayard: a full-text search and indexing server written in... by hobofan on Friday November 01, 2019 @10:11AM (#21419027)
Tell the mods that. I've seen mupltiple titles where they edited the original title to include "in X".
Re:Bayard: a full-text search and indexing server written in... by bishala on Friday November 01, 2019 @10:45AM (#21419356)
was about to comment the same before seeing your comment.
Re:Bayard: a full-text search and indexing server written in... by jedisct1 on Friday November 01, 2019 @10:11AM (#21419019)
This.