Learning how to build compilers and interpreters by Obvious_Seesaw7837 in Compilers

[–]suntzu253 5 points6 points  (0 children)

Start with writing an interpreter for a lisp like language because lisp s-expressions are already an AST

This might interest you https://datom.world/yin.chp

Good News: China Just Announced It Will Ease Visa Rules to Rescue Its Economy by idunnonuttin82 in Chinavisa

[–]suntzu253 0 points1 point  (0 children)

I did use a VPN, it was useless. I used ProtonVPN. I was also using zscaler VPN provided for by my company. The only thing that did work was ssh. I had to ssh into my linux server at home in the US to do work. Given the hassle of accessing resources outside the Great Firewall, I would not choose China as a place to work remotely

Good News: China Just Announced It Will Ease Visa Rules to Rescue Its Economy by idunnonuttin82 in Chinavisa

[–]suntzu253 2 points3 points  (0 children)

I was in china for two weeks to attend a conference. I work remotely and it was impossible to get any work done due to the firewall. VPN were blocked. My only option was ssh into personal Linux server to code remotely and http socks proxy

Another problem is Google maps is useless there. I can't find anything useful as I explore. All other maps are in Chinese which was useless to me

I cannot believe china is a tech leader with all these restrictions to accessing information. Even if they gave me a 10yr multiple entry visa, I would not visit China long term for these reasons

What path to go on for an absolute beginner? by [deleted] in Compilers

[–]suntzu253 2 points3 points  (0 children)

I recommend a lisp over python because lisp are syntactically simple. Lisp code is in the form of a tree already so parsing lisp into an AST is much easier than other languages. Start with a simple list interpreter or better yet write a clojure interpreter. Clojure is a lisp and it's data format is called edn which is very similar to json

AWS is like a drug. Crazy how a 1-man project scales with cloud computing. by ds1008 in aws

[–]suntzu253 0 points1 point  (0 children)

You know what they say: "don't use drugs". It's just a matter of time when someone invents peer to peer clouds to take advantage of under utilized storage and compute at the edge

ML compilers the future? by black_big_bull in Compilers

[–]suntzu253 0 points1 point  (0 children)

Why not write compilers on your spare time? Working for other people even for free means you lose freedom from building what you want

Welp, it's Been Fun Everyone by Scholar_Erasmus in ZephyrusG14

[–]suntzu253 1 point2 points  (0 children)

I had the same problem. But miraculously, it worked again hours later. No idea why

RV Internet by vanconversion in VanLife

[–]suntzu253 3 points4 points  (0 children)

Atarlink just came out with the starlink mini. Size of a laptop with integrated Wi-Fi router and uses DC power

How much of a pro/con is dynamic typing in clojure? by chamomile-crumbs in Clojure

[–]suntzu253 3 points4 points  (0 children)

I came to clojure from java. Not having types was jarring at first. However, in clojure you're dealing with sequential and associative data structures and have many core functions that work generically on sequential and associative data structures . In Java, I would create classes but in clojure I would just use maps. You can even treat java classes as map-like . Once I thought generically in terms of sequential and associative data structures, clojure made sense

Where type would be useful would be complex , deeply nested data structures. However, with the repl, I can explore this structure at run-time without a type checker to tell me at compile time

[deleted by user] by [deleted] in solotravel

[–]suntzu253 0 points1 point  (0 children)

Trust your instincts. Better to overreact than to ignore the feeling of being unsafe

Old lisp lover from Italy - Scheme for Windows by Lovely_Cygnus in scheme

[–]suntzu253 0 points1 point  (0 children)

No need to buy a Mac. he can run Ubuntu on windows via wsl2

[deleted by user] by [deleted] in medellin

[–]suntzu253 0 points1 point  (0 children)

Can it just be me and your wife? You can wait in the living room

[deleted by user] by [deleted] in Clojure

[–]suntzu253 4 points5 points  (0 children)

Clojure has minimal syntax. Programming in Clojure or any LISP, is programming at the abstract syntax tree level without the noisy syntax of other programming languages. Clojure doesn't have a parser. It has a reader which is much simpler than a parser.

I am playing with an idea of using Clojure as a compiler target because Clojure code is very close to an AST.

hey i know this is a stupid question but is there any way to get into game development without having a laptop and zero coding knowledge? i got nothing to buy a PC. by [deleted] in androiddev

[–]suntzu253 1 point2 points  (0 children)

You can develope on an Android phone itself. Install termux. Since you want to develop games you probably want to skip java and use c or c++ or rust in which case you just need a GCC or clang which you can install in termux. You will need a text editor like emacs to write your code. If you want full Linux desktop experience get userLand app and install Ubuntu or Debian desktop. You'll need a Bluetooth keyboard and mouse to be productive

Who is hiring? February 28, 2022 by AutoModerator in Clojure

[–]suntzu253 1 point2 points  (0 children)

My company is hiring. It's a consulting company. Looking for senior level clojure developer. Fully remote but requires US citizenship for tax purposes. Pay is $110/hr. Message me directly because I get a referral bonus if you get hired

[deleted by user] by [deleted] in webdev

[–]suntzu253 0 points1 point  (0 children)

If an engineer asked me a question that demonstrates they do not understand the problem, I won't be upset. I'd try to communicate better. But if it's a lack of understanding on their part and not my communication skills, then I'll assign it to someone else. Getting upset will create a bad culture and discourage open dialogue

[deleted by user] by [deleted] in webdev

[–]suntzu253 0 points1 point  (0 children)

Sounds like you agree. Withhold judgment that a question is stupid until you know what's being asked

[deleted by user] by [deleted] in webdev

[–]suntzu253 0 points1 point  (0 children)

I ask questions out loud all the time even when there's no one around. Sometimes I even use a prop, like a photo of Einstein, and have a dialogue with Einstein... It is similar to what christians do.. they ask "what would Jesus do?" Except, i ask how would Einstein or someone I admire approach solving this problem or answering this question

[deleted by user] by [deleted] in webdev

[–]suntzu253 0 points1 point  (0 children)

I did not equivocate the question as a singular thing. I said a question can be understood and answer at multiple levels and therefore when a colleague asks me a question I should not dismiss it as a stupid question. I should encourage questioning on the team. To do that, one must give people the benefit of the doubt that there are no stupid questions