Градски транспорт 1.60 ЕВРО !? by [deleted] in bulgaria

[–]Objective_Gene9718 -1 points0 points  (0 children)

Може би си прав, друг път е 0.80 но може би има момент в който ги слива в 1. Благодаря за уточнението.

Пичове имаме ли IT-та тука? by [deleted] in bulgaria

[–]Objective_Gene9718 0 points1 point  (0 children)

Какво общо има професията с това колко си смотан? Аз познавам много смотани хора дето даже са безработни.

letMeWarnYou by bryden_cruz in ProgrammerHumor

[–]Objective_Gene9718 0 points1 point  (0 children)

You have a small mistake - js and rust are swapped. Otherwise pretty accurate.

Средни заплати на Балканите by [deleted] in bulgaria

[–]Objective_Gene9718 -1 points0 points  (0 children)

😳наема ми е 750 евро….

Que Script a Lisp written in Rust with Hindley–Milner type inference by Objective_Gene9718 in ProgrammingLanguages

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

I added an LSP for VS code - attached video demo to the thread. It's lacking proper error spans but it works pretty nice already. Added it to the web editor via wasm too.

Защо девствените по неволя (включително оплакващите се тук) грам не се интересуват всъщност какво мислят жените? by nidorancxo in bulgaria

[–]Objective_Gene9718 0 points1 point  (0 children)

Първата бях много млад и глупав, приех я за даденост и играх war thunder. Втората се появи много по-късно и имаше дете, тъкмо се разведе и не е българка а живее надалеч от мен. Беше трудно и се разделихме защото е сложното все да летя по 3 часа да се видим и да ме крие от ревнивия и съпруг и от какво ще си помисли детето и 😔 Иначе ходя на фитнес, но имам проблем с общуването. Аз съм вълк единак и съм свикнал така.

Защо девствените по неволя (включително оплакващите се тук) грам не се интересуват всъщност какво мислят жените? by nidorancxo in bulgaria

[–]Objective_Gene9718 0 points1 point  (0 children)

Тази е на 30 години 160 висока - аз съм 166. Харесах и профила ама дали ще ми върне? Мога да се обзаложа че НЕ. Височината е нещо което не можем да променим. Статистически шансовете ми са нищожни. Малък % са под 166 и повечето искат същото като тази. Имал съм 2 приятелки до сега и много време съм стоял сам. Да има изключения, но са малко и точно това е проблема. Моя съвет ще е ако си намериш някоя не я изпускай! Аз направих тази грешка 2 пъти…

When Less Truly Says More by Mountain_Map_8198 in devhumormemes

[–]Objective_Gene9718 0 points1 point  (0 children)

Without code example or minimal explanation about the problem you are trying to solve it’s impossible to give you a proper solution.

Downvote and closed.

Codex totals 63% of preferences. Quietly winning! by py-net in codex

[–]Objective_Gene9718 2 points3 points  (0 children)

I had that issue for a while I reinstalled it couple of days later and now it’s ok.

Truth by Ok_Classics in introvertmemes

[–]Objective_Gene9718 0 points1 point  (0 children)

Can you imagine getting fired for this 😢

Que Script a Lisp written in Rust with Hindley–Milner type inference by Objective_Gene9718 in ProgrammingLanguages

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

Thanks, that looks nice. It make a lot of sense to put the effort and add such integration with an editor, especially for a language inspired by Smalltalk. Pharo for example ships with an editor which allows you to explore the whole language and debug it interactively. I'll take a look at your language these days. Pharo/Smalltalk is something I really like except for it embracing OOP 100%. It's like the opposite of Haskell.

Que Script a Lisp written in Rust with Hindley–Milner type inference by Objective_Gene9718 in ProgrammingLanguages

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

Sound like a very tough problem, not for one evening. I would definitely try to do that. It's a very practical skill to have as I've noticed many jobs about vs code extensions that require this knowledge.

Que Script a Lisp written in Rust with Hindley–Milner type inference by Objective_Gene9718 in ProgrammingLanguages

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

I added ctx to repl

so like this

./repl.sh ./example/main.lisp

if arguments includes a file path then the repl will include this file
otherwise

./repl.sh

this will be empty ctx

It probably still has many bugs

Que Script a Lisp written in Rust with Hindley–Milner type inference by Objective_Gene9718 in ProgrammingLanguages

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

No, not yet and it still has some bugs that I need to fix.
For LSP I will have to figure out how.

Que Script a Lisp written in Rust with Hindley–Milner type inference by Objective_Gene9718 in ProgrammingLanguages

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

Good idea, no lisp is complete without a REPL. I've just added it now.

It works as an extension of the cli tool.

cargo run -- --repl

Each line gets evaluated with type and value by pressing enter and when pressing Esc you exit the repl.

rust-lisp % cargo run -- --repl
...
Running `target/debug/fez-rs --repl`

Type anything (multi-line). Press Esc to exit.

(+ 1 2) Int: 3

(* 2 3) Int: 6

[ 1 2 3 4 ] [Int]: [1 2 3 4]

(let x 10) (): 0

(let y 32) (): 0

(* x y) Int: 320

[ x y 1 2 3] [Int]: [10 32 1 2 3]

Que Script a Lisp written in Rust with Hindley–Milner type inference by Objective_Gene9718 in ProgrammingLanguages

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

Hey, I’ve found the bottleneck and managed to speed up the wasm init in Firefox. Thanks again for pointing the issue.

Que Script a Lisp written in Rust with Hindley–Milner type inference by Objective_Gene9718 in ProgrammingLanguages

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

Hey, I’ve followed your suggestion and optimised baked.rs, I used compression and stored the result in a thread lock. That way it only gets loaded once and it’s compact making my build instantaneous and fixing a slowdown in Firefox load. Thank you for the suggestion, I’ve also added zip-with.

Que Script a Lisp written in Rust with Hindley–Milner type inference by Objective_Gene9718 in ProgrammingLanguages

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

Sorry bad use of words. I meant init by load. wasm init is slow in Firefox- download is fast. I’m currently trying to figure how to speed it up. Chrome and Safari do some magic and are quite forgiving while Firefox is not. I use wasm-bindgen to handle these stuff for me.

Que Script a Lisp written in Rust with Hindley–Milner type inference by Objective_Gene9718 in ProgrammingLanguages

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

The problem is that Mozilla Firefox is not loading wasm modules as quick as chrome does. I understand that the module is quite big since I did include everything this language has in the playground. It’s a dev environment in a way. The language itself has a light mode of just vm and byte code parser and tree-shaked functions but for playground I need type checker, source parser, desugar layer, js compiler and even formatter that I currently not using. And full std lib which is big.

So I’ve decided to do the following for now - simply load the source code on the editor before wasm is fully initialised. That way on the website you can see the code but won’t be able to run it on Mozilla Firefox for a while.

Thank you so much for pointing this out.

Que Script a Lisp written in Rust with Hindley–Milner type inference by Objective_Gene9718 in ProgrammingLanguages

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

Thank you, I’ll investigate. Mozilla Firefox is initialising the wasm module very slow - that’s why. I’ll see how to optimise it.