News for hackers. Stuff that matters.

ldeangelis

Some anecdotal data: I sometimes sleep with a white noise machine (the Dohm from Yogasleep). When I sleep with it, I usually remember my dreams way better (I feel like I had multiple dreams that night compared to almost none usually). I can't really say if I sleep better or not, but it helps me fall asleep quicker if the neighbors are making noise at night.
Re:Teaching our five year old to code by cheating on Wednesday October 07, 2020 @08:50AM (#24707639)
I was going to comment the same thing. It can be fixed by addding a conversion in the if like this:

  if int(guess) == lulu + boonie:
instead of

  if guess == lulu + boonie:
Re:Graalphp: An Efficient PHP Implementation Built on GraalVM on Friday September 25, 2020 @10:49AM (#24590377)
The performance seems pretty impressive! I'd like to see comet being added to techempower's benchmark, to see how it competes against other frameworks.
Re:Graalphp: An Efficient PHP Implementation Built on GraalVM on Friday September 25, 2020 @04:47AM (#24587896)
I wasn't clear, sorry. What I meant to say is that most people use Laravel and Symfony, which are nowhere near the top performing PHP frameworks on the benchmark.
Re:Graalphp: An Efficient PHP Implementation Built on GraalVM on Friday September 25, 2020 @04:15AM (#24587731)
I have to point out that what you say applies only on the "Fortunes" benchmark. On the others benchmarks, Java always comes before PHP. I'll also add that most people don't use the top performing frameworks (most people use Laravel and Symfony for PHP, which are near the bottom), but that applies to everything here.

[edit]: clarification

Re:Graalphp: An Efficient PHP Implementation Built on GraalVM on Friday September 25, 2020 @03:47AM (#24587559)
Here's a benchmark of CRuby vs JRuby vs TruffleRuby: https://pragtob.wordpress.com/2020/08/24/the-great-rubykon-b...
Re:Bleeding-edge tech will kill your startup on Thursday September 24, 2020 @06:17AM (#24577101)
Discord was heavily marketed towards the gaming community that was split between Skype, Teamspeak, Mumble and maybe some others that I don't remember. All of them had some flaws while Discord just worked.
Re:Haskell's Children on Wednesday September 23, 2020 @08:50AM (#24566364)
> Modern Java(which looks more and more like an OCaml on the JVM)

Could you please elaborate on that? Is it related to the new features, like lambdas, pattern matching with switch and so on?

Re:Raccoon Attack on Sunday September 13, 2020 @08:31AM (#24460420)
I think this one is the original video (in slightly better quality) https://www.youtube.com/watch?v=enqiof-3TfE
Re:Show HN: Javadoc Rewritten from Scratch on Wednesday September 09, 2020 @06:31PM (#24426657)
It looks great! I never really used Javadoc so please see this as a total outside feedback. I like the modern look, lighthouse is almost perfect in accessibility which is great (the only point lighthouse complains about it the contrast of links). It's also good on performance (80/100).

I have one confusion about the name, I'm used to the web frontend world where "ng" is usually something related to angular but it seems that it isn't the case here. I'm curious to know what's the origin of the name.

Re:Why I don't give .edu discounts on Sunday August 30, 2020 @08:49AM (#24322905)
Maybe leveraging the Github developer student pack could work. Sign in with Github, and if you have the student developer pack you get a discount.
Re:Ask HN: What did you make during lockdown? on Sunday June 21, 2020 @05:55PM (#23595727)
I use it to learn Japanese and it's very useful. Thank you for your contributions.
Re:A New RegExp Engine in SpiderMonkey on Friday June 12, 2020 @07:31AM (#23498191)
I agree, but in the article, it was mentioned that the V8 team already wanted to make their RegExp engine more independent. Also, since Mozilla runs of limited resources, it's great that they will have less maintenance to do in the future.
Re:SpaceX Software Team AMA on Sunday June 07, 2020 @08:09AM (#23446813)
> Do you use Rust for any systems or have thought about it?

> We do not currently, though it comes up once in a while in our internal chat rooms - Wendy

https://old.reddit.com/r/spacex/comments/gxb7j1/we_are_the_s...

Re:The Go Compiler Needs to Be Smarter on Friday June 05, 2020 @06:06AM (#23426815)
I think one of the pain points that Go addresses is the compilation speed of large C++ projects at Google, and it's one of the reasons it was made in the first place. From what I know C++ and Rust are in the same ballpark in terms of compilation speed, while Go gives a noticeable improvement.
Re:The Go Compiler Needs to Be Smarter on Friday June 05, 2020 @05:02AM (#23426451)
Correct me if I'm wrong but comparing Go against Swift, C, C++, and Rust isn't really fair since one of Go's goals is compilation speed, in which it seems to shine against these other languages. From what I understand, you're going to trade performance against compilation speed, and Go is on the opposite side of these choices compared to the other languages.
The link is broken by the ">" at the end.

While you are right, the thread was explicitly named "Who regrets choosing Elixir", so I think there's a bias in the responses.

Re:What the Hell Is a Deno? on Thursday June 04, 2020 @06:33AM (#23414840)
One point that was not mentioned: Deno is distributed as a single binary. Combined with the security options, I think it's a great feature for small scripts in an enterprise context.
Re:Postmodernism and Its Impact (2017) on Thursday June 04, 2020 @06:08AM (#23414696)
That's a really good analysis. I never really though about it that way.
Re:Show HN: An introduction to Go for C# people on Wednesday June 03, 2020 @04:18PM (#23408140)
Go compile to native binaries, and is used for a lot of tools and CLIs.
Their pinned thread explains that the account is mainly run by one person https://twitter.com/rustlang/status/1263105810525237248
Re:How to Become a Hacker on Monday June 01, 2020 @09:14AM (#23378037)
Interestingly, the initial article [0] is still alive and updated. The most recent addition was about Go. I'm always impressed by how many people do things with this language. It seems to really hit a sweet spot for small to big tools.

[0]: http://www.catb.org/esr/faqs/hacker-howto.html

Another great article that's kind of on the same subject https://qualiacomputing.com/2019/08/27/carhart-harris-fristo...
Re:Fuchsia Rust Crates on Friday May 29, 2020 @05:25AM (#23347974)
Here is is the "Fuschsia Programming Language Policy" that was here some time ago https://fuchsia.googlesource.com/fuchsia/+/refs/heads/master...
Re:Useless Use of Cat Award (2000) on Friday May 29, 2020 @05:20AM (#23347959)
One reason that I use cat is that if by mistake I write ">" instead of "<", I'll lose my whole file. There's no risk with cat.
I think with Next you can "build" the website (the HTML for each page is generated like it would be if it was executed in your browser) and then serve the static HTML + JS if needed, which makes for good SEO.
> As much as I love the Jamstack, it doesn't cut it from an SEO perspective.

Static generation is a big part of JAMstack. Headless CMS means that the CMS only does the CMS part, and then you can plug Hugo, Gatsby or anything that you want with it.

Looks nice! However clicking on the names on the cards doesn't seem to work: when I click on "Vue" my URL is updated to syntax.wiki/#vue. When I click on the Vue logo, my URL is updated to syntax.wiki/vue.

Older »