News for hackers. Stuff that matters.
Re:Show HN: utt – Universal Text Transformer by kbd on Monday March 07, 2022 @04:11PM (#30593377)
FWIW nu shell can be used for a lot of the same use-cases:

    $ echo "[1, 2, 3]" | nu -c 'cat | from json | to yaml'
    ---
    - 1
    - 2
    - 3
    
    $ echo '{"key": [1, 2, 3]}' | nu -c 'cat | from json | to yaml'
    ---
    key:
      - 1
      - 2
      - 3
Re:Show HN: utt – Universal Text Transformer by notamy on Monday March 07, 2022 @04:15PM (#30593419)
Cool! Glad I'm not the only one who saw a need for this stuff :D
Re:Show HN: utt – Universal Text Transformer by mdp2021 on Tuesday March 08, 2022 @04:05AM (#30598005)
Daniel, we would like to be able to award superpoints.
Re:Show HN: utt – Universal Text Transformer by sanity31415 on Monday March 07, 2022 @05:55PM (#30594461)
Good idea, but this is a painful limitation:

> For example, utt does not process data in a streaming manner, but rather loads the entire dataset into memory before processing

Re:Show HN: utt – Universal Text Transformer by notamy on Monday March 07, 2022 @06:08PM (#30594560)
It is! I’m not very happy with it and would love to change it — I’m just fortunate to have a primary workstation with an absurd amount of RAM.
Re:Show HN: utt – Universal Text Transformer by gitgud on Monday March 07, 2022 @09:21PM (#30595753)
Interesting project and seems very useful. Reminds me of Pandoc, maybe you could make a diagram similar to how [1] Pandoc shows conversions possibilities.

[1] https://pandoc.org/diagram.svgz?v=20220210130556

Re:Show HN: utt – Universal Text Transformer by qualudeheart on Tuesday March 08, 2022 @01:28AM (#30597038)
Eagerly awaiting the arrival of the “Big Universal Text Transformer”.
Re:Show HN: utt – Universal Text Transformer by quickthrower2 on Tuesday March 08, 2022 @05:20AM (#30598389)
As a backend dev, I approve
Re:Show HN: utt – Universal Text Transformer by tomcam on Wednesday March 09, 2022 @04:04AM (#30612394)
I like those. I cannot lie.
Re:Show HN: utt – Universal Text Transformer by parentheses on Tuesday March 08, 2022 @12:59PM (#30603220)
The spirit of the tool is great!

Not sure how long it takes today to start up and load classes on a JVM. The idea of using a java program regularly in the shell immediately makes me worry about slowness.

Also, the eventual goal of supporting more formats means slower startup time as the feature set grows.

Re:Show HN: utt – Universal Text Transformer by TheMagicHorsey on Monday March 07, 2022 @05:02PM (#30593903)
Reminds me of the Haskell project Pandoc ... which is also aimed at this use case.
Re:Show HN: utt – Universal Text Transformer by tnzk on Monday March 07, 2022 @08:22PM (#30595429)
To me more like generalized jq. Didn't know pandoc supported these formats.
Re:Show HN: utt – Universal Text Transformer by slaymaker1907 on Monday March 07, 2022 @07:05PM (#30594963)
I would recommend highlighting what are the supported input and output formats or at least highlights of what is supported. Another key question I have is why use this tool instead of jq?
Re:Show HN: utt – Universal Text Transformer by lgessler on Monday March 07, 2022 @03:33PM (#30592961)
Cool project! Something to consider: "Transformer"[1] is already used to refer to a popular element of state of the art deep neural networks, especially ones that are used on natural language, i.e. text. That might make this name a little confusing for people who have a foot in that world, especially since "Universal" and "Text" are also words thrown around in similar contexts.

[1]: https://en.wikipedia.org/wiki/Transformer_(machine_learning_...

Re:Show HN: utt – Universal Text Transformer by laumars on Monday March 07, 2022 @04:40PM (#30593657)
Transform is also used in data mangling to mean exactly what this tool does.

Transformation is also used in enterprise IT to mean modernising.

Transformer is also a mathematics term, a kids toy and many other things.

In short, ML doesn’t have a monopoly on it.

Re:Show HN: utt – Universal Text Transformer by blueblob on Monday March 07, 2022 @08:37PM (#30595508)
Well, the really ironic part of it is that the machine learning models using transformers were literally conceived for converting between languages. So this would be quite the valid use case. Unfortunately, it makes the name more confusing.
Re:Show HN: utt – Universal Text Transformer by amelius on Monday March 07, 2022 @05:36PM (#30594281)
Deep learning also messed up the definition of tensor, and so they are the ones who should be careful with picking names.

(That you can represent a tensor by a multidimensional array does not mean that a tensor is a multidimensional array).

https://en.wikipedia.org/wiki/Tensor

Re:Show HN: utt – Universal Text Transformer by xiphias2 on Monday March 07, 2022 @06:21PM (#30594652)
It doesn’t look that messed up to me. The vector word is used both as an element of a vector space and the coordinates. Tensor was so far mostly used only for the multilinear relationship, but its numerical description is a natural extension of the vector word.
Re:Show HN: utt – Universal Text Transformer by blueblob on Monday March 07, 2022 @08:41PM (#30595534)
Making one oversimplification means you need to be very particular? The point stands that some people that look at this tool will likely expect something very different than what it is. If this tool gets enough prominence, it won't be a problem. If it doesn't, it will be a misleadingly named software stack. Worse things have definitely happened.
Re:Show HN: utt – Universal Text Transformer by BaseballPhysics on Monday March 07, 2022 @03:58PM (#30593243)
The term "transformer" is used throughout mathematics and computing. Machine learning hardly has the monopoly on it. Or should, for example, Haskell rename their monad transformers library?
Re:Show HN: utt – Universal Text Transformer by notamy on Monday March 07, 2022 @03:37PM (#30593007)
Good to know, thanks! I was originally considering a name more like "universal text finagler" but then I realised that there's already a well-known "UTF" (:
Re:Show HN: utt – Universal Text Transformer by throwawybllion on Monday March 07, 2022 @03:42PM (#30593079)
uft: Universal Finagler of Text, Universal Format Translator? unt: unt is not a transformer?
Re:Show HN: utt – Universal Text Transformer by chungy on Monday March 07, 2022 @05:49PM (#30594405)
UTF itself is already short for "Unicode Transformation Format" and certainly predates any usage of the middle word by ML projects.
Re:Show HN: utt – Universal Text Transformer by metadat on Monday March 07, 2022 @08:12PM (#30595374)
Almost every Show HN includes detractors complaining about namespace collisions or like parent, general name critiques. This is fine, I just wish it'd be towards the tail end of the thread since as a rule of thumb, such discussions are intellectually low-value.
Re:Show HN: utt – Universal Text Transformer by politician on Tuesday March 08, 2022 @02:09AM (#30597230)
It would be nice, albeit a bit tricky to implement, for downvotes to be optionally augmented with a choice from capped list of reasons. Among them, "it would be better if..." and "i have a different opinion", in addition to "this is badthink" and "this is offensive to me".
Re:Show HN: utt – Universal Text Transformer by fkfkno on Tuesday March 08, 2022 @08:41AM (#30599730)
To take this idea one step further, each of those options could be attributed to a colour value. Then, instead of "greying out" the resulting comment would be an amalgam of the received votes, giving an indication of exactly what it was in particular that caused the comment to be downvoted. The stronger hues would then indicate a degree of consensus among the audience.

Of course, the same should be applied the other way, so when upvoting, one could also choose to assign a value for "this is good but could be improved", "I have a different opinion, but the above comment is worthy of consideration", "this is simply a correct take" and "this comment is pleasing to me".

And for the sake of readability, maybe instead of the whole comment being coloured, a marker could be applied before or after unadulterated text so that it remained accessible during the course of this process!

The challenge would be in deciding which colors represent what sentiment, as these days even our visible light spectrum seems to be corrupted by political/moral/tribal prejudgements. So perhaps it would do more harm than good. It may make for an interesting experiment, all the same.

Re:Show HN: utt – Universal Text Transformer by ketralnis on Monday March 07, 2022 @03:56PM (#30593221)
It's also a concept in haskell but I don't think anybody would claim a monopoly on the idea of transforming things
Re:Show HN: utt – Universal Text Transformer by rurban on Thursday March 10, 2022 @04:34AM (#30625018)
coreutils did initially. but there's also grep, awk and perl.

this could be called tiny, huge, text transformer: thtt

tiny because functionality, and huge for java

Re:Show HN: utt – Universal Text Transformer by tomcam on Wednesday March 09, 2022 @04:06AM (#30612410)
I’m thinking it should be called Cockroach something something
Re:Show HN: utt – Universal Text Transformer by ducktective on Tuesday March 08, 2022 @05:28AM (#30598431)
Thanks! Also see rq: https://github.com/dflemstr/rq
Re:Show HN: utt – Universal Text Transformer by InfiniteRand on Wednesday March 09, 2022 @09:53AM (#30615023)
What license is this code under? I'm just curious if I might be able to use it as part of a work project in the future.
Re:Show HN: utt – Universal Text Transformer by notamy on Thursday March 10, 2022 @12:06PM (#30629279)
I added a licence -- MIT!
Re:Show HN: utt – Universal Text Transformer by jwilk on Monday March 07, 2022 @03:44PM (#30593106)
What's the purpose of the help message screenshot? Couldn't you use a code block, like in all the other examples?
Re:Show HN: utt – Universal Text Transformer by notamy on Monday March 07, 2022 @03:47PM (#30593128)
I could and probably should, it was just really lazy at the time it was written >~<
Re:Show HN: utt – Universal Text Transformer by chungy on Monday March 07, 2022 @05:53PM (#30594438)
Isn't it more effort to do the screenshot than a simple copy+paste?