100
submitted 1 month ago by [email protected] to c/[email protected]

dhh is the creator of Ruby on Rails. He has extensively used Mac for decades. A few months ago, as far as I remember, he mentioned something like switching to Windows and WSL.

13
submitted 1 month ago by [email protected] to c/[email protected]

By Kenichi Sasagawa - Easy IS-LISP maintainer

11
submitted 2 months ago by [email protected] to c/[email protected]
23
submitted 2 months ago by [email protected] to c/[email protected]
36
submitted 2 months ago by [email protected] to c/[email protected]
[-] [email protected] 2 points 3 months ago

Linq

LINQ is remarkable.

[-] [email protected] 1 points 3 months ago

Stored procedure and Datalog are not what I'm looking for. However, I should consider them seriously, since they may be more practical.

[-] [email protected] 1 points 3 months ago* (last edited 3 months ago)

b but has nice

Thank you. This is exactly what I'm looking for.

link

[-] [email protected] 1 points 3 months ago* (last edited 3 months ago)

Yes, I've used this.

[-] [email protected] 0 points 3 months ago

properly parametrized and escaped and all that

I'm not sure if what I use is proper enough in your sense. So, can you elaborate more?

13
submitted 3 months ago by [email protected] to c/[email protected]

Is there a programming language specifically designed for interacting with SQL databases that avoids the need for Object-Relational Mappers (ORMs) to solve impedance mismatch from the start?

If such a language exists, would it be a viable alternative to PHP or Go for a web backend project?

[-] [email protected] 5 points 3 months ago

RK3588 is used in many Linux devices, but I'm not sure if Rockchip is in the BDS list. I don't know which factory was RK3588 from.

[-] [email protected] 1 points 3 months ago

I heard that Linux gets new patches for Loongson, but I didn't try it yet.

[-] [email protected] 4 points 4 months ago

Yes, it is stable.

[-] [email protected] 2 points 4 months ago
  #[allow(unused_assignments)]

Thank you. This works!

[-] [email protected] 1 points 4 months ago

It doesn't work, at least, on rustc 1.75.

[-] [email protected] 2 points 4 months ago

Clippy didn't tell anything about the macro.

warning: dereferencing a tuple pattern where every element takes a reference
  --> src/lib.rs:13:9
   |
13 |         &Some(ref cons_rc) => {
   |         ^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference
   = note: `#[warn(clippy::needless_borrowed_reference)]` on by default
help: try removing the `&` and `ref` parts
   |
13 -         &Some(ref cons_rc) => {
13 +         Some(cons_rc) => {
   |

To put #[allow(this_linting_rule)] like this:

    [ $x:expr, $( $y:expr ),* ] => {
	#[allow(unused_assignments)]
	{

I got error[E0658]: attributes on expressions are experimental.

To put it like this:

#[macro_export]
#[allow(unused_assignments)]
macro_rules! list {
    () => {
	None

It doesn't work.

11
submitted 4 months ago by [email protected] to c/[email protected]

Removing last will break my library.

#[macro_export]
macro_rules! list {
    () => {
	None
    };
    [ $x:expr, $( $y:expr ),* ] => {
	{
	    let mut first = cons($x, &None);
	    let mut last = &mut first;
	    $(
		let yet_another = cons($y, &None);
		if let Some(ref mut last_inner) = last {
		    let last_mut = Rc::get_mut(last_inner).unwrap();
		    last_mut.cdr = yet_another;
		    last = &mut last_mut.cdr;
		}
	    )*
	    first
	}
    }
}

This macro works as I expected because it can pass these tests.

    #[test]
    fn dolist() {
        let mut v = vec![];
        dolist!((i &cons(10, &list![20, 30, 40])) {
            v.push(i.car);
        });
        assert_eq!(v, vec![10, 20, 30, 40]);
    }

    #[test]
    fn turn_list_to_vec() {
        assert_eq!(list_to_vec(&list![1, 2, 3]), vec![1, 2, 3]);
    }

    #[test]
    fn count_elements() {
        assert_eq!(list_len(&list![10, 20, 30]), 3);
    }

However I got the warning "value assigned to last is never read."

How can I avoid this warning?

P.S. Full code

1
submitted 5 months ago* (last edited 5 months ago) by [email protected] to c/[email protected]

How did they implement allocate a new cons cell?

89
submitted 6 months ago by [email protected] to c/[email protected]

Will they keep patching old version of PHP?

[-] [email protected] 9 points 10 months ago

Because of the Redhat incident, I started to see people asking for community-based distros without a corporate that dominates the community. And, Mageia is one of them. So, I hope it will be more popular.

28
submitted 1 year ago by [email protected] to c/[email protected]
1
submitted 1 year ago by [email protected] to c/[email protected]

I anticipate that my application might encounter an issue that requires debugging or fixing using nREPL, but I'm concerned about the potential performance impact of using nREPL.

1
submitted 1 year ago by [email protected] to c/[email protected]
view more: ‹ prev next ›

veer66

joined 1 year ago