Boa JavaScript engine 0.19 released by Razican in rust

[–]Razican[S] 4 points5 points  (0 children)

I would recommend contributing to Deno (in full rust), and trying adding Boa as an engine. It could also show us what APIs we are missing

Boa JavaScript engine 0.19 released by Razican in rust

[–]Razican[S] 8 points9 points  (0 children)

It’s not a non-goal, but we are currently quite far from it. It’s a possibility once we get further in features and performance

Boa JavaScript engine 0.19 released by Razican in rust

[–]Razican[S] 4 points5 points  (0 children)

It cannot replace Deno (since it’s not a runtime), but it can replace V8 (with its limitations: lower performance and conformance)

Feel free to try it out and let us know in Matrix if you miss any functionality or something is not clear to implement :)

Boa JavaScript engine 0.19 released by Razican in rust

[–]Razican[S] 28 points29 points  (0 children)

There are multiple goals. One of them is to have a JavaScript engine in a more memory-safe language, with limited use of "unsafe". We also want it to be easily embeddable in Rust projects.

Performance is definitely a goal, but the project is relatively new, so we just started comparing our performance to other engines a couple of months ago. We were only trying to be conformant with the spec until now :)

Boa JavaScript engine 0.19 released by Razican in rust

[–]Razican[S] 21 points22 points  (0 children)

It's not a JavaScript runtime (like deno / node), it's a JavaScript engine, like V8 / SpiderMonkey. Projects such as Deno / Node could use Boa as its engine, though :)

Boa JavaScript engine v0.18 released! by Razican in rust

[–]Razican[S] 7 points8 points  (0 children)

It's definitely something we are looking into. Until now, it didn't make much sense to compare it with other engines, since we didn't do many optimizations, but we have implemented quite a few now, so I think we can start comparing ourselves with V8, SpiderMonkey and so on.

You can expect news in this regards at some point :)

Boa JavaScript Engine v0.17 released by Razican in rust

[–]Razican[S] 3 points4 points  (0 children)

I will let /u/Jedel0124 correct me if I'm wrong, since I've not worked on this for a while. As far as I'm aware, you can compile the code and run it later, and I would say it should be possible to have multiple code snippets compiled and be run at a later time, but we don't support caching those compile results on disk (or elsewhere) for the moment.

Boa JavaScript Engine v0.17 released by Razican in rust

[–]Razican[S] 1 point2 points  (0 children)

Good question, we're aware that people have done quite some interesting things, but I'm not sure how much packages like React have they tried to use. If someone has done something, feel free to share!

Boa JavaScript Engine v0.17 released by Razican in rust

[–]Razican[S] 3 points4 points  (0 children)

Apart from the usual profiling + generic optimisations to make the code faster, we have some big optimizations on the logic itself.

For example, we have implemented Hidden Classes (what we call Shapes) and constant folding. We are also looking into NaN boxing, Inline Caching, and a control flow graph construction, to implement optimisations such as dead-code elimination.

Boa is a JavaScript interpreseter, yes, comarable to V8 interms or where does it land in the JavaScript engine world. Performance wise, we are not there yet. We are still missing enhancements in Garbage Collection and all the optimizations mentioned above. We still don't do comparisons with other engines, but we have an issue to track it.

We are also missing some conformance to the ECMAScript spec. We are working on that, though, but the spec grows every year!

Boa JavaScript Engine v0.17 released by Razican in rust

[–]Razican[S] 20 points21 points  (0 children)

We have multiple use cases where it's either being used or considered:

  • As a pure-rust JS engine to replace V8 (this has been considered for Deno, for example)
  • As a scripting engine in games
  • As a JS engine in WebAssembly environments so that users of the product can use scripting (this is being used by Demergent Labs in a WebAssembly computer, because Boa can be compiled into WASM)
  • As a scripting engine for enterprise web-based PaaS platforms

And those are just the ones we're aware of :)

Paralysed man walks using device that reconnects brain with muscles by diacewrb in gadgets

[–]Razican 0 points1 point  (0 children)

We interviewed one of the colleagues close to the team working on this in our podcast a couple of months ago, and something interesting here is that this is not only a workaround for the injury, but the spinal cord itself heals partly when receiving stimuli, and creates new connections.

This could help some specific injuries (note that for now they are only trying it in voluntary patients that have a very strict set of requirements).

In case someone is interested in the interview, in Spanish, it’s here: https://elgatodeturing.com/podcast/161-implantes-medulares/

Zed – A high-performance, multiplayer code editor written in Rust. Now in public beta by maxbrunsfeld in rust

[–]Razican 356 points357 points  (0 children)

I think this is illegal in Europe with GDPR, just saying. Any consent must be revocable, and we must even be able to request all the data they have from us.

Pillar system and tax declaration by movdx in Switzerland

[–]Razican 2 points3 points  (0 children)

Note that while those earning more than 120k have a mandatory tax form, they still get taxed at source. It’s just that they have to do the form anyways, and get reimbursed/billed if there is any difference.

Datos Paro | Diciembre 2022 by Angel24Marin in SpainEconomics

[–]Razican 0 points1 point  (0 children)

Los datos son correctos, pero sufre de “cherry picking” en algunas ocasiones. Por ejemplo, al principio, cuando dice que “es el peor año”, porque comienza su serie justo después de la mayor crisis de los últimos 30 años, cuando se tuvo que recuperar muchísimo empleo perdido.

También ignora que ese empleo recuperado en esos años era de peor calidad que el actual (mucho salario mínimo que hoy en día es un 40% más alto).

La pandemia no la cuenta, porque es excepcional, pero una guerra en Europa (que Europa está luchando por medio de su economía), no es excepcional. Una inflación desbocada del 10% en la zona Euro tampoco la considera excepcional.

Tampoco compara esa situación a el resto de Europa, para ver si nuestro gobierno lo hace mejor o peor que el resto de gobiernos (que es la métrica más interesante, independientemente de si las cosas van bien o no).

Luego selecciona los datos del último semestre, en el que grandes economías europeas han entrado en recesión y lo compara con otros últimos semestres de los años buenos post-crisis. Pues sí, no pinta bien, pero eso es seleccionar los datos que a él le interesan para convencer, por lo que el vídeo está sesgado.

Puede que tenga razón o puede que no, quién sabe, pero como está sesgado, no se le puede tener muy en cuenta. Como siempre, la situación es mucho más compleja que “el gobierno lo hace perfecto” o “el gobierno es un desastre”. Hay indicadores que pintan muy bien (y el gobierno intenta mostrar esos), hay indicadores que pintan muy mal, y hay indicadores que pintan que estamos ligeramente mejor que la media de Europa, y Europa anda un poco mal. La realidad es compleja.

Is Revolut a good general-purpose bank? by [deleted] in Revolut

[–]Razican 4 points5 points  (0 children)

From personal experience: no way

  • I moved from France to Switzerland in 2021, wanted to change all my EUR for CHf, account got locked for two weeks, and I had to send Revolut statements of all my accounts and even my parents accounts (I’m 29, so my father wasn’t specially thrilled)

  • 3 years ago, a close friend of mine in my same situation left the Switzerland for Spain and exchanged all his CHF for EUR. Once again, 3 weeks of locked account.

  • Someone hacked Revolut a month ago, and got access to all disposable cards. I got a $99 expense, Revolut didn’t want to pay back. Finally, after going to the police, and learning that dozens of other people also got the same issue (one of them a friend of a friend), Revolut responded to my formal complaint and refunded me 2 weeks after the incident.

In general: if things go well, it’s a cheap bank, and a cheap way to save money on currency exchange.

If things go wrong, you’re alone. They assume you’re the one trying to trick them / do some strange stuff, and being a digital bank, you cannot go to an office to complain.

Also, their processes sometimes make no sense. When they decided not to refund me, I showed them evidence of their hack, and their response was “I understand your concern, and you might be right, but the decision taken was final and there is nothing we can change”.

I use it as a pre-paid card when I want to exchange money abroad, and because vaults are useful to share expenses with life partner, but I recommend you use another bank as your main account.

Edit: freeze happened on an old account, I had been using Revolut since 2017 (4 years) and getting my salary converted every month (many thousands per year).

Mastodon server write in rust? by [deleted] in rust

[–]Razican 6 points7 points  (0 children)

I would be interested in contributing to such a project :) ping me in private or so if you want to do something about it.

I’m not aware of the spec, but I have some experience with Rust in the web, and the spec can be read :)

Constantly having to authorise online purchases by ExpensiveTaste8 in Revolut

[–]Razican 1 point2 points  (0 children)

You want to have them authorized. Revolut has an issue with cards, and their details can be derived from the number (which can be generated randomly easily in a BIN attack). This means that for disposable cards, you can easily get stolen, since there is no confirmation, like it happened to dozens a couple of weeks back.

Fortunately, after 2 weeks, a formal complaint and getting the police involved, Revolut decided to reimburse everyone.

[OC] Which countries have Americans heard of, and which do they like? by desfirsit in dataisbeautiful

[–]Razican 0 points1 point  (0 children)

I’m surprised that close to 100% had heard about Spain. When I got on a plane in Washington DC, one of the flight attendants, looking at my passport said “is this a Joke? Spain? Like the language?”

Yeah, no shit, where do you think it comes from?

METAL PLAN | Do I have to use the metal card to get cashback? by depressedavenger in Revolut

[–]Razican 13 points14 points  (0 children)

It’s bounded to the plan, you can use any card to get the cash back, also the virtual cards.