Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 20:44
    bjansen edited #358
  • 20:44
    bjansen edited #358
  • 20:43
    bjansen opened #358
  • Jan 15 10:05
    gdotdesign synchronize #356
  • Jan 15 09:41
    gdotdesign synchronize #356
  • Jan 15 08:50
    hazon opened #357
  • Jan 10 12:39
    Namek edited #356
  • Jan 10 12:32
    Namek synchronize #356
  • Jan 10 12:30
    Namek synchronize #356
  • Jan 10 12:22
    Namek edited #356
  • Jan 10 12:21
    Namek synchronize #356
  • Jan 10 12:08
    Namek synchronize #356
  • Jan 10 11:58
    Namek synchronize #356
  • Jan 10 11:58
    Namek synchronize #356
  • Jan 10 11:55
    Namek edited #356
  • Jan 10 11:54
    Namek opened #356
  • Jan 07 08:42
    gdotdesign labeled #355
  • Jan 07 08:09
    Sam647254 edited #355
  • Jan 07 08:02
    Sam647254 opened #355
  • Jan 06 13:13
    Sija closed #354
Szikszai Gusztáv
@gdotdesign
@Zekromaster :arrow_up:
Kamil Dąbrowski
@Namek

@gdotdesign during source map implementation I have changed how indentation works in compilers (didn't touch formatters!). There is one I am not sure about though.

Have a look at this one: https://github.com/mint-lang/mint/blob/master/spec/compilers/directives/format

Line 19 (the "Bello" part) continues string without indentation. Does it have to be that way? Or is it okay to change the test?

image.png
Kamil Dąbrowski
@Namek
ooh, nevermind, I got it. It shouldn't have additional spaces.
Szikszai Gusztáv
@gdotdesign
:+1:
Elias Perez
@eliasjpr
Does mint integrates well with websockets?
There has been a tren to use server side components/html over websockets I was wondering if mint does something similar to Phoenix LiveView or Rails Hotwire
Kingsley Hendrickse
@kingsleyh
I have a fee mint apps that use websockets with no problems at all
few
Kamil Dąbrowski
@Namek
image.png
getting somewhere :D
1 reply
(first breakpoints with Mint code instead JavaScript)
ANTFOR7717
@ANTFOR7717
I'm really loving mint to far; coming from Vue; Does anyone have a tutorial with integrating Mint with Tailwind?
Kamil Dąbrowski
@Namek
@ANTFOR7717 I'm not familiar with Tailwind but if that's only about CSS then -> https://www.mint-lang.com/guide/recipes/using-third-party-css
Szikszai Gusztáv
@gdotdesign
@ANTFOR7717 there is a discussion about it https://github.com/mint-lang/mint/discussions/348
Sam Wang
@Sam647254

hi, I'm not sure if this is a known issue already (I couldn't find any open issues about it), but currently, trying to pipe to an anonymous function causes a syntax error in the JavaScript output; the following code

3
|> (n : Number) : Bool { true }

is compiled to

(o) => {
  return true
}(3)
4 replies
this looks straightforward to fix (by just wrapping the anonymous function in parentheses); I can look into it and submit a pull request
Kamil Dąbrowski
@Namek
image.png
These 2 wheres are sorted differently in output code. It results in a situation where breakpoints hits the latter line first and the second first.
image.png

in the debugger line 95 hits first and both max and cur are undefined. Later debugger hits line 92 and cur is already defined but max not yet.

So this works perfectly fine because debugger doesn't care about the order. But maybe we would like to remove the sorting for this purpose?

Szikszai Gusztáv
@gdotdesign
it's tricky because it orders by resolve order, for example max can use cur even if it's defined later
the same is true for the try sequence and parallel statements
Kamil Dąbrowski
@Namek
yeah but in this case it is not.
or is it?
max is resolved before cur
max.top - cur.top
Kamil Dąbrowski
@Namek
oh, that's how it works
ok, fine, I think I won't change it then
thank you
Szikszai Gusztáv
@gdotdesign
:+1:
Kamil Dąbrowski
@Namek
I've found a nice solution to this. I just mapped } where { line under function to a first executed either where statement (if any exists) or function expression. Clicking on the } where { line in the debugger automatically moves breakpoint to the first executed one:
image.png
Szikszai Gusztáv
@gdotdesign
great :+1: :tada:
Szikszai Gusztáv
@gdotdesign
Hi all, Mint 0.11.0 is released :leaves: :tada: :confetti_ball: :arrow_right: https://github.com/mint-lang/mint/releases/tag/0.11.0, blog post and such will come tomorrow :slight_smile:
Lairan
@alex-lairan
:tada:
Kamil Dąbrowski
@Namek
oh my, wonderful additions!
Lairan
@alex-lairan

Thanks for the new update ! :)

My loot app is now updated with the suffix :bomb:
https://titan.ori-brain.fr/

Without mint lang, I don't think this app would exists, because it helped me a lot !

Lairan
@alex-lairan

When I deploy new versions of my app, the user have to clear cache to see new upgrade.

Sometime, when the API change, the app break.

How can I clear the cache on deploy ?

Furqan Anas
@qonn
@alex-lairan I think this is more on the web-server side than mint. Maybe disable cache on your web-server somehow?
Szikszai Gusztáv
@gdotdesign
you can try unregistering the service worker
Kingsley Hendrickse
@kingsleyh
I build mint without the service workers and i put the no cache headers into the html head also
and i use cloudflare for my dns so i purge the cache there when i release
Lairan
@alex-lairan
:ok_hand: thanks for the help
Kamil Dąbrowski
@Namek
here's result of my work on source maps mint-lang/mint#356
Szikszai Gusztáv
@gdotdesign
:tada: :confetti_ball:
Sam Wang
@Sam647254
in a test suite, is it possible to declare an object and use it across multiple tests?
4 replies
Kingsley Hendrickse
@kingsleyh
hello - I have a blockchain project called Axentro which makes heavy use of Mint - we are launching on an exchage in a couple of weeks - and running a fund raising (IEO) - if anyone would like to help out with the Mint side please let me know - there are so many things to do and not enough time! There will be cash and tokens available once we raise some money in a couple of weeks but initially not. Please send me a private message if you are interested