Better HN
topnewbestaskshowjobs
Log inSign up

lorenzosnap

140 karma · joined Oct 23, 2014 (12y ago) · 87 submissions

Submissions

comment 3y ago · link · parent

The reporting of a message's timestamp really depends on the system you are working on. And the key aspect is to genuinely think how the users think about that timestamp. I recently implemented it in a real time system where I write things like "just now" (within the last 10 seconds) "more than 10 seconds ago" (between 10 seconds and less than a minute) "more than a minute ago" (between 1 one minute and less than 10 minutes) "more than 10 minutes ago" (between 10 minutes and less than 1 hour) ... (I think you get the gist) After it say more than a day... then that's it the message is considered very old

comment 4y ago · link · parent

Well, what can one say ? congratulations. That really shows some level of persistence.

comment 8y ago · link · parent

I always have the radio on when I am on my pc... but hey this is so cool ... so cool ... that I had to turn the radio off well done

comment 8y ago · link · parent

Thanks. I was not aware of those two sites. Similar ideas but different results.

comment 8y ago · link · parent

Hi there,

Like many, I have stumbled on tons of articles on the blockchain. Some very good, some not so good. But I never stumbled on some easy blockchain simulator where I could try things out.

So if you are like me, and you don't like being told things as much as you like coming to the conclusion yourself then you really need to give blockchaincalm a chance.

thanks,... and any feedback is good feedback

6.

Show HN: Blockchain calm: A blockchain playground(lorenzoongithub.github.io ↗)

6 points · by lorenzosnap · 8y ago · 3 comments

comment 8y ago · link · parent

Nashorn is the beating heart for https://github.com/lorenzoongithub/nudge4j

Around 100 stars in github so probably not worth much consideration to whoever decided to 'deprecate it'

Again, nudge4j is effectively 8 lines of Java code (just enough to kick off the nashorn engine) and the rest is JavaScript on Java.

I hope that JEP 335 won't go ahead. I vote against.

comment 8y ago · link · parent

I would have thought that maybe the other way around. i.e. let me move my sourceforge project into github.

why would people want to use this ?

9.

Connect your browser to your Java Program (a promotional article on medium)(medium.com ↗)

1 points · by lorenzosnap · 8y ago · discuss

comment 8y ago · link · parent

hi everyone, lots of work on this idea of mine during the bank holiday weekend. Any feedback is welcome.

11.

Show HN: Nudge4j connect your browser to the JVM (a different way of debugging)(lorenzoongithub.github.io ↗)

4 points · by lorenzosnap · 8y ago · 1 comment

comment 9y ago · link · parent

here is a cheesy example of JavaScript selfie program for the hacker news community

https://sequential.js.org/live.html#G4QwTgBOYgnhBeCBtA5ACwKY...

13.

Show HN: I come up with the concept of Selfie Program(medium.com ↗)

4 points · by lorenzosnap · 9y ago · 3 comments

14.

Show HN: Sequential because sometimes few lines of JavaScript is all you need(sequential.js.org ↗)

1 points · by lorenzosnap · 9y ago · discuss

comment 9y ago · link · parent

I am not sure you are correct. We have 2 eyes so that our brain can work out the depth of the image.

comment 9y ago · link · parent

LOL. Can't wait to show those pictures to my daughter. thanks

comment 9y ago · link · parent

you are right. I will do it and then take another photo

18.

Tallest Lego building with 4 pieces?(medium.com ↗)

405 points · by lorenzosnap · 9y ago · 98 comments

comment 9y ago · link · parent

Ok, thanks that sounds fair.

comment 9y ago · link · parent

So Javelin is written in Java, not in Kotlin. I don't mean to sound unfair but isn't it that saying "a Java/Kotlin blah blah" just a kind of marketing trick ? If I get Kotlin right every Java solution is also Kotlin compatible.

21.

Show HN: Sequential – it's like microblogging JavaScript code(github.com ↗)

5 points · by lorenzosnap · 9y ago · discuss

22.

Show HN: Sequential – showing code as it runs(github.com ↗)

2 points · by lorenzosnap · 9y ago · discuss

23.

Show HN: Sequential – Visualizing JavaScript Code Execution(lorenzoongithub.github.io ↗)

2 points · by lorenzosnap · 9y ago · discuss

comment 9y ago · link · parent

We built an inmemory map and we were using String.intern for both keys and values. We could see that we were saving lots of memory but we had the problems described in the article. We then built our own 'String.intern' by using yet another static HashMap. It worked. It was the simplest alternative and it just did the job. Thanks alekskey for the nice article.

25.

Text-based videos(asciinema.org ↗)

1 points · by lorenzosnap · 9y ago · discuss

26.

Show HN: Sequential because sometimes few lines of JavaScript is all you need(lorenzoongithub.github.io ↗)

1 points · by lorenzosnap · 9y ago · discuss

27.

Show HN: Nudge4j UI – 50 lines of Java to have window to talk to your JVM(lorenzoongithub.github.io ↗)

7 points · by lorenzosnap · 9y ago · discuss

comment 9y ago · link · parent

Good article. I am unsure about point 7 "Consider changing where you live" I accept that for some careers this might be inevitable but in a truly connected world it's also nice to follow the opposite advise and spot opportunities where you are

comment 9y ago · link · parent

really really amazing

30.

Show HN: My Java 8 REPL (from the browser)(lorenzoongithub.github.io ↗)

2 points · by lorenzosnap · 9y ago · discuss

123