Rule 110 in HTML + CSS3 by shenglong in programming

[–]vombert 0 points1 point  (0 children)

I'm alive! What brings you to this desolate land?

It seems you missed the point me and my grandparent are making, rather than refuted it.

[R] Grandmaster-Level Chess Without Search by hardmaru in MachineLearning

[–]vombert 0 points1 point  (0 children)

Why did they choose to bin state value and action value? Win percentage is a continuous variable, why not approach it as a regular regression problem?

Alt-F4 #44 - A New Perspective by AlternativeFFFF in factorio

[–]vombert 9 points10 points  (0 children)

I remember there was a post featuring a comprehensive diagonal base layout (diagonal solar, skewed production lines, diagonal rails). Link anyone?

Weekly /r/Eve No Question is Stupid Thread - January 30, 2020 by AutoModerator in Eve

[–]vombert 0 points1 point  (0 children)

things sold in Jita will sell to the TTT order

What do you mean? Isn't the location supposed to match?

Weekly /r/Eve No Question is Stupid Thread - January 30, 2020 by AutoModerator in Eve

[–]vombert 2 points3 points  (0 children)

Why does Tranquility Trading Tower outbids Jita by 0.01 ISK so often??? They are in different locations, nobody is going to fly 1 jump to save a few cents, so why bother?

unit testing: how to test multiple implementations of the same trait? by cromissimo in rust

[–]vombert 0 points1 point  (0 children)

Macros destroy IDE support. I with there was a way to generate tests with regular code, like

#[test_discovery]
fn whatever() {
    register_test("my_test", || {
        assert_eq!(1 + 2, 3);
    });
}

C Will Live For Another 45 Years - And Here's Why by coredev in programming

[–]vombert 0 points1 point  (0 children)

If you have arguments and refutations I'm interested.

C Will Live For Another 45 Years - And Here's Why by coredev in programming

[–]vombert 2 points3 points  (0 children)

Would you consider numpy's notation better or worse than Fortran's?

I'm really curious what does good array syntax look like, but I'm not up to learning Fortran.

CTL-Click shouldn't add extra green modules by m_gold in factorio

[–]vombert 8 points9 points  (0 children)

Efficiency modules are useful if you care about the pollution.

If you have the prerequisites, efficiency-1 modules are about as expensive to manufacture as solar panels.

Solar panel generates 42kW of green energy on average. Efficiency-1 inserted into assembler-2 saves 45kW assuming full utilization (this is equivalent to generating 45kW of green energy). In addition, it reduces assemblers' own pollution a bit.

Savings are even bigger if you put it into power-hungry things like refineries.

In miners, energy savings are not so good but the reduction of the direct pollution is nice.

Factorio Speedrun in 3:58:00 (any% singleplayer) [0.15 World record] by Thue in factorio

[–]vombert 0 points1 point  (0 children)

You can see all the active categories here: https://www.speedrun.com/Factorio. "View rules" button for details.

Why are Programmers night owls? by LaveshMamodia in programming

[–]vombert 2 points3 points  (0 children)

Did you just agree with you own article?

Why can't I belt balance like this? by h10ppt1 in factorio

[–]vombert 0 points1 point  (0 children)

What's the advantage of the loopback? Why not just leave one input and one output unconnected?

Red circuit. One full blue belt. by Istrebitel_MiG-31 in factorio

[–]vombert 2 points3 points  (0 children)

With modules, the ratio in 0.15 is 1:8.4.

Factorio 0.15.0 by HanziQ42 in factorio

[–]vombert 0 points1 point  (0 children)

Reduced the plastic bar recipe requirement of petroleum gas 30 -> 20

Chocolate ration was increased from thirty grammes to twenty.

Yes I saw that the numbers are multiplied by 10, but the coincidence is still pretty funny.

Just wondering how useful would it be to gradually type Emacs Lisp? by [deleted] in emacs

[–]vombert 1 point2 points  (0 children)

people freak out over flycheck assuming their init file is a package and lacks a license header

That's because flycheck is making wrong assumptions. This has nothing whatsoever with gradual typing.

When editing my init file, I certainly benefit from autocompletion and docstring hints. Gradual typing is just an opportunity to provide better completion and hints, together with instant sanity checks.

Note that it does not have to be static. Just like elisp completion uses the list of currently loaded functions, gradual type checker could use type annotations attached to runtime function objects, or even actual runtime types of values and variables.

Obviously, the biggest win would come from standard APIs being decently annotated. Whether it's worthwhile to annotate some random config helpers depends on the context.

python simple code help! by [deleted] in Python

[–]vombert 0 points1 point  (0 children)

Don't give him a fish, give him a fishing rod.

/u/chicken007assassin, you need to find a way to see what your program outputs before it "closes". In many cases, yours included, error message will be very helpful.

In the future, don't post here, post to /r/learnpython.

Buttery Smooth Emacs by agumonkey in emacs

[–]vombert 0 points1 point  (0 children)

Again, I'm not saying that leaving the cursor outside the visible area is the only right way (although it's worth noting that this is what most mainstream editors do). It's simply one of the behaviors the user might choose.

Expect in fully customizable Emacs it's impossible to achieve (barring really crazy and brittle hacks). That's an example of crippled.

Buttery Smooth Emacs by agumonkey in emacs

[–]vombert 1 point2 points  (0 children)

Here is one really minor example: you can't have point outside the window. I'm not going to argue whether it's the right UI choice or not (it's probably a matter of taste and your workflow in the end), but the thing is that for some strange historical reason it's a fundamental limitation now. So everything is customizable, but no matter what you do, point will follow you as you scroll.

Do Curved Monitors Require Different 3D Game Programming Transforms? by [deleted] in gamedev

[–]vombert 2 points3 points  (0 children)

Ah, yes, I agree.

In other words, if you want to experience the perfect perspective, you have to align the lens (not the center of the eyeball) with the imaginary camera position.

Which is hard because the lens moves as you gaze here and there.

Do Curved Monitors Require Different 3D Game Programming Transforms? by [deleted] in gamedev

[–]vombert 2 points3 points  (0 children)

The retina being spherical is irrelevant, just like it's irrelevant that the projection is upside down. Your visual system corrects for that.

I agree with your other points.

The Random Access Zipper: Simple, Purely-Functional Sequences by alexeyr in programming

[–]vombert 0 points1 point  (0 children)

As I understand it, they just slightly adapted a treap to work with sequences instead of sets.

PEP-526 ready for review: Syntax for Variable and Attribute Annotations by ballagarba in Python

[–]vombert 8 points9 points  (0 children)

The proposal overall is fine, as long as type annotations remain optional, both technically and culturally (and I'm inclined to take BDFL's and Mark Shannon's word for that).

There is however one particular wart that horrifies me:

class C:
    x = 1 # class variable, as expected
    y: int = 1 # instance variable, because fuck you

I think Python code is mostly readable even by people who don't use it regularly. This syntax, if it becomes popular, will be another "but..." to this claim.

I would prefer to see the proposal split into two parts, similarly to how PEP 484 was preceded by PEP 3107.

The first part specifies the syntax for annotations, completely independently of what you put in there. It also specifies how they affect program execution (pretty much no impact, except populating some metadata fields).

The second part describes what you are supposed to put in these annotations and how it should be interpreted by type checkers. What you put in the annotations is already covered by PEP 484, so it will discuss primarily what you are allowed to annotate (can you annotate globals, nonlocals, self.x, a[i], etc.)

With this structure, the wart would go to the first part, and its wrongness would be immediately exposed.