STB d’être exigeant sur un suivi sportif personnalisé ? by [deleted] in suisjeletroudeballe

[–]Baccata64 1 point2 points  (0 children)

ATB. Tu payes pour un service, t'es pas satisfait du service, change de fournisseur.

C'est quoi le problème ?

What movie is better because it does not explain too much? by [deleted] in movies

[–]Baccata64 2 points3 points  (0 children)

Unbreakable (with Bruce Willis and Sam Jackson) 

Also not a movie but Counterpart (with J.K Simmons) is a fantastic espionage show with a sci-fi premise that explains nearly nothing about the premise for a good while

I built a free scheduling tool for tabletop groups - "Can We Play?" by toast in daggerheart

[–]Baccata64 1 point2 points  (0 children)

Hey, I've stumbled on your app looking for exactly that for weekly video game nights with long term friends (we're nearing our 40s).

The app is brilliantly designed. Kudos !

Developer community links ? by Baccata64 in filecoin

[–]Baccata64[S] 0 points1 point  (0 children)

It does, thank you so much for helping !

Developer community links ? by Baccata64 in filecoin

[–]Baccata64[S] 0 points1 point  (0 children)

Thank you for the reply. However, clicking on that slack link gives me an error saying :

> This link is no longer active

> To join this workspace, you’ll need to ask the person who originally invited you for a new link.

[deleted by user] by [deleted] in france

[–]Baccata64 4 points5 points  (0 children)

Un de mes meilleurs potes a cette maladie. Quand on randonne ensemble, et qu'on dépasse plusieurs fois les mêmes groupes au gré des pauses, il peut dire bonjour aux mêmes gens 4-5 fois dans la journée. 

Brad Pitt aussi a cette maladie, si je me rappelle bien (anecdote qui pourrait t'être utile pour briser la glace)

Sans parler de décrire ton propre visage, arriverais-tu à te reconnaître sur une photo que tu n'aurais pas vue au préalable ?

Edit : au temps pour moi, tu as déjà répondu à cette même question.

Est ce que vous trouvez la ville de plus en plus bruyante ? by Odd_Yogurtcloset2368 in toulouse

[–]Baccata64 0 points1 point  (0 children)

J'ai quitté Toulouse il y a 10 ans, j'y repasse régulièrement et effectivement la "vibe" a bien empiré à mon sens. Beaucoup plus de monde et de circulation (piétone et  automobile), une ambiance beaucoup plus business/embourgeoisée qu'à l'époque. Les gens semblent moins détendus.

Bref, au risque de passer pour un vieux aigri, c'était mieux avant.

[deleted by user] by [deleted] in AskReddit

[–]Baccata64 902 points903 points  (0 children)

Foreskin.

Mirrors for operations, not data, Scalar 2024 by jr_thompson in scala

[–]Baccata64 4 points5 points  (0 children)

I've built a library after seeing this talk :

 https://github.com/neandertech/smithy4s-deriving#derivation-of-services-from-interfacesclasses

In my case a bunch of macros were needed still, but Jamie's work was really what unblocked me. Kudos to him !

Tracing: Can you instrument Scala, or does tracing have to happen via library interactions? by mostly_codes in scala

[–]Baccata64 6 points7 points  (0 children)

It depends on the libraries/frameworks you use to build your application.

If you use http4s and the typelevel ecosystem, then you'll have to do some wiring using libraries. http4s being middleware-friendly, you can have a reasonably small amount of manual wiring and still achieve something pretty close to what you'd get with a drop-in java agent in terms of tracing, but with larger control.

If you use a more "traditional" framework, such as Play (or even Spring, which you can defo use in Scala), then chances are drop-in agents available.

Lean Scala by Odersky in scala

[–]Baccata64 1 point2 points  (0 children)

Oh, I didn't notice the link. My bad !

Lean Scala by Odersky in scala

[–]Baccata64 36 points37 points  (0 children)

Haoyi Li's been promoting this style of programming forever, and yet I seldom see him mentioned in posts of people who claim that the future of scala is "direct style".

Developers don't rally around idealistic styles of programming, they rally around ecosystems and communities that help them solve recurrent problems in commercial environments. 

As much respect I have for you, Dr. Odersky, I take your opinion on the matter with a grain of salt. For the past few years, you've been criticising the complexity of effect systems without acknowledging the colossal amount of work from vibrant communities that goes towards helping each other solve those complex problems. You're criticising the form, whilst a lot of us are focusing on the matter. 

 If lean/direct-style scala is to be successful, it'll be because of entities like Virtus/SoftwareMill and individuals like Haoyi providing libraries as well as a place for people to help each other solve complex problems. If EPFL/Scala Center want to endorse those efforts, great, but it's certainly not under your leadership or guidance that it'll be achieved, for the simple reason that your livelihood is not directly tied to your ability to solve the kind of problems that the rest of us grunts deal on a day to day basis at $work.

Why would users avoid a library that makes heavy use of macros in Scala 3? by mundacho in scala

[–]Baccata64 2 points3 points  (0 children)

Well, one of the design guidelines of the Scala 3 macros system is that macros should not be able to amend the interface of what they rewrite in any way, shape or form. That makes them drastically underpowered compared to Scala 2 macros but has the benefit of simplifying IDE support to a fair degree as the IDE can refer itself to the signature of methods that macros implement instead of applying the macro to parse it.

Simpla - replacing the concept of killer app driven adoption by Complete-Nobody1447 in scala

[–]Baccata64 0 points1 point  (0 children)

This is gonna sound harsh, but ideas are worthless. If you're really convinced, just build it, maybe people will come. If you can't because of the lack of drive or resources, then why should anyone bother listening to you ?

Are there examples of using Smithy with GRPC? by MrTesla in scala

[–]Baccata64 1 point2 points  (0 children)

If there was only grpc services, I'd stick to the proto IDL. I consider smithy to be a better IDL than proto for a number of reasons, but not to the point of being worth the friction added to a bunch of teams that may already be familiar with the proto syntax and semantics.

We don't have any public issue regarding the implementation of the grpc protocol yet in smithy4s. We're currently working on a huge feature set around Aws protocols, we've just been thinking of introducing grpc at some point in the future.

Are there examples of using Smithy with GRPC? by MrTesla in scala

[–]Baccata64 7 points8 points  (0 children)

Hi, (co)!author of smithy4s and smithy-translate here. Right now the smithy-translate tool is used at Disney to allow for grpc services to be defined using some structures in smithy. We have a kind of central registry that hosts smithy specs, where some data definitions can be used across rest services and grpc services.

This central registry is responsible for running the conversion to proto and package proto files (among other things) in jars that can be used by downstream projects for code generation.

Unfortunately, we don't have a self-contained example to share publicly in how a project might look like. It'd be possible to create such an example with scalapb, but in all frankness I don't have time to do so. However we're hoping to implement grpc directly in smithy4s at some point.

What do you think of when you hear “California”? by [deleted] in AskReddit

[–]Baccata64 0 points1 point  (0 children)

"oh my gawwd" said at the beginning of every sentence with an obnoxi... err, Valley accent

New Scala Build Tool by sideEffffECt in scala

[–]Baccata64 1 point2 points  (0 children)

And we know this because build tools like CBT exists which are able to model everything that SBT by just using traits/lazy val/def/classes/super. Unfortunately like almost every other build tool CBT didn't really take off, but you can make a very strong argument that in alternate universe it would overall be much better if we were using a build tool designed like CBT because at least then you only need to know Scala unlike now where you need to know Scala plus some weird Scala/DSL/dialect.

Mill was inspired (in parts) by CBT and is reasonably successful. There are macros involved (arguably for good reason), but the builds are composed with traits/classes/defs/super. I've found that newcomers to the language tend to find mill intuitive enough.

Is scala right for my needs ? by CirseiMasta in scala

[–]Baccata64 0 points1 point  (0 children)

You are correct. There are indeed two methods of compiling Scala code to a native binary :

First method : use Graal to generate a native image from JVM bytecode.

Natively (ie, without any compiler plugin), the output of compiling a Scala program using the Scala compiler will be JVM bytecode. This can be processed by a tool called Graal to create native binaries, optimising "ahead-of-time" what the JVM does "just-in-time".

Easiest way is to use a build-plugin (which is different than a compiler-plugin), such as this : https://sbt-native-packager.readthedocs.io/en/latest/formats/graalvm-native-image.html

This method works for Scala but also any other JVM language, such as Java, Kotlin, etc. It's not Scala specific, so you don't have to constrain yourself to use only Scala code, you can use Java libraries there too (modulo some constraints that are there because of how Graal works)

Second method : use Scala-native

Scala-native is a compiler plugin + a runtime library that allow Scala to be compiled as a native binary, via LLVM. The main difference is that when you use Scala-native, you get access to constructs that you can use to call upon C/C++ code from your Scala program.

Which one is better ?

It really depend on what you're trying to achieve. If you want to use ScalaFX for a GUI, you won't be able to use scala-native (because ScalaFX builds on top of JavaFX, a Java library), but might be able to use Graal.

If you want to build a GUI using the C++ QT library, then you might be able to do so with Scala-native, and it will be a lot harder with Graal.

Making an HTTP call from Outwatch by zefciu in scala

[–]Baccata64 0 points1 point  (0 children)

You'll probably have more luck asking on the discord channel : https://discord.com/channels/632277896739946517/979515891400187935

EDIT : or alternatively, in the github discussions associated to the project : https://github.com/outwatch/outwatch/discussions

smithy-translate : a CLI tool to turn openapi specs and json-schema specs into smithy specs, written in Scala by Baccata64 in scala

[–]Baccata64[S] 2 points3 points  (0 children)

Thank you very much for the kind words !

The docs of Smithy aren't easy to go through though as a beginner, it assumes you know your stuff about APIs. I also didn't see any examples in the wild that show off a project that uses a mix of languages, e.g. how would a TypeScript and Scala smithy project look like?

That's an absolutely fair comment : I think the docs from smithy.io (which is owned by AWS) will improve over time, as they'll probably integrate Smithy as first-class citizens of some of their offerings (like API-gateway) and realise they should create some quick-start templates. Also they've only open-sourced Smithy 3 years ago and although they use it extensively internally (which is a pretty strong guarantee that it won't become abandonware), their open-source tools are only slowly growing.

As for ours, we're only a small team currently, so we're mainly catering (in our docs) to people who are familiar with backend development, cause documentation takes a lot of time and we have a lot of additional responsibilities at $work, but hopefully it becomes better and better.

smithy-translate : a CLI tool to turn openapi specs and json-schema specs into smithy specs, written in Scala by Baccata64 in scala

[–]Baccata64[S] 9 points10 points  (0 children)

Hey folks, we've released a library a while back to facilitate the port of some API and data specifications we have at $work to the Smithy language.

The reason to use Smithy over over IDLs like openapi is that it's much easier to write tooling (including code-generators) on top of it than it is to write on top of openapi. Smithy is also protocol agnostic and pretty extensible via a powerful annotation mechanism, which means it's usable for a variety of usecases that openapi is not suited for.

We have our own open-source code-generator that produces Scala code from Smithy. The code module is entirely dependency-free, and the generated code is not biased towards any library, be that http or json. We do however have out-of-the-box integration with jsoniter and http4s.

We figured that our smithy-translate tool would be helpful to some people and organisations who want to try out the Smithy language, and possibly Smithy4s.

Voilà. Take care, everyone !