News for hackers. Stuff that matters.

dima_vm

Re:Just Use a Monorepo on Friday January 13, 2023 @02:13AM (#34364829)
You cannot open-source parts if it's a monorepo.
Re:If you like startups you should love anti-trust on Sunday January 08, 2023 @02:16AM (#34296860)
"We run ads, senator." (c) Mark
Re:If you like startups you should love anti-trust on Sunday January 08, 2023 @01:41AM (#34296687)
Instagram might not became that big, but it definitely was on track to become somewhat big, that's why Facebook bought it, in fear of competition.

Same, Youtube might go down, but the idea was out of the box now, someone else would do that. Technology (ContentID) was there as well. As a consumer, I don't mind if it'd be called differently done by different team. It might have been better or worse of course.

Re:Twilio’s toll fraud problem on Saturday January 07, 2023 @09:48PM (#34295499)
No, sorry. Wondering that myself.
Re:Riddle solved: Why was Roman concrete so durable? on Friday January 06, 2023 @06:58PM (#34283183)
Not always, if rebars are pre-tensioned before concrete solidifies. So the rebar is always under tension. Pretty common in prefab parts, like bridge bars.
Re:Riddle solved: Why was Roman concrete so durable? on Friday January 06, 2023 @06:55PM (#34283149)
Well, technically, you can use cement instead of mortar (wet, but without sand). As far as I understand, sand is more like a neutral filler, to save money on cement. Various other things can be used to fill as well, like gravel. Sometimes even empty plastic bottles (reduces material and weight) are suitable (just make sure they don't float up). If one got very smooth bricks (e.g. precisely cut aerated concrete), then it might make sense, as there's very tiny amount of mortar (or even glue) is needed anyway.
Re:Microfeatures I'd like to see in more languages on Friday January 06, 2023 @06:49PM (#34283100)
Kotlin has it, but only if the function accepts the function argument, e.g. `foo({println("hello")})` is the same as `foo {println("hello")}` (larger example in my other comment above).

You can also make it on no-args function, if it's a method (attached to a type). Utilizing @get(), like that: `3.mph` and have somewhere else defined

    val Double.mph: Speed
      get() = Speed.mph(this)
Re:Microfeatures I'd like to see in more languages on Friday January 06, 2023 @06:44PM (#34283023)
`{key => value}` it should be mutableMapOf() just as well. Same for array.
Re:Microfeatures I'd like to see in more languages on Friday January 06, 2023 @06:34PM (#34282926)
You can make that in Kotlin, e.g.: `3.mph` or `(-45..45).deg` for ranges.

with definition like:

    val Double.mph: Speed
      get() = Speed.mph(this)

    data class Speed(val ms: Double)
      companion object {
        fun mph(mph: Double) = Speed(mph * 1609.344 / 3600.0)
      }
Re:Microfeatures I'd like to see in more languages on Friday January 06, 2023 @01:42PM (#34278988)
That's right, forgot the word (not a native speaker unfortunately).
Re:No, You Can’t Manufacture That Like Apple Does on Friday January 06, 2023 @04:44AM (#34272827)
Framework laptop has the best eco-friendly smart packaging I've seen.
Re:Microfeatures I'd like to see in more languages on Friday January 06, 2023 @02:42AM (#34272022)
Absolutely damned is combination of Kotlin's several features:

1. Lambda functions can be defined with `{}`.

2.`foo(bar, somefunc)` is the same as `foo(bar) somefunc`. In other words, if the last parameter is a function, it can be provided AFTER closing parenthesis.

3. Interfaces that require only one method can be implemented on-side with a lambda function (i.e. `{}` syntax for no-param function).

Combined those three features, the code may look like that:

    routing {
        static("/statics") {
            files("css")
        }
        get("/foo") {
            call.respondText("Hello world!")
        }
    }
So you can make a config-looking file which is just pure Kotlin, with static type checking, autocomplete, suggestions, "this" etc.

It's so damned, I'm surprised author didn't mention it.

Re:Twilio’s toll fraud problem on Thursday January 05, 2023 @03:21PM (#34265954)
Most users forget/neglect keeping backup codes for proper 2fa, unfortunately.
Re:Twilio’s toll fraud problem on Thursday January 05, 2023 @03:20PM (#34265927)
You can download phone prefixes with prices from them, and also set max price for an SMS (won't work if they charge just a little amount and you send thousand requests of course).
Re:The Eureka Theory of History Is Wrong on Sunday January 01, 2023 @10:50PM (#34214088)
I know one familiar-sounding, but different (without violent armed remainers) novel by Clifford Simak: "City".
Re:AWS IAM Roles, a tale of unnecessary complexity on Saturday November 12, 2022 @08:03AM (#33572643)
GCP is an order of magnitude better at IAM. And the article is actually exactly about that, with comparison.
Re:Gzip exceptions, but only on hot or rainy days on Saturday November 12, 2022 @07:29AM (#33572419)
Frame.work laptops have properly grounded charger (over UBC-C).
Linux is under GPL. Running your website on Linux doesn't force you to open its sources.
Re:Being a Solo Software Entrepreneur at 40 on Tuesday November 08, 2022 @09:45AM (#33519494)
Another idea you may find interesting: InfoSec. Some of my friends who were looking beyond engineering said "Your Machine Learning is boring. But InfoSec is a very diverse landscape, hard to get bored".
Re:Being a Solo Software Entrepreneur at 40 on Tuesday November 08, 2022 @09:42AM (#33519470)
I believe that in large it can be attributed to a large number of experienced invited/appointed executives who make an exit. Not necessarily being a founder.
Maybe it would mean "no go" to colonization at all, who knows.

For example, when all oceans boil out on Earth in 500m years or so, it might become useless for colonization. Natural resources are way easier to get from asteroids/comets/moons.

Sounds like it's a perfect case where "probably" is not enough.
Re:Factorio for Nintendo Switch is now available on Friday October 28, 2022 @01:28PM (#33374497)
Factorio is a very hackerish game.
Low mass stars live much longer, have larger habitable zones, and emit less ionizing radiation (ultraviolet, x-rays).
Re:From zero to 10M lines of Kotlin on Wednesday October 26, 2022 @07:03PM (#33350790)
I filed an issue for Scala in 2009, that was answered like "sorry, this particular Java code cannot be used in Scala". In 2012 it still wasn't fixed.

I cannot find the issue now, but I remember I was trying to use gae-mapreduce-java library (built on top of Hadoop interfaces). It couldn't compile with Scala.

Re:From zero to 10M lines of Kotlin on Tuesday October 25, 2022 @09:19AM (#33330093)
As for me the greatest appeal of Kotlin is that it doesn't need its own tooling that bad, it feels like just syntactic sugar over Java.

Both Scala and Kotlin can reuse Java tools, but with Scala it's awkward (and some tricky generics simply don't compile with Scala).

E.g. if I need to parse something, I search for "how to parse that in Java", not "... in Kotlin".

Re:Security through obscurity is underrated on Monday October 24, 2022 @08:14AM (#33315693)
AFAIK, it's possible to require both ssh keys and password.
From my past experience, both Google and Apple fervently defend their built-in caller app, and really-really don't like any other app making regular voice calls. Part of that is that they don't want cloning (they clearly state that your caller app must look obviously different from default system one), which is understandable, but even when it clearly not a clone, they make take it pretty hard, it feels like they would rather just ban it.
But why? Most modern languages try to get rid of exceptions (Go, Kotlin, Rust).

Older »