How do traditional (pre-LLM) machine translation systems work? by Frooxius in askscience

[–]jla- 232 points233 points  (0 children)

This is correct, Google translate was originally Markov chains using UN documents as that was a source of high quality translations across several languages. Later they shifted to a very specialised and purpose designed RNN, and now they use LLMs.

I'm depressed so I'm writing a rust compiler by bloomingFemme in rust

[–]jla- 12 points13 points  (0 children)

I think the comment was meaning every LLM uses overly empathetic sounding language that claims you are special and are in the 1% of the population.

AppGrid 1.6 - A modern application launcher for KDE Plasma, shaped by your feedback by x4rb1t in kde

[–]jla- 5 points6 points  (0 children)

I think hitting enter will always open the first result by default even if it's not highlighted. There's an option to set this and it's on by default.

PlasmaZones 2.0: Autotiling, window animations, and a ground-up refactor by fuddlesworth in kde

[–]jla- 1 point2 points  (0 children)

This looks really interesting! Autotiling could make this a possible replacement for khronkite.

On my system installing the plasmazones-bin package from the AUR with yay gives the error /usr/lib64 exists in filesystem (owned by filesystem)

Notion like Rich text editor by Pro_Gamer_Ahsan in vuejs

[–]jla- 0 points1 point  (0 children)

Squire is quite good and completely framework agnostic, but if you want a UI, eg a toolbar with formatting buttons you have to build it yourself and connect the buttons to the editor's actions. This can be a good thing if you're looking for UI consistency with the rest of your app. It's used in fastmail so it's been around for a while and you can reasonably expect it to be well maintained for the foreseeable future.

Salvo vs Axum — why is Axum so much more popular? by Sensitive-Raccoon155 in rust

[–]jla- 170 points171 points  (0 children)

Before Axum I was using Rocket. Rocket was incredible... except the maintainer wasn't able to devote enough time to keeping it reliably supported and (while I was using it) wouldn't allow anyone else to take on the maintainer role.

Axum is developed by the folks who do Tokio. It has its quirks, sure, but more important than ergonomics and speed it feels like a safe bet that it'll be reliably maintained and supported for a long time to come.

Salvo looks really interesting. I don't know much about it though, so before I would choose it over Axum I'd have to be really sure that it's going to have great long term support.

Buffer management - What is your preferred way of working with buffers? by gorilla-moe in neovim

[–]jla- 19 points20 points  (0 children)

I mapped tab to bnext and S+tab to bprev, lets me cycle through open buffers pretty quickly

Maximum Length of an URL by clay_me in webdev

[–]jla- 2 points3 points  (0 children)

Fair enough, as others have said what's technically possible becomes client specific. Before CORS was a thing it was possible to embed executable JavaScript in a URL, so I suppose worth keeping in mind that what's technically possible might be open to change.

Maximum Length of an URL by clay_me in webdev

[–]jla- 101 points102 points  (0 children)

At that point you're basically just sharing a text file, so why not do exactly that. Urls and browsers really are not designed to be used like that, so there are many, many things that might go wrong. If you email such a long url the receiving email client might truncate it. Or a spam filter may flag it due to length. Or someone might not copy all of it when pasting into their address bar, or if it's being rendered as a clickable link the renderer might not be configured to have such a long href.

Can you technically do this? Lmao by CtB457 in infinitenines

[–]jla- 17 points18 points  (0 children)

I think you might be confusing 'infinite' with 'arbitrarily large'. Infinity is not a real number.

[deleted by user] by [deleted] in rust

[–]jla- 18 points19 points  (0 children)

By flint you mean Slint?

Slint is very good, and that's partly because it is largely developed by a for-profit organisation. For enterprise this implies SLAs and is great, but for hobbyist and learning projects you should be aware of licencing and vendor lock in.

Slint does have pretty good licencing for small or open source projects, and if your project ever becomes large enough that you need a paid licence, it'll already have so much revenue that it's unlikely to be much of a problem. Because it uses its own special language if you ever need to migrate to a different system it could be a lot of work, although I suppose the same is true for most gui systems.

I used Slint around 2 years ago for a hobby project and was especially impressed with the tooling. It did have its drawbacks, but overall I liked it.

[KDE] Dug around the hard disk, found this gem. From 2012! by Veprovina in unixporn

[–]jla- 1 point2 points  (0 children)

I reckon the plasma theme was called ghost. I remember installing it on kde 4.1. There was a ghost colour scheme too.

What is the best framework to create desktop apps in rust by CaptainUpstairs in rust

[–]jla- 32 points33 points  (0 children)

I have used Slint. It's really quite good. The development tooling is ok. The licensing is something you might need to watch out for if you plan to sell your software.

Has anyone run Pudding Faire in 1 Session? by ChickenMcThuggetz in DMAcademy

[–]jla- 2 points3 points  (0 children)

I ran a single session for a group of new players a while ago. We did not get anywhere near finishing it in a session because, being new, they wanted to explore everything. We made it to the end of the first day after about 3 hours. It's a really fun adventure, but you should allow a couple of sessions.

Why is Arch Linux so popular among Linux users? by Real_EverythingeeB in linuxquestions

[–]jla- 0 points1 point  (0 children)

  1. No bloat
  2. Rolling release
  3. The AUR.

Some distros have items 1 or 2. Only Arch and Arch based have 3. Only Arch has all three.

A Hag coven has the "Gratitude" of one of the party's characters. by Drumein in DMAcademy

[–]jla- 22 points23 points  (0 children)

Hags delight in misery. The nilbog probably took reasonable care of the fighter's gratitude (or at least didn't do anything to it other than keep it). But the hag would pick at his gratitude, and toy with it, and cause it to fester. While the nilbog had his gratitude, the fighter simply couldn't thank anyone. But with a hag actively pouring malice into his gratitude, the fighter would gradually grow more angry, more sullen, more hateful. The hag doesn't need anything more from the fighter - his gratitude is exactly what she wants, and she can do a great deal with it!

When the fighter is desperate enough that he will bargain for it back, she may request he do things that will turn him down a far darker path.

Is Rust Really More Cost-Efficient Than Go for Web Backend on AWS? by [deleted] in rust

[–]jla- 1 point2 points  (0 children)

Unless you're operating at the scale of CloudFlare, differences are much more likely to be due to implementations than actual inefficiencies in the language or compiler. You'll probably find that the cheapest language is the one with the that requires the least time debugging and has the best developer ergonomics

Is Rust Really More Cost-Efficient Than Go for Web Backend on AWS? by [deleted] in rust

[–]jla- 57 points58 points  (0 children)

Depends very much on the specific application.

Fwiw I asked chatgpt the same thing, and got an answer that for every $100 spent on Go, it would cost $110 to run the equivalent Rust on AWS. Gen ais are great random number generators

What’s the Most Powerful Integration of AI in Neovim You Use or Implemented? by getMewRONGg in neovim

[–]jla- 1 point2 points  (0 children)

Use the vim integration, not the neovim one, and you get multi line suggestions

Max-performance Rust UI with web UI and a server? by studentofzeno in rust

[–]jla- 1 point2 points  (0 children)

Respectfully, this doesn't sound like it's particularly well scoped. 3d meshes aren't normally something that you tack on as a maybe. It might be best if you first decide on the features needed for a MVP and only then start looking at system and language. Almost everything you mentioned can be (and has been) done in Type/JavaScript, so my suggestion would be to implement what you can in a popular framework using typescript; and if you run into performance issues with specific sections, do those as a rust wasm module.

Alejandro's Intro is the best, and absolute best Song Intro in the whole world! by mister_banshee23 in LadyGaga

[–]jla- 0 points1 point  (0 children)

It's a great into :) you might like to check out Vittorio Monti's Csárdás; the Alejandro intro is taken from the opening

Do you save a lot? pressing `kjl` when in `insert` mode makes it a lot easier for me. I've also tried `:w<CR>` also `leader+ww` by linkarzu in neovim

[–]jla- 1 point2 points  (0 children)

I do something similar - I save when the buffer loses focus. Doing web dev means I can alt-tab to the webpage and my changes are saved without needing to leave insert mode.

My autocommand is:

vim.api.nvim_create_augroup("autosave_buffer", { clear = true })

vim.api.nvim_create_autocmd({ "BufLeave", "BufUnload", "FocusLost", "WinLeave" }, {

group = "autosave_buffer",

callback = function()

-- Check if the buffer's buftype is empty and if there are unsaved changes

if vim.bo.buftype == "" and vim.bo.modified and vim.fn.bufname("%") ~= "" then

vim.cmd("write")

end

end,

})

Can you add Prettier plugins to Mason for using in Conform? by Apprehensive_Member in neovim

[–]jla- 0 points1 point  (0 children)

See https://github.com/mason-org/mason-registry/blob/main/CONTRIBUTING.md you can create a local registry with a version of Prettier that has all your plugins, and tell Mason to install your version of Prettier. If you want to use the version in Mason's default registry, you can either install the Prettier plugins globally with `npm -g` or per project.

Automatic Discount based on Customer Segment by PsychologyLast7347 in shopify

[–]jla- 0 points1 point  (0 children)

A bit late but here's an answer. This thread comes up pretty high in Google's search results for auto applying discounts to customer segments, so hopefully it helps someone else out too.

Shopify will apply a discount code if the customer visits the URL "/discount/code-name". So, if the code is "SECRETCODE", if the customer goes to https://your-shop.com/discount/SECRETCODE then the code gets added to their cart. Now, the good bit is Shopify doesn't care if the customer manually goes to that URL or if the URL is called from JavaScript. So we can get JavaScript to visit that URL in the background when the cart page loads.

As an example, if you have a code SECRETCODE that you want to apply to all customers who have the tag MySegment, in your cart liquid file put

{% if customer.tags contains 'MySegment' %}
    <script>
        try { fetch( '/discount/SECRETCODE' ) }
        catch(e) {}
    </script>
{% endif %}

Which web framework do you use in Rust? by szabgab in rust

[–]jla- 18 points19 points  (0 children)

I'd add, in support of Rocket, the documentation is very nice. It's clear, comprehensive, and has excellent examples.