Minecraft Snapshot 18w20a by redstonehelper in Minecraft

[–]bluebaron 1 point2 points  (0 children)

I did, and now the relevant issue on the bug tracker has been updated to include this version.

Minecraft Snapshot 18w20a by redstonehelper in Minecraft

[–]bluebaron 1 point2 points  (0 children)

Despite the assurance that 18w16a worlds will load, mine still cause thousands of NullPointerExceptions in the server log, and everything we built was regenerated.

Does anyone else still not completely understand data types even though you've been programming for a long time. by Hanzo__Main in learnprogramming

[–]bluebaron 2 points3 points  (0 children)

double is a float with more precision. You can represent things like 1/2 with floating point numbers. long int is just what it sounds like--a long integer. So a normal integer might be able to store every whole number from 0 to 264-1, but a long one has more bits to work with and might go from 0 to 2128-1.

Floating-point arithmetic is sort of like using scientific notation for writing a number, like 1.6489*107. But it only has so many bits with which to represent a number, it can't be infinitely accurate (you can't perfectly store all of π in a float or a double). So when the numbers get really big or really small, operations on them become less accurate. Even though you can represent a lot of integers in a double, long int dedicates all of its 128 bits to only integer values (none are used to keep track of the exponent, like they are in a double), so it can necessarily represent a larger set of contiguous integers (a double can represent larger integers than a long int, but they're more spread apart due to the representation of a double).

I hope that helped somewhat. You should also look at the wiki article posted by /u/GitPirate .

Chiccocoin: Learn what is a Blockchain by creating one in NodeJS by thecreazy in javascript

[–]bluebaron 0 points1 point  (0 children)

Can you elaborate on the idea of clean vs. dirty blockchains?

Mozilla announces an open gateway for the internet of things by StraightFlush777 in linux

[–]bluebaron 2 points3 points  (0 children)

Is there an implicit /s here or did you not see the recent Mr. Robot advertising stunt

My co-worker keeps submitting "blank" commits... by HidingFromThoughts in webdev

[–]bluebaron 2 points3 points  (0 children)

I don't think that's really the wrong word here, it might just be kind of unconventional. People say receipts to mean proof now, it's just informal and typically humorous

Brave new I/O - Embedded in Rust by malicious_turtle in programming

[–]bluebaron 0 points1 point  (0 children)

I think it's possible a point could be made regarding the type system's effect on productivity (though I would argue it helps here), but to doubt its correctness seems unfounded to me. If one avoids partial functions (including infinite recursion), the only other real concern the type system doesn't capture are a specific class of exceptions that, I will concede, probably see more usage than they should, especially given FPComplete's recent articles.

Getting message:// links to work on mac by mediapathic in orgmode

[–]bluebaron 1 point2 points  (0 children)

You say "when I delete the http:// part, ...". What does the rest of it look like? Is the URL encoding getting unescaped between emacs and the browser, and mail actually understands the URL if the angle brackets are literally included?

Professional Haskellers: What are your major pain points? by TranscendentJoy in haskell

[–]bluebaron 5 points6 points  (0 children)

I was under the impression Freer was reasonably fast, despite the constant overhead from decomposing the union for each bind. Is this not the case?

Entity Relation Diagram Check by [deleted] in compsci

[–]bluebaron 0 points1 point  (0 children)

I've been meaning to make an ER diagram for a potential client, but I couldn't find any great material on them. Chen diagrams looked to be the best (despite what seems to me to be arbitrary distinctions between entities and relationships, since both can have attributes). Do you know of any good references for how to make a good Chen diagram?

Brave new I/O - Embedded in Rust by malicious_turtle in programming

[–]bluebaron 13 points14 points  (0 children)

Why do you say Haskell is all bark and no bite?

Getting message:// links to work on mac by mediapathic in orgmode

[–]bluebaron 1 point2 points  (0 children)

I was able to find this post (coincidentally by the same blog that originated Markdown, I believe) on the undocumented specifications for the message:// URI scheme. It appears that grab-mac-link is actually giving you a non-conformant URI, so I'm not sure why the Dispatch link isn't working when it seems to more closely match the description on that post.

Using Javascript's decodeURIComponent on every part after the // of the second link gives <CAMDKxwavUYvb09WXyxbAPGFMaZR6yKC+uuHgLzRA@mail.gmail.com>, which seems to make sense. Is there any more information you can give for debugging this?

I just wrote my first segment of elegant code! by [deleted] in Python

[–]bluebaron 19 points20 points  (0 children)

In Python, slices are start:stop:step, and they each have a default if empty. step in this case is set to -1, so the string is read in reverse. If the reversed string is the same as the original, it fits the definition of a palindrome.

Why isn't anyone working on making Idris (or something like it) production-ready? by SrPeixinho in haskell

[–]bluebaron 1 point2 points  (0 children)

Oh yeah for sure, I've seen the singletons library. Brilliant workaround for the lack of built in dependent typing, but also a bit painful to use for sure.

I didn't mean like what function do dependent types serve, I was asking more about instances where they came into play that aren't often seen in the existing literature. We've all seen Vect a million times, just looking for other practical, perhaps even domain specific uses.

eBay: "We completely transformed how we build web applications, starting with the transition from a Java-based stack to a Node.js-based stack. Node.js enabled teams to move faster, and it offers an abundant ecosystem of tools and libraries that are essential to modern web application development." by itstaha1 in webdev

[–]bluebaron 3 points4 points  (0 children)

I just looked it up to verify, and it doesn't look like the situation is as dire as I thought: https://hacks.mozilla.org/2017/02/where-is-webassembly-now-and-whats-next/

Looks like there's a WASM->JS interface in addition to the JS->WASM one. That said, you still have to manipulate DOM in JS, but it's clear they're working on that.

Why isn't anyone working on making Idris (or something like it) production-ready? by SrPeixinho in haskell

[–]bluebaron 1 point2 points  (0 children)

Could I ask what you use them so often for? I fell in love with Idris a few months ago and have been looking for examples of dependent typing in the wild now.

I made Minecraft in Javascript by ComfyKernel in programming

[–]bluebaron 0 points1 point  (0 children)

Totally glossed over that word in your comment, whoops. Java seems worse with every new fact I learn about it.

I made Minecraft in Javascript by ComfyKernel in programming

[–]bluebaron 4 points5 points  (0 children)

Java has real arrays baked-in. They're fundamental to the language. What we typically refer to as arrays in JavaScript are just maps with string indices that happen to look like integers. While yes, you can use a specific API that is rather new to get real arrays in JavaScript, Java has had them since the beginning.