Better HN
topnewbestaskshowjobs
Log inSign up

Timwi

1,518 karma · joined Aug 28, 2017 (9y ago) · 989 submissions

Submissions

comment 2y ago · link · parent

While you're conceptually right, in practice I think it bears mentioning that in C# the two syntaxes compile differently. This is because C#’s target platform, the .NET Framework, has always had a function called `string.Format` that lets you write this:

  var str = string.Format("{0} is {1} years old.", name, age);
When interpolated strings were introduced later, it was natural to have them compile to this instead of concatenation.

comment 2y ago · link · parent

I doubt that Funciton, in its current form, could be useful in education. It doesn’t embody the most widely used programming paradigm (procedural) but instead is a declarative functional language, which makes any skills obtained by studying it pretty much untransferable. Secondly, its syntax does not allow for naming of variables and parameters (except perhaps through comments) which is an anti-pattern. If these could be addressed in a derivative concept that is actually designed for education, it could work. As it stands, however, it’s just a quirky esolang.

comment 2y ago · link · parent

Somebody already mentioned this inside of a thread, but I want to point it out separately: neither the blog post nor the original image mention what counts as a “passing grade”. It's not wild to think that this was very different in 1912.

comment 2y ago · link · parent

Website requires signup.

comment 2y ago · link · parent

I invented a programming language where you use Unicode box-drawing characters to draw a structure of boxes and lines:

                    ╓───╖
                    ║ ! ║
                    ╙─┬─╜   ┌───╖  ╔═══╗
                ┌─────┴─────┤ > ╟──╢ 2 ║
                │           ╘═╤═╝  ╚═══╝
  ╔════╗  ┌───╖ │             │
  ║ −1 ╟──┤ + ╟─┴─┐           │
  ╚════╝  ╘═╤═╝   │           │
          ┌─┴─╖   │    ╔═══╗  │
          │ ! ║   │    ║ 1 ║  │
          ╘═╤═╝   │    ╚═╤═╝  │
            │   ┌─┴─╖  ┌─┴─╖  │
            │   │ × ╟──┤ ? ╟──┘
            │   ╘═╤═╝  ╘═╤═╝
            └─────┘      │
The language is called Funciton (pronounced: /ˈfʌŋkɪtɒn/) and the above example demonstrates the factorial function.

I made this language over 10 years ago, but earlier this year I've been making YouTube videos in which I describe it in excruciating detail: https://youtube.com/playlist?list=PLkG32PHxWoJaetjKUMVRONWLg...

For my next video, I want to show in detail how the interpreter works. For this purpose I'm creating an elaborate animation. You'll notice that the latest video is already several months old; this is because this animation is more work than I bargained for, and I got a little burned out by it. Nevertheless, I persevere and the video will come out whenever I may finish it.

Language specification: https://esolangs.org/wiki/Funciton

Interpreter: https://codeberg.org/Timwi/Funciton

comment 2y ago · link · parent

I would like to see an in-depth treatise explaining why existing bytecode VMs (LLVM, JavaVM and Ecma CLR) were never seriously considered for the world of browsers. These VMs already exist for numerous platforms, have been optimized to death, already have plethoras of languages that compile to them, and beside JavaVM are open source (Ecma CLR exists in the Mono project). I've looked at WebAssembly and I don't understand why it needed to be reinvented from scratch and why it needs to be so limited. We could already be writing web code in Rust, Java, C#, Python, and heck even Haskell, if we had just done that. I know that I'm skipping over the engineering effort required to make this happen but I get a sense that the engineering effort is not the stumbling block. I want to know the details of what is.

comment 2y ago · link · parent

Which is ironic because I use Google Sheets a lot and occasionally run into problems when it doesn't support BigInt calculations. Sheets is the best excuse Google has for keeping BigInt support in the language.

comment 2y ago · link · parent

Although that's a good call as I hadn't considered that, I still don't see why you want to use a mask. Surely you just need two tiny SVG files and show only one or the other. And since they're tiny, I would absolutely embed them directly, which is why I didn't consider the case of an img tag.

comment 2y ago · link · parent

Please stop posting websites that show only half the article. Post a full article or none at all.

comment 2y ago · link · parent

But that's the thing, if it pops up a plea for ratings (or an ad or anything else unwanted and annoying), then I really, genuinely and honestly DON'T like the app.

comment 2y ago · link · parent

What makes me really sad is that you've identified a problem with capitalism but decide to push it onto your customers. It's true that most users won't rate unless asked, but that just means they don't want to and it's not your place to “make them”. It's not their fault that big companies exist that can pay huge amounts on ads.

comment 2y ago · link · parent

I invented a programming language where you use Unicode box-drawing characters to draw a structure of boxes and lines:

                    ╓───╖
                    ║ ! ║
                    ╙─┬─╜   ┌───╖  ╔═══╗
                ┌─────┴─────┤ > ╟──╢ 2 ║
                │           ╘═╤═╝  ╚═══╝
  ╔════╗  ┌───╖ │             │
  ║ −1 ╟──┤ + ╟─┴─┐           │
  ╚════╝  ╘═╤═╝   │           │
          ┌─┴─╖   │    ╔═══╗  │
          │ ! ║   │    ║ 1 ║  │
          ╘═╤═╝   │    ╚═╤═╝  │
            │   ┌─┴─╖  ┌─┴─╖  │
            │   │ × ╟──┤ ? ╟──┘
            │   ╘═╤═╝  ╘═╤═╝
            └─────┘      │
The language is called Funciton (pronounced: /ˈfʌŋkɪtɒn/) and the above example demonstrates the factorial function.

YouTube playlist: https://youtube.com/playlist?list=PLkG32PHxWoJaetjKUMVRONWLg...

Language specification: https://esolangs.org/wiki/Funciton

Interpreter: https://codeberg.org/Timwi/Funciton

comment 2y ago · link · parent

It's already been mentioned that instead of box-shadow perhaps outline is a better choice for the image frame.

For the icons, I don't understand why the author believes that they need to have two copies of the icon inside the SVG. You can style every property of every element using CSS. If your icon is a single path element, it should remain a path element and be styled something like this:

  svg.social path { fill: gray; }
  svg.social:hover path { fill: #8df; }
Of course it's possible that I'm missing something, but if all you want is changing color on hover, duplicating the item and using a mask is overkill.

comment 2y ago · link · parent

While you're not technically wrong, this is no reason to stop trying to improve the world for everybody.

comment 2y ago · link · parent

Yep, that's what happens on mobile when each paragraph is in a <pre> tag of its own.

comment 2y ago · link · parent

Thank you. I tried the emoji URL but Fennec on Android doesn't accept it and just runs a web search.

comment 2y ago · link · parent

I have two super nitpicky things to say.

1) The website is slightly wide on my phone, so it wiggles left and right when I scroll. I usually fix this by pinch-zooming out the tiny amount necessary to align it to my viewport width, but your website apparently suppresses zooming.

2) The AI announces itself as having the name “Jane Doe”. What's the point in this? I know that American news with real anchors do this (having the anchor announce their own name), but this is not universal so it feels foreign to me. Since AIs don't have names, it feels like this was shoehorned in just to sound like American commercial news.

comment 2y ago · link · parent

Yes. Not literally of course, but it can be deleted/decommissioned, which is even more effective than temporary imprisonment (it's equivalent to death penalty but without the moral component obviously).

comment 2y ago · link · parent

My apologies. I will provide links next time. For now, my sibling comment will do the trick. Birds are dinosaurs, so dinosaurs are not extinct.

comment 2y ago · link · parent

I'm not the OP you're replying to but I think you missed some of their points.

1) multiple outlines: with your strategy, you can no longer edit the shape as a single shape afterwards.

2) varying thickness: it sounds like you're thinking of thickness varying abruptly from one line segment to another, but remaining constant throughout one segment. I would like a feature where the stroke width varies continuously from one vertex to another, that is, get smoothly thicker or thinner.

3) you can only have rounded corners on every vertex or no vertex of a shape. You can't choose individually for each vertex.

I think these are all features that SVG would benefit from adding.

comment 2y ago · link · parent

I would assume you got downvoted because you feel for a particularly implausible myth.

comment 2y ago · link · parent

What you find fun or unfun need not match other people's preferences. You can tell us what's fun or unfun for you, but you can't tell other people they're having fun wrong.

I personally find a lot of optimization problems very fun and can keep at them for a long time.

comment 2y ago · link · parent

I've been using Windows for more than 17 years and I have no clue what you're talking about; the term “panel” is not an established term in Windows’ desktop environment.

comment 2y ago · link · parent

First off, there are more TLDs than just .com.

Secondly, the majority of people go to websites by googling them, not by typing a URL.

comment 2y ago · link · parent

No, they're much further apart than that. Consider that the total number of asteroids is only 7 digits (i.e. not even ten million) and they are spread out across the asteroid belt that is larger than Earth's orbit.

comment 2y ago · link · parent

> When I want to relax after work by playing a game while listening to someone drone on on youtube on a deep and esoteric subject

Angela Collier is the answer to your plea.

comment 2y ago · link · parent

Yet another science piece that perpetuates the misconception that “the mass extinction killed the dinosaurs”. The clade of dinosaurs is not extinct and it bothers me that science writers don't seem to learn this fact and keep getting it wrong.

comment 2y ago · link · parent

> It also has the function to render the HTML into an image (Via the "Render" button).

Firefox has that built in: right click, “Take Screenshot”. It lets you choose between screenshotting just the visible viewport or the whole page.

comment 2y ago · link · parent

Unfortunately, the # character puts a spanner in the works. The browser interprets it as a fragment and thus ignores everything after it. Since # is very common in SVG (color codes, id references), they break more often than I'd like.

comment 2y ago · link · parent

> do you think they're going to ship something that performs noticeably worse than its predecessor?

Yes. Capitalist software vendors do that all the time. Google search has been getting continually worse over the decades. Windows is more bloated than ever. AI is going to be no different.

1
242526
33